LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2007, 01:54 PM   #1
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
src2tgz


has anyone every heard of a utility (perhaps slackware based) that converts .tar.gz source projects into .tgz packages for install?

i swear i seen a src2tgz utility the other day but google.com & lq.org comes up completely blank on it.

any how, i want a utility that will replace 'make install' with a 'installpkg' so that i can apply a 'removepkg' should i need to... it must be a trivial thing as i used to do that kind of thing before

is it the checkinstall package that does this ?

thanks

- perry

UPDATE: FOUND IT - SORRY FOR TAKING UP ANOTHER THREAD!

Last edited by perry; 09-09-2007 at 01:58 PM.
 
Old 09-09-2007, 02:15 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by perry View Post
has anyone every heard of a utility (perhaps slackware based) that converts .tar.gz source projects into .tgz packages for install?

i swear i seen a src2tgz utility the other day but google.com & lq.org comes up completely blank on it.
That is because it is called src2pkg

Eric
 
Old 09-10-2007, 07:09 AM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
perry, the checkinstall program which used to be included in Slackware does what you describe, but this is only after you have unpackge configured and compiled the sources. The trackinstall program included with src2pkg does the same thing -sometimes better. src2pkg itself will do the whole process from unpacking the sources to the finished package and cleanup and allows you to control the build if needed and can produce a script for you which will ensure repeatability of the build. It does a lot of sanity checks on the package content and corrects most common mistakes or problems when needed.
 
Old 09-10-2007, 08:38 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by gnashley View Post
perry, the checkinstall program which used to be included in Slackware does what you describe, but this is only after you have unpackge configured and compiled the sources. The trackinstall program included with src2pkg does the same thing -sometimes better. src2pkg itself will do the whole process from unpacking the sources to the finished package and cleanup and allows you to control the build if needed and can produce a script for you which will ensure repeatability of the build. It does a lot of sanity checks on the package content and corrects most common mistakes or problems when needed.
Hi,

gnashley, the checkinstall package will require you to use the "--fstrans=no" command line flag when invoking 'checkinstall' so not to have a problem. I like 'checkinstall' and still use it. I've been meaning to try the 'src2pkg' sometime.

I guess the time is nearer than before. No progress at the 'checkinstall' site as of August 03, 2007. You can still get the package for Slackware 11 but you must use the flag as described when using for Slackware 12.

Quote:
from Slackware 12.0 checkinstall README;

Due to an unfortunate incompatibility with the latest coreutils
that was not noticed until right before release, a working copy
of "checkinstall" was not available at the time of the Slackware
12.0 release. Stuart Winter was kind enough to upgrade
slacktrack (a similar tool) to work around the issue of
installwatch not working, but in order to do that every file on
the system has to be "touched" so that changed timestamps can be
used to find files that are new. Obviously, you will not want to
do that on a production system (but it is always best to have a
dedicated "build box" anyway).

A new and working checkinstall might also be availible by the
time you read this. The project's homepage is:

http://asic-linux.com.mx/~izto/checkinstall

Sorry for any inconvenience.

Quote:
from checkinstall site;

Aug 3rd, 2007

An incompatibility with the newest coreutils seems to have bitten a bunch of people, specially users of the recently released Slackware 12. A new checkinstall version will be released soon which will address this issue. In the meantime, as a workaround you can use the "--fstrans=no" command line flag when invoking checkinstall. Read the details here.
I just love Slackware and the LQ community! Keeps my mind active, those horses just can't understand me when I speak tech. I swear one of them tried to say 'Linuxxxx' the other day. Either too much time at the console or not enough with the horses. Or both?

Last edited by onebuck; 09-10-2007 at 08:39 AM. Reason: grammar, syntax
 
Old 09-10-2007, 12:44 PM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The problem you refer to with the latest checkinstall is actually an installwatch problem. The 0.7.x version(s) introduce some sort of filesystem translation which is not working very well, yet.
src2pkg also uses installwatch so I keep an eye out for any updates/fixes for this problem. Fact is, I had installwatch-0.7 working with src2pkg, but in the course of testing I found a pretty serious bug which would cause installwatch to 'remove' your gcc and crt1.so libs. Yuck!
Since I had found the earlier installwatch-0.6 to be nice and stable I simply reverted to the earlier version. If you try this with checkinstall(using earlier version) you may have variable results -some people have reported no problems and others have had problems. The checkinstall script itself needs a couple of small fixes to work properly with later versions of bash and coreutils, although Slackware 12 still seems to not fully enforce the new POSIX standards. If you look in the changelog you'll see that at one point bash-3.2 was added and then later removed because it broke so many script-based programs -checkinstall was probably one of these un-named breakages.
I think you'll find src2pkg and the included trackinstall a better-performing and more flexible solution. And I stay on-the-ball with the program so that if there are problems you can be sure they'll get prompt attention.
I'm actually considering forking the installwatch libs -except for the file-tranlation code the recent changes have been from contributors and may provide some extra functionality with 2.6 kernels without the breakage from the fstrans code. The really obscure problem I found seems to be related to the linking of the binaries and libs -I found it by trying to compile and package libbonobo-2.14.x (or was it libbonoboui?).
 
Old 09-17-2007, 09:08 PM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Sorry about the late reply. Thanks for the info. I guess it's time to change.
 
Old 09-17-2007, 10:47 PM   #7
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Debian, Void, Slackware, VMs
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
perry,

I use src2pkg; gnashley does excellent work:-)
 
  


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



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

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