LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices

Reply
 
Search this Thread
Old 10-25-2010, 07:09 AM   #1
nocountryman
Member
 
Registered: Dec 2009
Location: Bulgaria for now :)
Distribution: Fedora 14
Posts: 60

Rep: Reputation: 3
LFS RPM SPEC files: Binutils RPM spec for x86 arch


So here it comes:

I do understand that package managers are not something for LFS for most ppl, however for me it is essential as i am building a custom distro for my home/family/server/media computers. Some of them have similar hardware some not really. i do not want to recompile all the time everything if i break something (simple backup/restore is not solution). Anywho long story short:

I am trying to make a spec file for binutils-2.20.1 for just x86 platform (i would need it to have only these 3pkgs: binutils, binutils-devel, binutils-static )and i have an src.rpm from fedora with fedora's spec file. BUT have you seen this file? its huge, it looks like it has at least half of windows source code .

My problem is that i can not strip all the unneeded stuff from the fedora spec file. I need it to simply compile the x86 versions of mentioned packs.

I will use prolly later binutils for x64 arch, but if i have a stripped down version for x86 i'll figure it out how to make any other single arch builds.

the attached fedora spec file is for convenience for anyone who could help me with this
Attached Files
File Type: txt binutils.spec.txt (60.2 KB, 3 views)
 
Old 10-25-2010, 07:56 AM   #2
corbis_demon
Member
 
Registered: Jun 2004
Location: India
Distribution: Slack 13
Posts: 494

Rep: Reputation: 35
I'm not familiar with the rpm package management, but the spec file you attached is mostly just changelog, and the rest is the build instructions. If the attached file is a decent enough reperesentative of an rpm spec file, then I'm sure it wouldn't be as big as Windows source code, which I unfortunately haven't come across .But I'm really not able to piece together the elements involved in this process. What is the unneeded stuff you speak of? Are you sure the "uneeded stuff" is not essential?
 
Old 10-25-2010, 09:09 AM   #3
nocountryman
Member
 
Registered: Dec 2009
Location: Bulgaria for now :)
Distribution: Fedora 14
Posts: 60

Original Poster
Rep: Reputation: 3
the unneeded stuff is the one that defines options to compile bin utils for different platforms. as well as patches and etc that are not mentioned in LFS.

ill be using the tar file from gnu.org for bin utils, without any mods made by fedora.

the LFS suggests these steps to configure and install the binutils packg:

rm -fv etc/standards.info
sed -i.bak '/^INFO/s/standards.info //' etc/Makefile.in

configure --prefix=/usr \
--enable-shared

make tooldir=/usr

make tooldir=/usr install

cp -v binutils-2.20.1/include/libiberty.h /usr/include

omitted the check part here

so with these steps i need to get 3 packages mentioned in the first post (binutils, binutils-devel,binutils-static)

and that is the problem coz the binutils packg is huge and sorting out files and etc is horrific task and needs you to know what you need from binutils and what not and etc.

anyone who ever had to do a custom-built rpm for binutils or simply with very good knowledge or RPMs would see right away what to cut out
 
  


Reply

Tags
binutils, lfs, rpm, spec


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 Spec files writing issues PMP Linux - Newbie 2 04-16-2009 03:19 AM
Question about rpm spec files and %post scripts rpg Linux - Software 5 01-06-2006 07:20 AM
%file attribute for RPM SPEC files Brian of Gep Linux - Software 3 06-18-2004 04:51 AM
%file attribute for RPM SPEC files Brian of Gep Fedora 0 06-15-2004 07:12 PM
rpm spec files pk21 Programming 3 06-11-2003 04:53 AM


All times are GMT -5. The time now is 05:41 AM.

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