[Home]

Summary:ASTERISK-06654: [patch] can't build RPM in RedHat EL 4
Reporter:Alvaro Palma (alvaro_palma_aste)Labels:
Date Opened:2006-03-29 14:22:17.000-0600Date Closed:2006-05-03 13:35:22
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk.spec.diff
( 1) asterisk.spec.diff.CentOS-4.3.txt
Description:I'm trying to build the RPM for Asterisk 1.2.6 using "make rpm", but it always fails with the error:

make[1]: Leaving directory `/root/software/asterisk/asterisk-1.2.6'
Processing files: asterisk-1.2.6-1
error: File not found: /tmp/asterisk/usr/sbin/astman
error: File not found: /tmp/asterisk/usr/share/man/man8/asterisk.8.gz
Processing files: asterisk-devel-1.2.6-1
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1


RPM build errors:
   File not found: /tmp/asterisk/usr/sbin/astman
   File not found: /tmp/asterisk/usr/share/man/man8/asterisk.8.gz
make: *** [__rpm] Error 1

I guess that the problem is that asterisk.8 is never gziped during the make. In fact, the "ungzipped" files DO exists:

[root@asterisk_test /tmp/asterisk/usr/share/man/man8]# ls -l
total 20
-rw-r--r--  1 root root 6810 mar 29 16:16 asterisk.8
-rw-r--r--  1 root root 2777 mar 29 16:16 astgenkey.8
-rw-r--r--  1 root root 1328 mar 29 16:16 autosupport.8
-rw-r--r--  1 root root 1848 mar 29 16:16 safe_asterisk.8

Comments:By: Andrey S Pankov (casper) 2006-03-30 16:20:30.000-0600

Do you have /usr/include/newt.h for astman to be built? There is no deps specified in the spec on libnewt-devel (may be netw, newt-devel, libnewt etc).

For asterisk.8 just cut .gz from the line in asterisk-1.2.6/redhat/asterisk.spec

By: Andrey S Pankov (casper) 2006-04-10 13:44:09

Here is the patch with the only change required in the case.

Sould be fixed in 1.2 as well.



By: Serge Vecher (serge-v) 2006-05-03 12:27:40

seems to be a straight-forward fix here ...

By: Leif Madsen (lmadsen) 2006-05-03 13:13:17

I've modified the redhat/asterisk.spec file to include some files that weren't getting packaged with the current version (this is against branch/1.2 r24494).

This should allow 'make rpm' to build correctly. I tested by building the RPM, but didn't test installing it on another machine.

By: Russell Bryant (russell) 2006-05-03 13:33:37

added to the trunk and 1.2 branch in revisions 24496 and 24497, thanks guys!