LinuxQuestions.org
Help answer threads with 0 replies.
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 04-21-2013, 07:27 PM   #31
michaelslack
Member
 
Registered: Feb 2013
Location: Sydney
Distribution: slackware
Posts: 85

Rep: Reputation: 34

Quote:
Originally Posted by psionl0 View Post
Not every Makefile honours the DESTDIR option...what to do if DESTDIR is not honoured.

In a lot of cases, src2pkg will do all the work of creating a package for you.
Ha! Nothing like a blast from the past.

I couldn't help but adding my two cents' worth here, it might be useful for others. Don't forget slacktrack, which is another utility for making a slackware package when DESTDIR doesn't work. I used it recently to make a package out of the texworks editor (just to try it out). The usual method (essentially that of the OP!) didn't work because DESTDIR was not honoured.

I was able to make a package (lazily) by doing the following:
  • obtaining the texworks source tarball: texworks-0.4.5-r1281.tar.gz
  • in the same directory as the tarball, I created a basic little build script tw.build:

    Code:
    #!/usr/bin/bash
    
    tar xf texworks-0.4.5-r1281.tar.gz
    cd texworks-0.4.5
    qmake
    make
    make install
    which ordinarily would have compiled and installed texworks ``directly'' onto the system, i.e. bypassing slackware's package management tools.
  • from the same directory execute, as root (after logging in with su - to get the proper PATHS setup, etc):

    Code:
    slacktrack -p texworks-0.4.5-i686-1custom.tgz ./tw.build

...and a beautiful new home-made slackware package appears at /tmp/texworks-0.4.5-i686-1custom.tgz

Michael

PS I couldn't resist giving slacktrack a plug here, given the contribution of moses (slacktrack's author?) to the original thread so long ago...I guess that was pre-slacktrack!!

Last edited by michaelslack; 04-21-2013 at 07:32 PM. Reason: typo
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 04-22-2013, 01:38 AM   #32
Geremia
Member
 
Registered: Apr 2011
Distribution: Slackware 14.1
Posts: 219

Rep: Reputation: 5
Quote:
Originally Posted by michaelslack View Post
Code:
slacktrack -p texworks-0.4.5-i686-1custom.tgz ./tw.build
[/LIST]
...and a beautiful new home-made slackware package appears at /tmp/texworks-0.4.5-i686-1custom.tgz

Michael

PS I couldn't resist giving slacktrack a plug here, given the contribution of moses (slacktrack's author?) to the original thread so long ago...I guess that was pre-slacktrack!!
Wow, thanks! I can't believe I'd never heard of slacktrack before!
 
Old 04-22-2013, 02:00 AM   #33
michaelslack
Member
 
Registered: Feb 2013
Location: Sydney
Distribution: slackware
Posts: 85

Rep: Reputation: 34
You're welcome Geremia, I'm glad you found the post helpful! I must say, it took me quite a while to work out what/how slacktrack is/works, it was a bit inaccessible. But I came across the following set of slides from a talk Stuart Winter gave on slackware packaging:

http://www.slackware.com/~mozes/docs...esentation.pdf

...and it helped me understand it a lot.

Cheers,

Michael

Last edited by michaelslack; 04-22-2013 at 02:06 AM.
 
Old 04-22-2013, 03:57 AM   #34
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,768

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Here's the list of DESTDIR-like syntax which src2pkg supports automatically:
CMAKE_INSTALL_PREFIX DESTDIR BUILDROOT INSTALLROOT INSTALL_ROOT INSTALL_PREFIX install_root instroot DIST_ROOT

If anyone knows of any more, I'll happily add them.
 
Old 04-22-2013, 04:09 AM   #35
Toutatis
Member
 
Registered: Feb 2013
Posts: 32

Rep: Reputation: Disabled
I use "spill" rather than create Slackware packages.

http://www.rpcurnow.force9.co.uk/spill/

"spill is a program for creating set of symbolic links from one directory hierarchy which point to corresponding filenames in a separate directory hierarchy. It's primary use is to allow packages built from source to be installed in separate directory trees, which are all linked together under a common directory tree (e.g. /usr/local) to reduce the length of the PATH environment variable. "
 
Old 04-22-2013, 10:46 AM   #36
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.0
Posts: 583
Blog Entries: 2

Rep: Reputation: 76
"Spill" is not a part of Slackware and isn't included in SlackBuilds.org so I can't use "spill" to install "spill".

More seriously, "spill" seems to assume that all configure files honour the --prefix option. You can't really afford to make any assumptions about a source. Each source needs to be treated as potentially a special case.
 
Old 04-23-2013, 11:04 PM   #37
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
I'd like to blow my own trumpet here:

mkslack - a SlackBuild generator script
(C) David Woodfall
(C) modifications by slakmagik

This slackbuild generator uses templates stored in /usr/share/mkslack/templates and a config file /etc/mkslack/mkslack.conf which you must edit for name, email, copyright etc.

http://www.dawoodfall.net/files/slac...rsion/mkslack/
 
Old 04-25-2013, 04:07 PM   #38
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,605

Rep: Reputation: 142Reputation: 142
There's also src2pkg, of course.

gargamel
 
  


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
How to make my own packages Wynand1 VectorLinux 2 03-10-2004 05:42 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 11:19 AM
Newer Slackware Packages on older slackware version pengStudent Slackware 2 11-12-2003 12:47 PM
how to make RPM packages off a tarball? chupacabra Linux - General 2 10-15-2002 11:06 AM
Can I automate the tar, ./configure, make, and make install of about 50 packages? JoeLinux Linux - General 2 04-13-2002 03:35 AM


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