[asterisk-bugs] [Asterisk 0013113]: [patch] Can't build RPM with 1.4.21.1 (few errors & fix)

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Aug 3 17:30:59 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13113 
====================================================================== 
Reported By:                sybasesql
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13113
Category:                   Core/General
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.21 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-07-19 22:38 CDT
Last Modified:              2008-08-03 17:30 CDT
====================================================================== 
Summary:                    [patch] Can't build RPM with 1.4.21.1 (few errors &
fix)
Description: 
Can't build RPM with asterisk 1.4.21.1 on:
OS: CentOS 5.2
Arch: x64

1. Error in asterisk.spec - "make rpm" build error:
-------
error: Legacy syntax is unsupported: copyright
error: line 6: Unknown tag: Copyright: Linux Support Services, inc.
-------
Fix:
Line: Copyright: Linux Support Services, inc.
Should be: License: Linux Support Services, inc.

2. Error in asterisk.spec - "make rpm" build error:
-------
RPM build errors:
    File not found: /tmp/asterisk/var/lib/asterisk/mohmp3
    File not found by glob: /tmp/asterisk/var/lib/asterisk/mohmp3/*
-------
Fix:

Lines:
%attr(0755,root,root) %dir /var/lib/asterisk/mohmp3
%attr(0644,root,root)      /var/lib/asterisk/mohmp3/*
Should be:
#%attr(0755,root,root) %dir /var/lib/asterisk/mohmp3
#%attr(0644,root,root)      /var/lib/asterisk/mohmp3/*

3. Error in asterisk.spec - "make rpm" build error:
-------
RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/include/asterisk.h
   /usr/sbin/aelparse
   /usr/sbin/muted
   /usr/sbin/rasterisk
   /var/lib/asterisk/moh/.asterisk-moh-freeplay-wav
   /var/lib/asterisk/moh/LICENSE-asterisk-moh-freeplay-wav
   /var/lib/asterisk/moh/fpm-calm-river.wav
   /var/lib/asterisk/moh/fpm-sunshine.wav
   /var/lib/asterisk/moh/fpm-world-mix.wav
   /var/lib/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.9
   /var/lib/asterisk/sounds/CHANGES-asterisk-core-en-1.4.9
   /var/lib/asterisk/sounds/CREDITS-asterisk-core-en-1.4.9
   /var/lib/asterisk/sounds/core-sounds-en.txt
   /var/lib/asterisk/sounds/followme/call-from.gsm
   /var/lib/asterisk/sounds/followme/no-recording.gsm
   /var/lib/asterisk/sounds/followme/options.gsm
   /var/lib/asterisk/sounds/followme/pls-hold-while-try.gsm
   /var/lib/asterisk/sounds/followme/sorry.gsm
   /var/lib/asterisk/sounds/followme/status.gsm
   /var/lib/asterisk/static-http/ajamdemo.html
   /var/lib/asterisk/static-http/astman.css
   /var/lib/asterisk/static-http/astman.js
   /var/lib/asterisk/static-http/prototype.js
-------

Fix:
Add lines to asterisk.spec:
%attr(0644,root,root)      /usr/include/asterisk.h
%attr(0644,root,root)      /usr/sbin/aelparse
%attr(0644,root,root)      /usr/sbin/muted
%attr(0644,root,root)      /usr/sbin/rasterisk
%attr(0755,root,root) %dir /var/lib/asterisk/moh
%attr(0644,root,root)      /var/lib/asterisk/moh/.*
%attr(0644,root,root)      /var/lib/asterisk/moh/*
%attr(0644,root,root)     
/var/lib/asterisk/sounds/.asterisk-core-sounds-en-gsm-1.4.9
%attr(0644,root,root)     
/var/lib/asterisk/sounds/CHANGES-asterisk-core-en-1.4.9
%attr(0644,root,root)     
/var/lib/asterisk/sounds/CREDITS-asterisk-core-en-1.4.9
%attr(0644,root,root)      /var/lib/asterisk/sounds/core-sounds-en.txt
%attr(0755,root,root) %dir /var/lib/asterisk/sounds/followme
%attr(0644,root,root)      /var/lib/asterisk/sounds/followme/*.gsm
%attr(0755,root,root) %dir /var/lib/asterisk/static-http
%attr(0644,root,root)      /var/lib/asterisk/static-http/*

====================================================================== 

---------------------------------------------------------------------- 
 (0091032) mvanbaak (manager) - 2008-08-03 17:30
 http://bugs.digium.com/view.php?id=13113#c91032 
---------------------------------------------------------------------- 
thank you.
Now it's a matter of time before your license is accepted and we can apply
it.

Karma added for the prompt replies 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-08-03 17:30 mvanbaak       Note Added: 0091032                          
======================================================================




More information about the asterisk-bugs mailing list