LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 07-19-2010, 10:42 AM   #1
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Rep: Reputation: 43
Fedora 13 - LDFLAGS


Howdy fellow Fedorites :-)
I recently installed Fedora 13 on my system, and I'm still in the process of setting it up as I like.
As the FCEU and snes9x versions on rpmfusion are old (fceultra 0.98, snes without GUI), I wanted to compile my own RPMs
Everything went OK, but I found myself having to build the packages several times because of missing LDFLAGS.

I got several errors like "symbol X missing, it was found on Y so you may want to add Y to the linker flags", which I fixed by modifying & exporting LDFLAGS.

So, 2 questions:
1.- why are the LDFLAGS missing? How can I avoid having to set them up manually?
2.- There should be a way to avoid re-compiling the source and only run the rpm packaging stuff with the already built things (some option like 'don't build, only package'). how can I do that?


BTW, I can share my (pretty much hacked) .spec files if you are interested


Regards
 
Old 07-20-2010, 03:52 AM   #2
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Have you tried contacting maintainers of those packages? They might know reasons, and/or do it for you maybe.
 
Old 07-20-2010, 08:50 AM   #3
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 43
Thanks for your reply, but that's not required. I did build the packages succesfully, I just wanted to know if there is a way to spend less time building my RPMs in the future.
It seems FCEUX is not packaged due to issues in the way the LUA library is used, and snes9x is packaged without a GUI just because the GUI used to be a fork and only in the latest version it is integrated in the official package.

Being a Slackware user I'm used to compile my own packages. Never had an issue like this before, that's why I point (maybe incorrectly) to the RPM creation process instead of the build itself. But I reused the .spec files from the rpmfusion repo (modifying them as required of course) so I also believe maybe I need to set up something else in my environment.
 
Old 07-20-2010, 11:40 AM   #4
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
I used to recompile a lot of srpms from Fedora to CentOS and I understand all the problems more then well. I would spend hours recompiling the bunch of dependencies only to find that one of the deep under requires newer system package that would endanger the stability of system it self, then I would lower the version used and tried again.
 
1 members found this post helpful.
Old 07-20-2010, 10:56 PM   #5
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 43
Well, I have just started using Fedora a few days back, so I still have not faced that problem. :-)

So, in your experience, is there any way to avoid having to rebuild the sources? there must be something 'tweakable' in the .spec file for that!
 
Old 07-22-2010, 02:26 AM   #6
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Every creation of rpm forces the compilation of sources, so if anything is changed it will be in rpm as it should be. What rpm does is watch what "make install" would do and use those file in binary rpm.

Run
Quote:
man rpmbuild
to see what options you want (-ba to -bs) to use. But it is better to use .spec file to set everything up once, and be reused times and times again. Here is excellent site for rpm's: http://www.rpm.org/max-rpm/ . Everything you would do manually better add to chapters (like postinstall or preinstall, etc..).
 
Old 07-22-2010, 08:48 AM   #7
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by DrLove73 View Post
Every creation of rpm forces the compilation of sources, so if anything is changed it will be in rpm as it should be.
yes and no. Yes, because if something changes in the source, there should be a rebuild.
But mainly no as sometimes you can even change something that does not require all the source files to be rebuilt, so at least some of the already built pieces can be reused. Also, if the compilation is successful and my spec file fails in the packaging step, doing a full rebuild is a waste of time.
Quote:
Originally Posted by DrLove73 View Post
What rpm does is watch what "make install" would do and use those file in binary rpm.
I understood that part, src2pkg and the slackbuilds do the same thing in Slackware :-)

Quote:
Originally Posted by DrLove73 View Post
Run to see what options you want (-ba to -bs) to use. But it is better to use .spec file to set everything up once, and be reused times and times again. Here is excellent site for rpm's: http://www.rpm.org/max-rpm/ . Everything you would do manually better add to chapters (like postinstall or preinstall, etc..).
Tips are always welcome, and thanks for the link :-) I have read something about --short-circuit but haven't found yet a good description of how to use it, I think that option is (at least partially) what I'm looking for


Regards.

Last edited by AlvaroG; 07-22-2010 at 08:54 AM.
 
Old 07-22-2010, 03:05 PM   #8
DrLove73
Senior Member
 
Registered: Sep 2009
Location: Srbobran, Serbia
Distribution: CentOS 5.5 i386 & x86_64
Posts: 1,118
Blog Entries: 1

Rep: Reputation: 129Reputation: 129
Quote:
Originally Posted by AlvaroG View Post
yes and no. Yes, because if something changes in the source, there should be a rebuild.
But mainly no as sometimes you can even change something that does not require all the source files to be rebuilt, so at least some of the already built pieces can be reused. Also, if the compilation is successful and my spec file fails in the packaging step, doing a full rebuild is a waste of time.
I am not writing about what and how it SHOULD be, but what happens when you run
Code:
rpmbuild -ba packagename.spec
.
 
Old 07-22-2010, 03:50 PM   #9
AlvaroG
Member
 
Registered: Jul 2009
Location: Canelones, Uruguay
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 43
I think I misunderstood the
Quote:
Originally Posted by DrLove73 View Post
as it should be
part. Sorry for that, reading it again I realized what you meant. :-)
 
  


Reply



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
CFLAGS and LDFLAGS configuration problem vofka Linux - General 3 11-06-2009 04:28 PM
utf8 locale LDFLAGS -lncursesw wrong, needs to be -lncurses? Mol_Bolom Linux - Software 0 07-26-2009 01:57 AM
CFLAGS and LDFLAGS question versaulis Linux - Software 1 11-07-2008 11:33 AM
What are LDFLAGS and AM_LDFLAGS!? wimnat Linux - Software 2 11-21-2005 04:08 AM
how to use LDFLAGS while running ./configure Kilahchris Linux - Newbie 1 08-27-2004 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:37 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