I have weird problem. I'll try to build rpm-package from Brian Lane's Digitemp. Everything seems to go OK, but..... Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.50782 + umask 022 + cd /usr/src/redhat/BUILD + cd digitemp-3.5.0 + install -d -m 755 /var/tmp/digitemp-buildroot/usr/local/bin/ + install -s -g lock -m 2755 digitemp_DS9097U /var/tmp/digitemp-buildroot/usr/local/bin/ + install -d -m 755 /var/tmp/digitemp-buildroot/usr/local/man/man1/ + install -s -m 644 digitemp.1 /var/tmp/digitemp-buildroot/usr/local/man/man1/ strip: /var/tmp/digitemp-buildroot/usr/local/man/man1/digitemp.1: File format not recognized install: strip failed error: Bad exit status from /var/tmp/rpm-tmp.50782 (%install) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.50782 (%install) I'm very newbie with making rpm's, but man has to start once :D So, anybody has ideas, what could cause this? Using Centos5, installed it abt. month ago, clean install. Regards Jarmo -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20070616/4808f229/attachment-0001.html>
On Sat, Jun 16, 2007 at 06:54:46AM +0300, jarmo alleged:> + install -s -m 644 digitemp.1 /var/tmp/digitemp-buildroot/usr/local/man/man1/ > strip: /var/tmp/digitemp-buildroot/usr/local/man/man1/digitemp.1: File format not recognized > install: strip failed > error: Bad exit status from /var/tmp/rpm-tmp.50782 (%install)It is the -s option to 'install' that tells it to run strip. This is only for binaries and is invalid for text files. The makefile should be patched to not strip anything at all, much less manpages. Also, rpms should install into %{_prefix} (/usr), not /usr/local. -- Garrick Staples, GNU/Linux HPCC SysAdmin University of Southern California Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20070616/045d3b70/attachment-0001.sig>
Garrick Staples kirjoitti viestiss??n (l?hetysaika lauantai, 16. kes?kuuta 2007 10:35):> It is the -s option to 'install' that tells it to run strip. ?This is > only for binaries and is invalid for text files. > > The makefile should be patched to not strip anything at all, much less > manpages. > > Also, rpms should install into %{_prefix} (/usr), not /usr/local. > > -- > Garrick Staples, GNU/Linux HPCC SysAdmin > University of Southern CaliforniaThat did the trick, thanks a million... Jarmo