LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-24-2004, 08:38 PM   #1
chemtraX
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 12

Rep: Reputation: 0
.SlackBuild optimize compile, need help


currently i'm downloading *almost* all slackware's source in /a directory and study everything in the program_name.SlackBuild script.I'm thinking of making my own optimized slackware packages.

my question, is it enough for me to put this flags in root's .bashrc file
Code:
CFLAGS='-O2 -march=i686 -mcpu=athlon-xp -pipe'
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS
chmod +x program_name.SlackBuild, run it as root and the program_name.SlackBuild will yield the *.tgz package optimized for my athlon-xp cpu?or i need to use slackbuilds package from linuxpackages.net?

can somebody help me? thanks...
 
Old 05-25-2004, 01:39 AM   #2
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Yes, you can place it there, or you can put it in a "slackbuild.options" file, along with other variables needed for making pkgs, then source that file with each SlackBuild script like this:

. /etc/slackbuild.options

I'm currently in the same process of setting up my own build system, following the examples from various sources: LinuxPackgaes.net, Slackware, and LFS/BLFS (Linux From Scratch / Beyond Linux From Scratch)

I've elected to put the options files (including a separate one especially for KDE, called KDE.options) in the /etc directory, to be consistent with the Slackware setup of using /etc for configuration files

While I still have those variables in my startup script, I'm thinking of removing them as soon as I complete my package building system, so far I have KDE/QT fine-tuned to the point where I'm satisfied, but I still have my work cut out for me with the configure options for the rest of the Slackware source tree, including the extra/source/ directory...........There are still some old build scripts that do not follow the relatively recent buildscript naming convention of "package_name.SlackBuild", which I will be converting.................Also, I've created a "template.SlackBuild" file to help make the job easier, but it will still take some time to finish the project (and keep me out of trouble ).................The template will also help with any third-party apps that I eventually want to build and use....

If you need help with some specifics, let me know

Last edited by thegeekster; 05-25-2004 at 01:44 AM.
 
Old 05-25-2004, 02:21 PM   #3
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
Would you think you'd be prepared to make your build system publicly available once it is finished?
Possibly as an open source project, hosted eg on Sourceforge?

I really think there's quite some interest in this subject --- I guess this from the many threads on "Gentoo vs Slackware" and "how to optimise my Slackware build". Obviously there are a few Slackware users who want to optimise with a little more comfort than is available right now, but not switch distribution.

Regards

gargamel
 
Old 05-25-2004, 04:17 PM   #4
chemtraX
LQ Newbie
 
Registered: Nov 2003
Distribution: slackware 9.1
Posts: 12

Original Poster
Rep: Reputation: 0
no...i will keep the packages for myself..since i'm totally a newbie,this is just for the sake of learning..it wont be any great..
slackware is slackware..keep it that way..

slackware really force me to learn..
 
Old 05-27-2004, 04:09 PM   #5
thegeekster
Member
 
Registered: Dec 2003
Location: USA (Pacific coast)
Distribution: Vector 5.8-SOHO, FreeBSD 6.2
Posts: 513

Rep: Reputation: 33
Quote:
Originally posted by gargamel
Would you think you'd be prepared to make your build system publicly available once it is finished?
Possibly as an open source project, hosted eg on Sourceforge?

I really think there's quite some interest in this subject --- I guess this from the many threads on "Gentoo vs Slackware" and "how to optimise my Slackware build". Obviously there are a few Slackware users who want to optimise with a little more comfort than is available right now, but not switch distribution.

Regards

gargamel
As for me, I've given it some thought, but not much........it will take some time to complete, maybe another month or two, since I will need to juggle my time and test everything..................And I never even thought about SourceForge..........

I've seen some of the build scripts others have on the 'net, but nothing so complete as to allow a user to completely rebuild Slackware from source, which is what I have in mind......................I agree Slackware could use a bit more in that department, but I also agree with the Slackware "do-it-yourself" philosophy..............Therefore, what I'm doing will use the current tools available to Slack........and anyone else should be able to devise their own system with a little knowledge of shell scripting, which is why I've only given it minimal thought since anyone can do the same thing...........

If I thought this is something others truly want, then yes, otherwise I can't see justifying wasting space at SourceForge.........................there's already too many abandoned projects cluttering the scene over there, if you catch my meaning, and if it's something that's not going to be popular, then why bother setting the project in motion, only to have it bomb out and wasting space for something more deserving.......*shrugs*
 
  


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
a generic SlackBuild shilo Slackware 46 06-19-2008 11:45 PM
The perfect gtkpod.SlackBuild shilo Slackware 3 08-04-2005 06:31 PM
GNOME.SlackBuild jmdlcar Slackware 1 06-03-2005 04:52 PM
KDE.SlackBuild spaceballs Slackware 8 04-01-2005 08:42 AM
SlackBuild system thegeekster Slackware 7 06-01-2004 06:59 PM


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