Fixed compilation error in xmalloc.c and added to ~ppc.
authorMichael Hanselmann <hansmi@gentoo.org>
Wed, 15 Dec 2004 22:50:04 +0000 (22:50 +0000)
committerMichael Hanselmann <hansmi@gentoo.org>
Wed, 15 Dec 2004 22:50:04 +0000 (22:50 +0000)
app-text/bogosort/ChangeLog
app-text/bogosort/Manifest
app-text/bogosort/bogosort-0.4.2.ebuild
app-text/bogosort/files/xmalloc.patch [new file with mode: 0644]

index a78f64ace6807f76605e968eb900409d9bdf90ab..bcb06b918b61ea1705c843b7b0518ad50dd0a773 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for app-text/bogosort
 # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/ChangeLog,v 1.1 2004/12/14 22:58:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/ChangeLog,v 1.2 2004/12/15 22:50:04 hansmi Exp $
+
+  15 Dec 2004; Michael Hanselmann <hansmi@gentoo.org> +files/xmalloc.patch,
+  bogosort-0.4.2.ebuild:
+  Fixed compilation error in xmalloc.c and added to ~ppc.
 
 *bogosort-0.4.2 (14 Dec 2004)
 
index e5e1a783e51bfa548401e18b72541f150d046499..a25d11015bb0b09766eded34896b322c3d61d4f9 100644 (file)
@@ -1,14 +1,5 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
-MD5 7b5df6d2428a49dc602dfa85ee9ac79b bogosort-0.4.2.ebuild 578
-MD5 1bc8a0513d1ec69f2e9b8b2f72a5f451 ChangeLog 347
 MD5 4c1040b15c428fc436d1f5b746abfa8a metadata.xml 496
+MD5 12dbc5b512f92cf4b4d0b15dc92695e1 ChangeLog 506
+MD5 b1901c21e71066d58eda705cbc483aef bogosort-0.4.2.ebuild 681
 MD5 375c74fb876d97ee1d8b1acb3e55ada5 files/digest-bogosort-0.4.2 66
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.2.6 (GNU/Linux)
-
-iD8DBQFBv3BILLFUmVNQ7rkRAnbcAJ9xEcwkh9QfBCZanYgh3FBkbjhSUQCeP/M0
-76GGKKnr/ua37tdNz26UVWw=
-=DJQI
------END PGP SIGNATURE-----
+MD5 5c0ac35193f6152a103241167bae834d files/xmalloc.patch 395
index a664071a224bb4e3b6ba50d628a3ca94e0f63775..43f716fdb1907ff01bf9e7690b2b66feb87f58b8 100644 (file)
@@ -1,6 +1,8 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/bogosort-0.4.2.ebuild,v 1.1 2004/12/14 22:58:49 ciaranm Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/bogosort/bogosort-0.4.2.ebuild,v 1.2 2004/12/15 22:50:04 hansmi Exp $
+
+inherit libtool eutils
 
 DESCRIPTION="A file sorting program which uses the bogosort algorithm"
 HOMEPAGE="http://www.lysator.liu.se/~qha/bogosort/"
@@ -8,12 +10,19 @@ SRC_URI="ftp://ulrik.haugen.se/pub/unix/bogosort/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="~x86 ~sparc ~mips"
+KEYWORDS="~x86 ~sparc ~mips ~ppc"
 IUSE=""
 
 DEPEND=""
 RDEPEND=""
 
+src_unpack() {
+       unpack ${A}
+
+       cd ${S}
+       epatch ${FILESDIR}/xmalloc.patch
+}
+
 src_install() {
        make DESTDIR="${D}" install
        dodoc README NEWS ChangeLog AUTHORS
diff --git a/app-text/bogosort/files/xmalloc.patch b/app-text/bogosort/files/xmalloc.patch
new file mode 100644 (file)
index 0000000..41545ca
--- /dev/null
@@ -0,0 +1,15 @@
+--- xmalloc.c.orig     2004-12-15 23:44:16.880786468 +0100
++++ xmalloc.c  2004-12-15 23:44:21.846546805 +0100
+@@ -68,12 +68,6 @@
+    The caller may set it to some other value.  */
+ int xmalloc_exit_failure = EXIT_FAILURE;
+ 
+-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT)
+-void error (int, int, const char *, ...);
+-#else
+-void error ();
+-#endif
+-
+ static VOID *
+ fixup_null_alloc (n)
+      size_t n;