LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-06-2009, 11:48 AM   #1
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
[ANNOUNCE] src2pkg-1.9.9 is released


src2pkg-1.9.9 has been released and is available for download here:
http://distro.ibiblio.org/pub/linux/...nload/src2pkg/

The biggest change in this release is that src2pkg now supports multi-lib and cross-compiler environments. If you are running Slackware64 with a multi-lib setup, you can use src2pkg to package 32-bit programs or libs by simply adding the option '-M32' to the src2pkg command-line. For other multi-lib systems or when cross-compiling, options are available which let you specify which compiler to use and which LIBDIRSUFFIX.

A small change has been made to the src2pkg 'API' which allows the use of a single 'build' function instead of separate functions for configure_source, compile_source and fake_install, similar to the 'build' functions used by other build systems. The 'build' function can also be used to simplify 'translating' regular SlackBuild scripts to the src2pkg format. Also, a new tool called 'sb2sp' is included which will automatically translate SlackBuild scripts for you. There are several advantages to doing this.

Support for drag-n-drop is now the default. A src2pkg-dnd script and desktop file make this possible. Unfortunately, it has only been tested with XFCE. I would appreciate it if any KDE users would try it out and report back with their results. src2pkg-dnd allows you to simply drop a tarball onto the src2pkg-dnd desktop icon to have a src2pkg script written for you. Dropping that src2pkg build script on the icon causes the build script to be executed from within an xterm.

This release doesn't have as many changes as the last couple of releases, so I don't expect to hear of any major problems with it. You can see a summary of the major changes in the CHANGES file here:
http://distro.ibiblio.org/pub/linux/...rc2pkg/CHANGES
for the full details, see the ChangeLog:
http://distro.ibiblio.org/pub/linux/...2pkg/ChangeLog

This release has been nearly ready for two months now, but I've had such bad problems with my back that I was unable to do any productive work for all of July and August. Finally, this week, I was able to put the last changes in...

As always, bug reports, comments or suggestions can be sent to me directly at:
amigo AT ibiblio.org
Be sure to put 'src2pkg' in the subject line so I notice your message.
I'm especially interested to know if anyone has any troubles using src2pkg with Slackware64.

Gilbert
 
Old 09-06-2009, 11:53 AM   #2
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Awesome! Thanks Gilbert, downloading now, and will take for a test drive and kick the tires.
 
Old 09-06-2009, 12:20 PM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
All right. First test drive of 1.9.9 is successful.
I previously used the older version of src2pkg to install a proprietary e-mail client (First Class) on my Slackware 13.0 system.
I just now used pkgtool to remove First Class. I used src2pkg-1.9.9 to successfully create a Slackware package from the First Class source tarball, it installed just fine. This was done on Slackware 13.0, XFce 4.6.1.
 
Old 09-06-2009, 12:35 PM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Great, did you get a src2pkg-dnd icon on your desktop after installing?
 
Old 09-06-2009, 12:56 PM   #5
slackass
Member
 
Registered: Apr 2006
Location: SE Texas
Distribution: Slack64-15.0
Posts: 910

Rep: Reputation: 90
Worked "PERFECT" on LightScribe.
Thanks!!
 
Old 09-06-2009, 01:03 PM   #6
eddyvp
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Slackware
Posts: 37

Rep: Reputation: 17
Just installed 1.9.9. on Slackware64
Created the src2pkg-dnd icon on my desktop(KDE4)
Compiled a test using the icon.
It worked flawlessly.
Great stuff

Thanks gnashley

eddyvp
 
Old 09-06-2009, 01:30 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
eddyvp -thanks a lot for trying that out -I never have KDE installed so was unable to check that out. Pieter Sartain did the heavy lifting to get it working for XFCE -I've been using it forever, but under ROX-filer/windowmaker which is different.
 
Old 09-06-2009, 01:35 PM   #8
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by gnashley View Post
Great, did you get a src2pkg-dnd icon on your desktop after installing?
I ran # upgradepkg to install src2pkg-1.9.9, upgrading from the last version. I don't have a new icon on my desktop. Maybe a clean install will produce the icon in XFce 4.6.1?
 
Old 09-06-2009, 01:47 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Awesome. I just ran into a snag though. I was looking for slackbuilds for Firefox, there are none. So of course, I turned to trusty src2pkg, 'srce2pkg firefox-3.5.2.tar.bz2' but no go either:

Code:
Correcting source permissions - Done
Checking for patches - None found
Skipping configure_source - 
Skipping compile_source - 
FAILED!! No INSTALL_LINE given.
root@slacker:/home/slackuser#
Hrmm. Any ideas?
 
Old 09-06-2009, 01:49 PM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Hmmm, I'm not familiar with XFCE either :-(
Is there some command you have to run to update the database or create new icons?
Whether you do a fresh install or use upgradepkg, these two commands get run when the package is installed:
update-desktop-database -q usr/share/applications
gtk-update-icon-cache --quiet usr/share/icons

Hopefully piete will see this thread and chime in with some help...
 
