Forums

Bluewhite64 Linux :: Forums :: Bluewhite64 Linux Official forum :: Bluewhite64 Linux Current
 
<< Previous thread | Next thread >>
Converting SlackBuilds and staying up to date.
Moderators: Arny
Author Post
charlie
Mon Jul 26 2010, 11:05
Registered Member #455
Joined: Mon Mar 16 2009, 10:54
Posts: 10
Bluewhite64 should add something more than what Slackware64 offers. Slackware current is slow on updates and that is where Bluewhite64 can fill in. I imagine it is possible to make a script to scan all of the library dpendencies to make a a build order file for compiling the entire system. If someone could do that (I am not a script master by I'll see what I can do) then that would help us all who want to stay on the cutting edge.

Bluewhite64 should also offer extra apps as a default install such as ffmpeg as well as the zen-kernel.

Here is function you can add to your .bashrc or .bash_profile to help save you some time from typing:

bw64 () {
#Enter your own custom flags or leave blank.
ENH=" -pipe -march=native -msse3" #Leave a space at the beginning or leave blank. 
# Join lines
sed -i -e:a -e "/$/N; s/x86_64\".*\]\; then\n/x86_64\" \]\; then/;Ta" *.SlackBuild
# add optimization
sed -i "s@\(then.*=\"-O[0-4] -fPIC\)\"@\1$ENH\"@g" *.SlackBuild
# separate line
sed -i "s@then\(.*=\"-O[0-4].*\".*\)@then\n\1@g" *.SlackBuild
# remove 64
sed -i "s@\(LIBDIRSUFFIX=\"\)64\"@\1\"@g" *.SlackBuild
# separate line
sed -i "s@then\(.*LIBDIRSUFFIX=\"\"\)@then\n\1@g" *.SlackBuild
}


Type bw64 in the directory your SlackBuild file is located and your script is now ready to execute for Bluewhite64.
Back to top
charlie
Tue Aug 24 2010, 03:21
Registered Member #455
Joined: Mon Mar 16 2009, 10:54
Posts: 10
Updated the function:

bw () {
#Enter your own custom flags or leave blank.
ENH=" -pipe -march=native -msse3" #Leave a space at the beginning or leave blank. 
# Join lines
sed -i -e:a -e "/$/N; s@\(x86_64\".*\]\; then\)\n@\1@;Ta" *.SlackBuild
# add optimization
sed -i "s@\(then.*=\"-O[0-4] -fPIC\)\"@\1$ENH\"@g" *.SlackBuild
# separate line
sed -i "s@then\(.*=\"-O[0-4].*\".*\)@then\n\1@g" *.SlackBuild
# remove 64
sed -i "s@\(LIBDIRSUFFIX=\"\)64\"@\1\"@g" *.SlackBuild
# separate line
sed -i "s@then\(.*LIBDIRSUFFIX=\"\"\)@then\n\1@g" *.SlackBuild
# rename build
sed -i "s@-slackware-linux@-pc-linux@g" *.SlackBuild
}

Type "bw" to execute function.
Back to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System