LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-17-2006, 07:18 AM   #1
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Rep: Reputation: 30
how does a rpm build happen + shell script help


I build rpms everytime i need to change them specific to our distribution.
Is there any way I could know the status of the build?

For eg: Openoffice takes around 8 hrs to build from source. If there would be a procedure which will say us 20% done, 30% done etc will be helpful.

Any ideas?


Thanks in advance
 
Old 07-17-2006, 07:39 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,665
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
As far as I know rpm doesn't output progress that way.
Maybe it could be scripted around but I don't think that's a trivial thing to do.
 
Old 07-17-2006, 07:52 AM   #3
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
thats what i am trying to figure out....
 
Old 07-17-2006, 08:10 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,665
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
thats what i am trying to figure out.
Rpmbuild doesn't support "-h", so you better start scripting then...
 
Old 07-19-2006, 04:53 AM   #5
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
shell script help

Hi,
I need help in writing a shell script that tells the status of the build of a rpm. If the rpm build is 20% complete, it should tell us that
when 100% complete, it should say success...
Anyone out there
Just an idea of thought
 
Old 07-19-2006, 05:24 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,665
Blog Entries: 54

Rep: Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952Reputation: 2952
I need help in writing a shell script that tells the status of the build of a rpm.
I said in the thread you started about this earlier on (http://www.linuxquestions.org/questi...d.php?t=464803) rpmbuild doesn't support -h and you should start scripting. Now if you need help with writing a script then show us what you've got sofar. My guess is you don't want help but you want the script written for you.
 
Old 07-19-2006, 06:35 AM   #7
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
I merged the two threads on the same topic...

John
 
Old 07-19-2006, 06:51 AM   #8
arnold12
LQ Newbie
 
Registered: Jul 2006
Posts: 10

Rep: Reputation: 0
Quote:
Originally Posted by jtshaw
I merged the two threads on the same topic...

John
This is really coincidence.
 
Old 07-19-2006, 11:45 PM   #9
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
my concern is not answered
 
Old 07-20-2006, 02:30 AM   #10
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
can anyone give me an idea how to go about with the shell script. Can anyoneguide me through the rpm build procedure i mean, when it starts, where it starts so that i can start my shell script. it sounds pretty exciting to me write somethinglike that
 
Old 07-20-2006, 02:33 AM   #11
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
Code:
man rpmbuild
its a problem unique to you so its imperative you should solve it.
 
Old 07-20-2006, 02:38 AM   #12
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
hey its not a problem it a solution for everyone to know the rpm build status when they do build the rpm. If tehy know some percentage complete, its nice na.. its an idea of thought
 
Old 07-20-2006, 02:46 AM   #13
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
as said earlier, rpmbuild has no option for hash (the -h option as in rpm -ivh) so the only way you can generate a package progress percentage is by dividing the process completed by total process and doing a x 100%. now, how or what you categorize as process completed and total process is out of my league. maybe you can compute the total bytes of the files and check how much bytes is already packaged and how much is left to package.
 
Old 07-20-2006, 04:27 AM   #14
sailu_mvn
Member
 
Registered: Sep 2004
Location: Hyderabad
Distribution: FEDORA,REDHAT,HOST
Posts: 440
Blog Entries: 1

Original Poster
Rep: Reputation: 30
thats what i want to know
actually as far as i know, the sources are copied to a tmp directory and from there it starts executing. First concern is to know the source size. That can be done easier. But the process? how to find out that the process is thismuc complete?
It should be useful for every rpm
 
Old 07-20-2006, 04:44 AM   #15
prozac
Member
 
Registered: Oct 2005
Location: Australia
Distribution: slackware 12.1
Posts: 753

Rep: Reputation: 32
i think you would need to make a wrapper for rpmbuild by using scripts. wrap rpmbuild in a script which checks what files rpmbuild has already packaged then use some method to deduce the percentage completed.
 
  


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
RPM-Build hkillen Linux - Software 4 06-27-2006 05:38 PM
Rpm-build abhijeetudas Linux - Software 3 12-06-2005 02:06 AM
build rpm file . bruse Linux - Newbie 4 09-11-2005 11:06 AM
cannot build source rpm/ rpm questions kpachopoulos Fedora 3 07-24-2005 10:15 AM
build rpm Santas Linux - Software 1 11-21-2003 06:45 PM


All times are GMT -5. The time now is 03:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration