Apply patch from Dane Smith to fix compilation problems with USE=nls and -O0. Bug...
authorMarkos Chandras <hwoarang@gentoo.org>
Fri, 16 Jul 2010 23:20:29 +0000 (23:20 +0000)
committerMarkos Chandras <hwoarang@gentoo.org>
Fri, 16 Jul 2010 23:20:29 +0000 (23:20 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

app-crypt/rotix/ChangeLog
app-crypt/rotix/Manifest
app-crypt/rotix/files/0.83-respect-CFLAGS-and-dont-strip.patch
app-crypt/rotix/files/rotix-0.83-locale.diff [new file with mode: 0644]
app-crypt/rotix/rotix-0.83.ebuild

index 4d853d0ef284d1d1a2143698341d050694791b60..38e0e966c8be64f3ec14387b4a9948a9c1095098 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for app-crypt/rotix
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/rotix/ChangeLog,v 1.12 2010/02/22 18:37:02 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/rotix/ChangeLog,v 1.13 2010/07/16 23:20:29 hwoarang Exp $
+
+  16 Jul 2010; Markos Chandras <hwoarang@gentoo.org>
+  files/0.83-respect-CFLAGS-and-dont-strip.patch, rotix-0.83.ebuild,
+  +files/rotix-0.83-locale.diff:
+  Apply patch from Dane Smith <smithdanea@gmail.com> to fix compilation
+  problems with USE=nls and -O0. Bug #239964. Respect LDFLAGS and drop
+  custom CFLAGS for debug mode
 
   22 Feb 2010; Pawel Hajdan jr <phajdan.jr@gentoo.org> rotix-0.83.ebuild:
   Make the gettext dependency required, wrt bug #232897 by mduft.
index 2bb1d8a00fd18a31757d01867a44fdb3c99d3acc..120f67e7f33d2f8da456f5fb1bc9c73c0a130d31 100644 (file)
@@ -1,5 +1,6 @@
-AUX 0.83-respect-CFLAGS-and-dont-strip.patch 391 RMD160 1644f507d6628a5c20bb179175550a2e54407d2c SHA1 46be3a6ca03f0a8d471602d9cfd8494505569ed8 SHA256 698b23b4b75de8b7767dd364f4a4f04ff9125f607d583d4be0e4943113bc0b15
+AUX 0.83-respect-CFLAGS-and-dont-strip.patch 623 RMD160 54961c0c64bca6baa0260ce0a01b5f4fa6a97315 SHA1 996608bd7aacbf9440b4faeafb125227b10dc406 SHA256 f0412f5e697571bfd6a6a42f3415018c41175ae03b73ae1ab6cd93fb9b7b793f
+AUX rotix-0.83-locale.diff 256 RMD160 27d86ea7f64fb8f0f7852ae4e93af610118d0545 SHA1 b39b0afcdc0b2459938dd8265600df466e3036fc SHA256 230fbef9431fa6019e6a465540dcd5447a0e8746db333ed80140ebf0577db695
 DIST rotix-0.83.tar.bz2 14685 RMD160 a7f52710e33d21a502a162b1d3836a83ae95588e SHA1 db886b54ecbe608efdd0e4f97321bcc49216fd23 SHA256 f25eae09e1c6eb95f44aec7a2aeaf9b4822da0304909e70149fda4603f1368bd
-EBUILD rotix-0.83.ebuild 775 RMD160 ec3038bdf555fb44bafdff418f7eeae2a7faa2ab SHA1 d260773446ef6a25b3b464bbfd833bbfc845d395 SHA256 64a4af59ed65fd8b3088e78ad5df38312da7a7b875450bff247009a4048bab7d
-MISC ChangeLog 1224 RMD160 30d2ba43d07741ce46c5e8eb43e9b665d91bfa92 SHA1 754ebf3f53b23f8c81e8c5677a35a05074e056b5 SHA256 37a8183577a11492bf89e7eae0d0c1f155596e97744878120f183c8e66861b59
+EBUILD rotix-0.83.ebuild 784 RMD160 2cf2ca31d113fffe64f466fd86a560617ced4fc7 SHA1 de70ad64a40a2bd50ebc1490739da7cef1af1c58 SHA256 b5ea738a13fd6d4c9941618a05a19561c9c36884378ab91d20c9bcf865f85a2d
+MISC ChangeLog 1552 RMD160 f8b9d91a43dc6ae5e8f378456cdf473b6bfe5fee SHA1 72305314951b007d95391c34eb0d000bb17a9d0a SHA256 cd214312c2f2cc6246769481e750010956aa95d3879c12d18eb006321b0afb3d
 MISC metadata.xml 290 RMD160 b9b86283c09349c8827faef7d3ef5f724a248e77 SHA1 ae1c8e62d75c94ff50b8a5391afb6008460963aa SHA256 380e26e9262298b9cb31e863a9ab641f6fbdc8c50bda2cf2e47fd399f9cb5e85
index 85498d2e03afc8c74667b56107bb5cf589d5a266..ab23372e768fe3b91e25a79f4582ca694120adab 100644 (file)
@@ -1,23 +1,31 @@
---- Makefile.orig      2007-03-21 22:43:39.000000000 +0100
-+++ Makefile   2007-03-21 22:44:16.000000000 +0100
-@@ -24,8 +24,6 @@
+Index: rotix-0.83/Makefile
+===================================================================
+--- rotix-0.83.orig/Makefile
++++ rotix-0.83/Makefile
+@@ -22,12 +22,6 @@
  
- ifdef DEBUG
- CFLAGS += -g3
+ include Makefile.settings
+ 
+-ifdef DEBUG
+-CFLAGS += -g3
 -else
 -CFLAGS += -O3
- endif
- 
+-endif
+-
  ifdef I18N
-@@ -40,11 +38,6 @@
+ CFLAGS += -DPACKAGE=\"${PACKAGE}\" -D LOCALEDIR=\"${LOCALE}\"
+ endif
+@@ -39,12 +33,7 @@ endif
+ all : rotix po
  
  rotix : rot.o help.o rotix.o
-       $(CC) -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o
+-      $(CC) -Wall $(CFLAGS) -o rotix rot.o help.o rotix.o
 -ifdef STRIP
 -ifndef DEBUG
 -      $(STRIP) rotix
 -endif
 -endif
++      $(CC) -Wall $(CFLAGS) $(LDFLAGS) -o rotix rot.o help.o rotix.o
  
  ifdef I18N
  CFLAGS += -D I18N=1
diff --git a/app-crypt/rotix/files/rotix-0.83-locale.diff b/app-crypt/rotix/files/rotix-0.83-locale.diff
new file mode 100644 (file)
index 0000000..844a452
--- /dev/null
@@ -0,0 +1,10 @@
+--- rotix.c    2002-04-02 14:48:42.000000000 -0500
++++ rotix.c.mine       2010-07-15 14:54:45.000000000 -0400
+@@ -38,6 +38,7 @@
+ /* I18N */
+ #ifdef I18N
+ #include <libintl.h>
++#include <locale.h>
+ #define _(String) gettext (String)
+ #else
+ #define _(String) String
index 627ca8a4ccfad6b65270cd338e94dd6b630c2102..b1fbcdd6310c9631ad6c5412b4e53cd543a5b5a3 100644 (file)
@@ -1,7 +1,8 @@
 # Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-crypt/rotix/rotix-0.83.ebuild,v 1.14 2010/02/22 18:37:02 phajdan.jr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-crypt/rotix/rotix-0.83.ebuild,v 1.15 2010/07/16 23:20:29 hwoarang Exp $
 
+EAPI=2
 inherit eutils
 
 DESCRIPTION="Rotix allows you to generate rotational obfuscations."
@@ -10,21 +11,19 @@ SRC_URI="http://elektron.its.tudelft.nl/~hemmin98/rotix_releases/${P}/${P}.tar.b
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="x86 ppc amd64 ia64"
+KEYWORDS="amd64 ia64 ppc x86"
 IUSE=""
 
 DEPEND="sys-devel/gettext"
 RDEPEND="${DEPEND}"
 
-src_unpack() {
-       unpack ${A}
-       cd "${S}"
+src_prepare() {
        epatch "${FILESDIR}"/${PV}-respect-CFLAGS-and-dont-strip.patch
+       epatch "${FILESDIR}"/${P}-locale.diff
 }
 
-src_compile() {
+src_configure() {
        econf --i18n=1
-       emake || die
 }
 
 src_install() {