[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
Mon Sep 8 15:06:25 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:                   trivial
Priority:                   normal
Status:                     new
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-09-08 15:06 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/*

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

---------------------------------------------------------------------- 
 (0092189) svnbot (reporter) - 2008-09-08 15:06
 http://bugs.digium.com/view.php?id=13113#c92189 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 141741

U   branches/1.4/Makefile
D   branches/1.4/redhat/

------------------------------------------------------------------------
r141741 | qwell | 2008-09-08 15:06:23 -0500 (Mon, 08 Sep 2008) | 8 lines

Remove RPM package targets from Makefile (and all associated parts).
This has never worked in 1.4, and we decided that it makes no sense to be
done here.
There are many distros out there that already have "proper" spec files
that can be (re)used.

Closes issue http://bugs.digium.com/view.php?id=13113
Closes issue http://bugs.digium.com/view.php?id=10950
Closes issue http://bugs.digium.com/view.php?id=10952

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=141741 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-08 15:06 svnbot         Checkin                                      
2008-09-08 15:06 svnbot         Note Added: 0092189                          
======================================================================




More information about the asterisk-bugs mailing list