LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-29-2010, 08:14 AM   #1
d1s4st3r
Member
 
Registered: May 2004
Location: Italy
Posts: 70

Rep: Reputation: 16
Cannot rebuild RPM packages with rpmrebuild because of missing files


Hi guys,

I made a script that, by using "rpmrebuild" (which is available on SourceForge and uses rpmbuild as its backend), recreates all the currently installed RPM packages and stores them in a user-defined directory.

Everything works like a charm, except for a few packages.

Those packages fail to build because some of the files they should contain are missing on the filesystem.

This is an example of the errors I get:
Code:
error: File not found: /etc/identd.key
    File not found: /etc/identd.key
/usr/lib/rpmrebuild/rpmrebuild.sh: ERROR: package 'pidentd-3.0.14-5' build failed

error: File not found: /usr/share/ssl/certs/stunnel.pem
    File not found: /usr/share/ssl/certs/stunnel.pem
/usr/lib/rpmrebuild/rpmrebuild.sh: ERROR: package 'stunnel-3.26-1.7.3' build failed
Is there a way to ask rpmbuild (because yes, rpmrebuild allows to pass parameters to rpmbuild) to *ignore* the missing files?

Thanks in advance! :-)
 
Old 04-29-2010, 10:34 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Impossible to say why the script fails.

It is a Redhat 7.3 package, you can get it here
http://ftp.riken.go.jp/pub/Linux/fed...t/7.3/os/i386/
http://ftp.riken.go.jp/pub/Linux/fed....14-5.i386.rpm
> pidentd-3.0.14-5.i386.rpm

Or rebuild it from
http://ftp.riken.go.jp/pub/Linux/fed.../7.3/os/SRPMS/
http://ftp.riken.go.jp/pub/Linux/fed...0.14-5.src.rpm
> pidentd-3.0.14-5.src.rpm
 
Old 04-30-2010, 02:35 AM   #3
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
From the rpmrebuild man page:
Code:
-c, --comment-missing=<yes|no>
    comment out in the specfile missing files. Default: no.
Valery
 
Old 04-30-2010, 03:31 AM   #4
d1s4st3r
Member
 
Registered: May 2004
Location: Italy
Posts: 70

Original Poster
Rep: Reputation: 16
Thanks, Valery!
It works fine now, that was the trick! :-D
I knew about that option but the description "comment out in the specfile missing files. Default: no." is not so easily understandable... :-|
 
Old 05-01-2010, 03:13 AM   #5
Valery Reznic
ELF Statifier author
 
Registered: Oct 2007
Posts: 676

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by d1s4st3r View Post
Thanks, Valery!
It works fine now, that was the trick! :-D
I knew about that option but the description "comment out in the specfile missing files. Default: no." is not so easily understandable... :-|
Could you suggest another description ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Some <.pc> files are missing...how to rebuild them? me_and_linux Linux - General 3 10-05-2008 10:01 AM
Help with packages and rpm files schizo Fedora 3 09-23-2004 10:46 AM
Installed RPM packages reported missing (fedora 1, agnula) Taika-Kim Linux - Newbie 2 04-11-2004 04:44 PM
rpm says missing dependancies but I do have the files davoman Linux - Software 7 11-25-2003 06:16 AM
Files always missing when using RPM Wraith2288 Linux - Software 2 09-15-2003 08:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration