From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 12 Mar 2010 14:14:28 +0300 From: Alexey Tourbin To: devel@lists.altlinux.org Message-ID: <20100312111428.GO8189@altlinux.org> Mail-Followup-To: devel@lists.altlinux.org References: <20100312101035.GA4875@odnako.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="im83/wVv0jiGQj4J" Content-Disposition: inline In-Reply-To: <20100312101035.GA4875@odnako.localdomain> Subject: Re: [devel] need help: perl-Text-BibTeX linking problem X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Mar 2010 11:14:29 -0000 Archived-At: List-Archive: List-Post: --im83/wVv0jiGQj4J Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 12, 2010 at 01:10:35PM +0300, Kirill Maslinsky wrote: > =EB=CF=CC=CC=C5=C7=C9, =CE=D5=D6=CE=C1 =D7=C1=DB=C1 =D0=CF=CD=CF=DD=D8 = =C9 =D3=CF=D7=C5=D4:=20 > http://git.altlinux.org/people/kirill/packages/?p=3Dperl-Text-BibTeX.git;= a=3Dsummary >=20 > =F3=CF=C2=C9=D2=C1=C5=D4=D3=D1, =CE=CF =CE=C1 =D3=D4=C1=C4=C9=C9 verify-e= lf =CF=C2=CE=C1=D2=D5=D6=C9=D7=C1=C5=D4=D3=D1 =D3=D4=D2=C1=CE=CE=C1=D1 =D0= =D2=CF=C2=CC=C5=CD=C1 =D3 =CC=C9=CE=CB=CF=D7=CB=CF=CA =D3 =C2=C9=C2=CC=C9= =CF=D4=C5=CB=CF=CA > libbtparse.so. =EE=C1 =CF=C2=D9=DE=CE=D9=CA =D3=CC=D5=DE=C1=CA --as-neede= d =CE=C5 =D0=CF=C8=CF=D6=C5, =D4.=CB. =D7 =D3=D4=D2=CF=CB=C5 > =CC=C9=CE=CB=CF=D7=CB=C9 =D7=D3=C5 =D5=CB=C1=DA=C1=CE=CF =D7 =CE=D5=D6=CE= =CF=CD =D0=CF=D2=D1=C4=CB=C5. =EE=CF =CF=DE=C5=CE=D8 =D3=C9=CC=D8=CE=CF =D3= =CD=D5=DD=C1=C5=D4 =D4=CF, =DE=D4=CF > =D7 =D0=D2=CF=C3=C5=D3=D3=C5 =D3=C2=CF=D2=CB=C9 =DC=D4=C1 =D3=C1=CD=C1=D1= =CC=C9=CE=CB=CF=D7=CB=C1 =D0=D2=CF=C9=D3=C8=CF=C4=C9=D4 _=D4=D2=C9=D6=C4= =D9_. (=D7 =CC=CF=C7=C5 =CD=CF=D6=CE=CF > =D0=CF=C9=D3=CB=C1=D4=D8 =D0=CF =D3=D4=D2=CF=CB=C5: '** Creating libbtpar= se.so') >=20 > =F0=CF=CC=CE=D9=CA =CC=CF=C7 =D3=C2=CF=D2=CB=C9 =D7 =C1=D4=D4=C1=DE=C5, = =C4=CC=D1 =D3=C2=CF=D2=CB=C9 =D4=D2=C5=C2=D5=C5=D4 perl-Config-AutoConf,=20 > =CF=CE =C5=D3=D4=D8 =D5 =CD=C5=CE=D1 =D7 =C7=C9=D4=C5. > Verifying ELF objects in /usr/src/tmp/perl-Text-BibTeX-buildroot (arch=3D= normal,fhs=3Dnormal,lint=3Drelaxed,rpath=3Dnormal,stack=3Dnormal,textrel=3D= normal,unresolved=3Dnormal) > verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/B= ibTeX/BibTeX.so: not found: libbtparse.so > verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/B= ibTeX/BibTeX.so: undefined symbol: bt_initialize > verify-elf: WARNING: ./usr/lib/perl5/vendor_perl/x86_64-linux/auto/Text/B= ibTeX/BibTeX.so: undefined symbol: bt_next_field > verify-elf: ERROR: ./usr/bin/bibparse: not found: libbtparse.so > verify-elf: ERROR: ./usr/bin/bibparse: undefined symbol: bt_initialize > verify-elf: ERROR: ./usr/bin/bibparse: undefined symbol: bt_next_field There's a problem with hardcoded /usr/lib. Build.PL: 53 ## HACK HACK HACK HACK 54 my $libdir =3D $builder->install_destination("bin"); 55 if ($^O =3D~ /mswin32/i) { 56 $libdir =3D $ENV{WINDIR} || 'c:\\WINDOWS\\'; ## HACK HACK HACK 57 } else { 58 $libdir =3D~ s/\bbin\b/lib/; 59 } 60 $builder->add_build_element('usrlib'); 61 $builder->install_path( 'usrlib' =3D> $libdir ); 62 =20 63 $builder->create_build_script; So the $libdir is "/usr/bin" with "bin" compomnent changed to "lib" (line 58). On x86_64, that should be "lib64". --- a/perl-Text-BibTeX.spec +++ b/perl-Text-BibTeX.spec @@ -57,6 +57,8 @@ manual pages in the library). =20 %prep %setup -q -n %m_distro-%version +perl -pi -e 's|/lib/|/%_lib/|' Build.PL + %build %add_optflags %optflags_shared %perl_vendor_build --im83/wVv0jiGQj4J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkuaIhQACgkQfBKgtDjnu0bSZgCguQTwd0e9iWZzos0UIQN/isv4 ox0An2cy1mYJcagB2J6kHyV9zfX24qzN =4lC+ -----END PGP SIGNATURE----- --im83/wVv0jiGQj4J--