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
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 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 California
That did the trick, thanks a million...
Jarmo