[Rpm-maint] rpm v.4.8.0 on SunOS

Fridlyand Yuri-PDQK73 PDQK73 at motorolasolutions.com
Wed Sep 12 13:23:24 UTC 2012


Hi, all!

I had task to build the rpmbuild on SunOS, because it is needed to pack prm's using existing binaries on Solaris host. Please, don't ask me "why".
I faced with a few difficulties during rpmbuild v.4.8.0 compilation and I found the solution. I hope it will be useful for you.
My system:
SunOS 5.10 Generic_147440-12 sun4u sparc SUNW,Sun-Fire-V890
libtool version:
ltmain.sh (GNU libtool) 2.2.6b
gcc version:
gcc (GCC) 3.4.6

The issues I found:

1)      File rpm-4.8.0/lib/rpmchecksig.c:596. The compiler 'does not know' strndup function. Solution is here (link<http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/COMP/CMSDIST/rpm-4.8.0-remove-strndup.patch?revision=1.1&view=markup&sortby=log&pathrev=CMSSW_4_3_0_pre4-ports_FWLITE>), it works.

2)      File rpm-4.8.0/build/files.c and rpm-4.8.0/rpmio/rpmfileutil.c. The compiler 'cannot find' glob_pattern_p macro. I use solution from here (link<http://www.mail-archive.com/rpm-maint%40lists.rpm.org/msg01480.html>).

3)      File rpm-4.8.0/scripts/check-files. SunOS embedded diff tool 'does not know' -d option. Solution is here (link<http://rpm.org/gitweb?p=rpm.git;a=commitdiff;h=4c5d56d3bf4cded801abe8830350c5cf973e2bfc>).

After these fixes rpmbuild was successfully compiled on SunOS an it is working good now.
I hope you can use these ideas or find something more graceful.

Good luck and regards,
Yuri
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20120912/14e47160/attachment.html>


More information about the Rpm-maint mailing list