LinuxQuestions.org
Help answer threads with 0 replies.
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 01-05-2009, 06:35 PM   #1
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Rep: Reputation: 62
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, 06:43 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231
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 06:44 PM. Reason: fixed typo
 
Old 01-05-2009, 07: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: 232Reputation: 232Reputation: 232
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, 02:46 AM   #4
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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, 12:21 PM   #5
macondo
Senior Member
 
Registered: Jul 2003
Location: Central America
Distribution: Slackwre64-current Devuan
Posts: 1,034

Original Poster
Rep: Reputation: 62
Thank you all
 
Old 01-06-2009, 12:36 PM   #6
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

Rep: Reputation: 174Reputation: 174
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, 01:22 PM   #7
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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, 03: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, 04:02 PM   #9
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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, 10:17 PM   #10
MannyNix
Member
 
Registered: Dec 2005
Location: ~
Distribution: Slackware -current
Posts: 465

Rep: Reputation: 53
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, 10:23 PM   #11
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Slackware, Debian, OpenBSD
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
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, 12:20 AM   #12
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Pensacola, FL
Distribution: Slackware64® Current & Arch
Posts: 1,092

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


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

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

All times are GMT -5. The time now is 01:35 AM.

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