LinuxQuestions.org
Review your favorite Linux distribution.
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 01-05-2009, 07:35 PM   #1
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Rep: Reputation: 51
src2pkg


This is a great little app, works flawlessly but for a minor detail, at the end when the .tgz is placed in /tmp and i try to install it with 'installpkg' as root, and put the first 3-4 letters of the app to be installed and press TAB to autocomplete the name it just does part of it. I have to enter the rest manually, otherwise, it gives an error saying the app does not end in .tgz when in reality it does. Is this small bug? Thanks.
 
Old 01-05-2009, 07:43 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
probably it's finding the build directory like /tmp/foo-1.2.3 and /tmp/foo-1.2.3-noarch-1.tgz

If you try typing the dash or the next letter or two does the tab then finish the completion?

P.S I never used src2pkg so I may be way off base here

Last edited by mRgOBLIN; 01-05-2009 at 07:44 PM. Reason: fixed typo
 
Old 01-05-2009, 08:15 PM   #3
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Quote:
src2pkg
This is a great little app, works flawlessly but for a minor detail, at the end when the .tgz is placed in /tmp and i try to install it with 'installpkg' as root, and put the first 3-4 letters of the app to be installed and press TAB to autocomplete the name it just does part of it. I have to enter the rest manually, otherwise, it gives an error saying the app does not end in .tgz when in reality it does. Is this small bug? Thanks.
Sounds like what you seeing is Bash shell behavior and nothing to do with src2pkg. It may well be that the package has been built in the /tmp directory in a sundirectory named after the package's basename so there is more than one directory entry matching.

What happens if you hit tab twice after keying in the start characters ?

Another way may be, for example, if the package is created at /tmp/tunctl-1.5-i486-1_SBo.tgz, would be to run as root "installpkg /tmp/tunctl*.tgz" and let the shell glob the results.

Sorry if this is way off the mark - just some ideas !!
 
Old 01-06-2009, 03:46 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
mRgOBLIN and bgeddy are right on the mark. By default, src2pkg creates temporary working directories unser /tmp and also leaves the finished package there -the same way that a SlackBuild would do it by default. And the name of temp dirs created for the sources and package tree both start the same as the finished package.
Using the foo-1.2.3 example, the sources are in /tmp/foo-1.2.3-src-1, the package tree is in /tmp/foo-1.2.3-pkg-1 and the package, of course, would be /tmp/foo-1.2.3-i486-1.tgz
'installpkg /tmp/foo*.tgz' should work.

For convenience, you might want to change the setting for PKG_DEST_DIR in your /etc/src2pkg/src2pkg.conf file to this:
PKG_DEST_DIR=$CWD
That will always place the finished package in the same directory where you run src2pkg from. (There is already such a line in the conf file -you can simply uncomment it)
 
Old 01-06-2009, 01:21 PM   #5
macondo
Senior Member
 
Registered: Jul 2003
Posts: 1,016

Original Poster
Rep: Reputation: 51
Thank you all
 
Old 01-06-2009, 01:36 PM   #6
SqdnGuns
Member
 
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64 14.0
Posts: 981

Rep: Reputation: 88
Question

Quote:
Originally Posted by gnashley View Post
mRgOBLIN and bgeddy are right on the mark. By default, src2pkg creates temporary working directories unser /tmp and also leaves the finished package there -the same way that a SlackBuild would do it by default. And the name of temp dirs created for the sources and package tree both start the same as the finished package.
Using the foo-1.2.3 example, the sources are in /tmp/foo-1.2.3-src-1, the package tree is in /tmp/foo-1.2.3-pkg-1 and the package, of course, would be /tmp/foo-1.2.3-i486-1.tgz
'installpkg /tmp/foo*.tgz' should work.

For convenience, you might want to change the setting for PKG_DEST_DIR in your /etc/src2pkg/src2pkg.conf file to this:
PKG_DEST_DIR=$CWD
That will always place the finished package in the same directory where you run src2pkg from. (There is already such a line in the conf file -you can simply uncomment it)
Does this need to be updated in the WiKi?

Compatibility with Slackware versions

src2pkg has been tested and works with the stable releases of Slackware 11.0 and 12.0.

I have not tried this yet but might give it a shot.

Thanks
 
Old 01-06-2009, 02:22 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Ummm, I don't think it needs to be updated in the wiki -I mean the default behaviour has been the same for quite a long while now. You can also override the PKG_DEST_DIR from the command line by using the '-C' option with src2pkg or by running it like this:
PKG_DEST_DIR=/path/to/dir src2pkg OPTIONS tarball-name
In the case of the current dir you could use:
PKG_DEST_DIR=$(pwd) src2pkg OPTIONS tarball-name
to do the same thing.
 
Old 01-06-2009, 04:30 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
He probably meant to 12.2
 
Old 01-06-2009, 05:02 PM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
Oh, I see! Yeah, he's right then. Pretty soon there is gonna be a new release and there will several things that need updating.
 
Old 01-06-2009, 11:17 PM   #10
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current, OpenBSD
Posts: 449

Rep: Reputation: 41
Since we have the excellent slackbook, why not use it?
Read 8.3.2 Tab Completion Nice read, I think you'll enjoy it.
Greetings
 
Old 01-06-2009, 11:23 PM   #11
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,240

Rep: Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570Reputation: 570
Cool

Quote:
Originally Posted by gnashley View Post
Oh, I see! Yeah, he's right then. Pretty soon there is gonna be a new release and there will several things that need updating.
Sounds good, man. I appreciate the good work you do for our community!
 
Old 01-07-2009, 01:20 AM   #12
SqdnGuns
Member
 
Registered: Aug 2005
Location: Fountain Valley, CA / Thailand
Distribution: Slackware64 14.0
Posts: 981

Rep: Reputation: 88
Quote:
Originally Posted by Alien_Hominid View Post
He probably meant to 12.2
Yup..........
 
  


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
New src2pkg release available for download -Introducing the src2pkg WIKI gnashley Slackware 11 05-06-2008 12:09 PM
src2pkg + qt 4.3.3 dive Slackware 9 01-24-2008 03:12 AM
src2pkg-1.7 released gnashley Slackware 23 12-25-2007 03:26 AM
src2pkg for nagios agentc0re Slackware 3 11-28-2007 02:54 PM
src2pkg-1.6 released gnashley Slackware 32 11-17-2007 04:03 PM


All times are GMT -5. The time now is 08:21 AM.

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