Old 09-06-2009, 02:02 PM   #11
eddyvp
Member
 
Registered: Feb 2007
Location: Belgium
Distribution: Slackware
Posts: 37

Rep: Reputation: 17
Hitest,

First I've removed the previous version of src2pkg, then installed 1.9.9, but I guess and upgrade will also work just the same.
The icon appeared in the program menu, not on the desktop.
As instructed I've copied /usr/bin/src2pkg-dnd to my home directory, changed the ownership to eddy:users and created the icon on the desktop manually.
Compiled a few more tests (yakuake, kile) and all went alright.

eddyvp
 
Old 09-06-2009, 02:07 PM   #12
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Jeebiz: That is "installed" by extracting it in /usr/lib. You need to fake-install it manually in a src2pkg script. Of course, it should play nicely with the official firefox package.
 
Old 09-06-2009, 02:13 PM   #13
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Cool

Quote:
Originally Posted by eddyvp View Post
Hitest,

First I've removed the previous version of src2pkg, then installed 1.9.9, but I guess and upgrade will also work just the same.
The icon appeared in the program menu, not on the desktop.
eddyvp
I'm an idiot.
Thanks, eddyvp. Yes. The icon is in my program menu for XFce.
 
Old 09-06-2009, 02:59 PM   #14
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,186

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
Quote:
Originally Posted by tuxdev

Jeebiz: That is "installed" by extracting it in /usr/lib. You need to fake-install it manually in a src2pkg script. Of course, it should play nicely with the official firefox package.
Sorry, I just don't know how to start. When it comes to making my own packages, I am still a complete noob.

So what, I have to extract the entire firefox source into lib? (clearly I don't know what I am doing here).
 
Old 09-07-2009, 01:22 AM   #15
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Jeebiz, apparently you are trying to build firefox from source. (tuxdev was referring to installing the binary release) Of course, the Slackware SlackBuild just repackages the binary package released by the developers. In order to build Firefox from source, you must do it in a similar way to which seamonkey is built. This is not a job for the faint at heart -there is a good reason that PatV doesn't do it, because it is a *royal* PITA and can take days/weeks to get right.
The trouble is all about getting the right options. The Slackware build of seamonkey passes the options directly to the configure script so that autoconf is used. But, you can also place the options in a mozconfig file -this is the way most people do it. either way, discovering and choosing the right options is a real nightmare.

I have an old build script for firefox-1.0.7(the last GTK-1.2 version) which shows a good way to do it with src2pkg. here's an excerpt which shows the 'meat' of the src2pkg build script:
Code:
unpack_source

cp $CWD/mozconfig.FF-std-GTK1 $SRC_DIR/mozconfig

fix_source_perms

# configure_source
# compile_source

cd $SRC_DIR ; ./configure

cd $SRC_DIR
MOZ_PHOENIX=1 make -j3 -s export
MOZ_PHOENIX=1 make -j3 -s libs

fake_install
Of course, the trick is that I have a pre-made mozconfig.FF-std-GTK1 file which gets copied into the sources. For what it is worth, here are the contents of it:
Code:
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1

ac_add_options --disable-ldap
ac_add_options --disable-mailnews
ac_add_options --enable-extensions=default,irc
ac_add_options --enable-crypto
ac_add_options --disable-composer
ac_add_options --enable-single-profile
ac_add_options --disable-profilesharing

# amigo
ac_add_options --with-system-zlib 
ac_add_options --prefix=/usr
ac_add_options --enable-optimize="-O2 -march=i586 -mcpu=i686" 
ac_add_options --with-system-jpeg 
ac_add_options --with-system-png 

ac_add_options --disable-toolkit-qt 
ac_add_options --disable-toolkit-xlib 
ac_add_options --disable-toolkit-gtk2 
ac_add_options --enable-toolkit-gtk 
ac_add_options --enable-default-toolkit=gtk 
ac_add_options --disable-freetype2
ac_add_options --disable-freetype2-tests
ac_add_options --disable-xft

# New
# ac_add_options --disable-shared
# ac_add_options --enable-static
ac_add_options --disable-tests
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
The options for building a recent version would be considerably different -especially regarding the toolkit options. If you really want to build firefox from source, you could try starting out with a modified SlackBuild script for seamonkey. Or you could search the web(mozilla forums) for a viable mozconfig file to use as above.
Either way, set aside a month or so for achieving the package you want...
It would be nice if someone experienced with src2pkg would come up with a build script for a recent version -I won't touch the project because building it from source takes forever on my hardware -although recent sources can be built somewhat faster if built against an already-built xulrunner, I understand.
 
  


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
[Announce] src2pkg-1.9.7 release gnashley Slackware 11 01-31-2009 01:57 AM
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 11:09 AM
src2pkg-1.7 released gnashley Slackware 23 12-25-2007 02:26 AM
src2pkg-1.6 released gnashley Slackware 32 11-17-2007 03:03 PM
LXer: [ANNOUNCE] PHP 5.1.2 Released! LXer Syndicated Linux News 0 01-13-2006 03:01 AM

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

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