Re: src.rpm for x86_64



On Wed, 2004-10-20 at 08:44, Ross McFarland wrote:
On Tue, 2004-10-19 at 16:56, Carl Nygard wrote:
Hoi,

I got the perl-Gtk2 srpms from freshrpms, and I'm having trouble
building on x86_64.  Specifically, the man pages seem all gzip'd, but
the spec file is expecting them as *.3pm files.

Any clues?  Do I need to upgrade/update?

there's nothing in the spec files that requests particular formats or
extensions for the man pages. the file lists are auto-generated by
rpm/perl and therefore i suspect that's where the problems lies (with
rpm/perl on x86_64.) i'd be more than happy to track the problem down if
i had a x86_64 system (donations welcome, heh) on which to do it.

can you build Gtk2 on that system from source (not rpm) on that system?
are the freshrpm rpms my original rpms or someone else's pkg-ing?

Here's the relevant part of the rpm output (from make dist-rpms)
Commentary inline:

+ '[' -x /usr/lib64/rpm/brp-compress ']'
        ## looking for the brp-compress script, 
        ## but %{_libdir}=/usr/lib64 on x86_64, see below:
+ echo libdir= /usr/lib64
libdir= /usr/lib64
+ find /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr -type f -print
+ sed 's ^/var/tmp/perl-ExtUtils-Depends-0.204-1-root@@g'
++ cat perl-ExtUtils-Depends-0.204-1-filelist
       ## So the find | sed > filelist only finds uncompressed *.3pm
+ '[' '/usr/lib/perl5/site_perl/5.8.3/ExtUtils/Depends.pm
/usr/share/man/man3/ExtUtils::Depends.3pmX' = X ']'
+ /usr/lib/rpm/find-debuginfo.sh /home/mwsadm/rpms/BUILD/ExtUtils-Depends-0.204
0 blocks
find: /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/lib/debug: No such file or directory
+ /usr/lib/rpm/redhat/brp-compress
        ## And now we successfully find brp-compress,
        ## which changes the files from what we know in the filelist
        ## This must be inherent in the rpm binary, I don't see it
        ## in the generated .spec file
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: perl-ExtUtils-Depends-0.204-1
error: File not found: /var/tmp/perl-ExtUtils-Depends-0.204-1-root/usr/share/man/man3/ExtUtils::Depends.3pm

Finally found the docs where the macros are defined (that was way too
hard).

The only thing I can come up with is to do this:

-[ -x %{_libdir}/rpm/brp-compress ] && %{_libdir}/rpm/brp-compress
+[ -x %{_prefix}/%{_lib}/rpm/brp-compress ] && %{_prefix}/%{_lib}/rpm/brp-compress

This "fix" is probably consistent throughout the .spec.in files.  Once
we agree on the fix I can make the changes and test on i386 and x86_64
for you.

I really wish they had a macro for %{_librpmdir}, or even macros for the
/usr/lib/rpm/brp-* scripts or something

I think there's something wrong with using brp-compress behind your back
when it changes filenames on you.  That's either a bug or my complete
ignorance.

Your prompt attention is much appreciated;)

Regards,
Carl




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]