Gentoo Archives: gentoo-alt

From: Fabian Groffen <grobian@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] bzip2 patch on AIX for library style transition
Date: Wed, 21 Jul 2010 08:14:48
Message-Id: 20100721081712.GA14592@gentoo.org
In Reply to: [gentoo-alt] bzip2 patch on AIX for library style transition by heroxbd@gmail.com
1 Hi XU,
2
3 Can you please report bugs for these patches (also the perl one) in our
4 bugzilla? I have no problem with mails here per se, but I'm affraid
5 that your valuable patches may get lost this way...
6
7
8 On 21-07-2010 02:47:17 +0900, heroxbd@×××××.com wrote:
9 > Dear guys,
10 >
11 > I have attached the patch for bzip2 on AIX for use with the new library
12 > style decided by haubi in May 2010.
13 >
14 > Current bzip2 ebuild on AIX gives error like "libbz2.so.1.0.5 not exist"
15 > from dolib.so.
16 >
17 > references:
18 >
19 > 1. http://bugs.gentoo.org/show_bug.cgi?id=213277
20 > 2. http://dev.gentoo.org/~haubi/aixrtl.txt
21 > 3. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/eclass/multilib.eclass?r1=1.77&r2=1.78
22 >
23 > --
24 > XU Benda
25 > Research Center for Neutrino Science
26 > Tohoku University
27 > JAPAN
28 >
29 > http://www.awa.tohoku.ac.jp/~benda
30
31 > diff -Naurp /home/k/benda/local/usr/portage/app-arch/bzip2/bzip2-1.0.5-r1.ebuild /home/k/benda/local/usr/local/portage/neutrino/app-arch/bzip2/bzip2-1.0.5-r1.ebuild
32 > --- /home/k/benda/local/usr/portage/app-arch/bzip2/bzip2-1.0.5-r1.ebuild 2009-11-05 01:19:54 +0900
33 > +++ /home/k/benda/local/usr/local/portage/neutrino/app-arch/bzip2/bzip2-1.0.5-r1.ebuild 2010-07-21 02:26:57 +0900
34 > @@ -26,7 +26,6 @@ src_unpack() {
35 > epatch "${FILESDIR}"/${PN}-1.0.4-POSIX-shell.patch #193365
36 > epatch "${FILESDIR}"/${PN}-1.0.5-soldflags.patch # for AIX, HP-UX
37 > epatch "${FILESDIR}"/${PN}-1.0.5-checkenv.patch # for AIX, Darwin?
38 > - epatch "${FILESDIR}"/${PN}-1.0.5-aix.patch # for AIX, needs checkenv, soldflags.
39 > epatch "${FILESDIR}"/${PN}-1.0.4-prefix.patch
40 > eprefixify bz{diff,grep,more}
41 > sed -i -e 's:\$(PREFIX)/man:\$(PREFIX)/share/man:g' Makefile || die "sed manpath"
42 > @@ -74,7 +73,7 @@ src_compile() {
43 > *-aix*)
44 > # AIX has shared object libbz2.so.1 inside libbz2.a.
45 > # We build libbz2.a here to avoid static-only libbz2.a below.
46 > - emake "${makeopts[@]}" SOLDFLAGS=-shared -f Makefile-libbz2_so all-aix || die "Make failed libbz2"
47 > + emake "${makeopts[@]}" SOLDFLAGS=-shared -f Makefile-libbz2_so all || die "Make failed libbz2"
48 > checkopts="TESTENV=LIBPATH=."
49 > ;;
50 > *)
51 > diff -Naurp /home/k/benda/local/usr/portage/app-arch/bzip2/files/bzip2-1.0.5-aix.patch /home/k/benda/local/usr/local/portage/neutrino/app-arch/bzip2/files/bzip2-1.0.5-aix.patch
52 > --- /home/k/benda/local/usr/portage/app-arch/bzip2/files/bzip2-1.0.5-aix.patch 2009-07-23 02:03:55 +0900
53 > +++ /home/k/benda/local/usr/local/portage/neutrino/app-arch/bzip2/files/bzip2-1.0.5-aix.patch 1970-01-01 09:00:00 +0900
54 > @@ -1,20 +0,0 @@
55 > ---- Makefile-libbz2_so.orig 2009-06-23 12:35:06.000000000 +0200
56 > -+++ Makefile-libbz2_so 2009-06-23 12:36:39.000000000 +0200
57 > -@@ -43,8 +43,17 @@
58 > - rm -f libbz2.${SOEXT}.1.0
59 > - ln -s libbz2.${SOEXT}.1.0.4 libbz2.${SOEXT}.1.0
60 > -
61 > -+# AIX has dynamic libraries packed into archive library.
62 > -+.PHONY: all-aix
63 > -+all-aix: libbz2.a
64 > -+libbz2.a: $(OBJS)
65 > -+ $(CC) $(LDFLAGS) -shared -Wl,-G -o $(SONAME) $(OBJS)
66 > -+ $(AR) q libbz2.a $(SONAME)
67 > -+ $(CC) $(LDFLAGS) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.a
68 > -+
69 > - clean:
70 > - rm -f $(OBJS) bzip2.o libbz2.${SOEXT}.1.0.4 libbz2.${SOEXT}.1.0 bzip2-shared
71 > -+ rm -f $(SONAME) libbz2.a
72 > -
73 > - blocksort.o: blocksort.c
74 > - $(CC) $(CFLAGS) -c blocksort.c
75
76
77 --
78 Fabian Groffen
79 Gentoo on a different level