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 01-08-2010, 12:50 AM   #16
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612

First, try it using the src2pkg command instead of trackinstall:
src2pkg glib-2.22.0.tar.??
I suspect you may need to use:
src2pkg -DEST glib-2.22.0.tar.??
With the new src2pkg-2.0, the default INSTALL_TYPE has been made JAIL, but it fails with some packages. Anytime you have a failure such as this, it is worth trying one of the alternate content-creation methods. There are five in total:
JAIL, DEST(or DESTDIR), UNION, SAFE and REAL
 
Old 01-08-2010, 01:00 AM   #17
wootletootle
Member
 
Registered: Jul 2002
Location: New Zealand
Distribution: slackware
Posts: 81

Rep: Reputation: 15
Thanks for your suggestions. I didn't expect your response to be that quick, and I duplicated my post, please ignore.

Are you saying that src2pkg can take over the entire configuration
and compilation of just about any installed program? What if I need
to pass flags to <configure> or <make>?

.................................................................
EDIT: Wow, it worked, I'm impressed The first time round I tried

src2pkg glib-2.22.0.tar.gz

and got the same installation error as before. But

src2pkg -DEST glib-2.22.0.tar.gz

worked perfectly through all the stages (configuration, make,
make install) and created the Slackpack ready for use with
installpkg.

Thankyou very much gnashley

.................................................................
SECOND EDIT:

-DEST doesn't seem to work as a flag to trackinstall?
Can that be fixed?

Last edited by wootletootle; 01-08-2010 at 01:31 AM.
 
Old 01-08-2010, 05:33 AM   #18
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
I'll look into the problem with DEST using trackinstall.
Yes, you can use src2pkg for the whole build. It will nearly always be more dependable because it gets tested more. There are a very few cases where trackinstall may give better results. Run 'src2pkg --help' to see the main options or look at the man-page. Passing options to configure is the most commonly-needed feature -you simply use, for example:
src2pkg -e='--disable cruft --enable-goodies' tarball-name
But, if you are using extra options, it really is a good idea to create a src2pkg script so you have a record of what you did. In such a case, you can do this:
src2pkg -e='--disable cruft --enable-goodies' -N tarball-name
The '-N' tells src2pkg to create the script for you. Then, you can run the script by simply using:
src2pkg -X
Note that you can still add other (Captial-lettered) options when using the '-X', option:
src2pkg -X -C -W -DEST
(Run the first script you find, place the final package in the Current directory, cleanup (Wipe up) temporary files when finished, use DESTDIR-type installation for creation of content)
This is handy because it lets you use 'hard copy' options which are essential to the package (configure options, make command, etc), while still having use of a range of transient options for user-oriented beahviours -and keeping the command-line shorter.
Thanks for the tip on -DEST and trackinstall.
 
Old 01-08-2010, 09:01 AM   #19
veeall
Member
 
Registered: May 2007
Location: Estonia
Distribution: Slackware64-current
Posts: 298

Rep: Reputation: 56
I just upgraded to src2pkg-2.0-noarch-16.tgz after grabing latest updates from slackware64-current. While running 'src2pkg --setup' created and installed helpers successfully, during compiling it complained about 'Creating libsentry - Ooops! Can't live without it...'. Afterwards running 'src2pkg package.tar.gz' still gave this notice:
Code:
NOTICE! src2pkg has not been setup yet or needs updating.
   In order to use src2pkg you must first login as root and run
   src2pkg with the command: 'src2pkg --setup'
Is 'libsentry' a missing dependency?
 
Old 01-08-2010, 09:53 AM   #20
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
libsentry (as well as a few other things) is distributed with src2pkg as source and is built by src2pkg --setup
 
Old 01-08-2010, 10:06 AM   #21
zhoun
Member
 
Registered: Oct 2007
Location: anywhere
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104

Rep: Reputation: 18
confirmed this!
When use src2pkg with root, it always compile src2pkg-helpers first...
again and again.

I am using slackware current.
during compiling it complained about 'Creating libsentry - Ooops! Can't live without it...'

It's ok under slackware 12.2.
just print 'Creating libsentry - Ok'


Quote:
Originally Posted by veeall View Post
I just upgraded to src2pkg-2.0-noarch-16.tgz after grabing latest updates from slackware64-current. While running 'src2pkg --setup' created and installed helpers successfully, during compiling it complained about 'Creating libsentry - Ooops! Can't live without it...'. Afterwards running 'src2pkg package.tar.gz' still gave this notice:
Code:
NOTICE! src2pkg has not been setup yet or needs updating.
   In order to use src2pkg you must first login as root and run
   src2pkg with the command: 'src2pkg --setup'
Is 'libsentry' a missing dependency?

Last edited by zhoun; 01-08-2010 at 10:13 AM.
 
Old 01-08-2010, 11:03 AM   #22
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Yeah, libsentry is a must-have. Current just switched to glibc-2.11.1 the other day and I'm pretty sure this is what is keeping libsentzry/src2pkg-helpers from building.
veall and zhoun, can you both send me an email so I can send you a newer copy of src2pkg-helpers or the full pre-release src2pkg so you can see if it now builds?
I've been planning on releasing again real soon -this just makes it more pressing...
 
Old 01-08-2010, 01:05 PM   #23
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,098

Rep: Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175Reputation: 4175
this is the error
Code:
src2pkg-helpers-0.7/libsentry-0.6.7.8$ make
./create-defines
Checking truncate argument type... off_t
Checking libc version... libc.so.6
Checking glibc subversion... cc -Wall -U_FORTIFY_SOURCE -D_GNU_SOURCE -DLIBDIR=\"/usr/local/lib\" -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.6.7.8\" -c libsentry.c
libsentry.c: In function 'fopen':
libsentry.c:2529: warning: cast from pointer to integer of different size
libsentry.c:2544: warning: cast from pointer to integer of different size
libsentry.c: At top level:
libsentry.c:3049: error: conflicting types for 'scandir'
/usr/include/dirent.h:252: note: previous declaration of 'scandir' was here
libsentry.c: In function 'fopen64':
libsentry.c:3605: warning: cast from pointer to integer of different size
libsentry.c: At top level:
libsentry.c:3698: error: conflicting types for 'scandir64'
/usr/include/dirent.h:275: note: previous declaration of 'scandir64' was here
make: *** [libsentry.o] Error 1
 
Old 01-08-2010, 01:11 PM   #24
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Yeah, I think I've fixed that already as I ran into it the other day. I rolled in some fixes for glibc>=2.10 that adress that and some 64-bit issues.

Anyone running slackware64-current who can test these fixes?
 
Old 01-08-2010, 02:00 PM   #25
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I just installed src2pkg and ran src2pkg --setup with no problems on x64-current.
 
Old 01-08-2010, 02:04 PM   #26
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Oh really? So maybe it is working on 64-bit, but not on 32 -sounds backwards...
 
Old 01-08-2010, 02:14 PM   #27
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I should have added that I am running the multilib version. That may be important.
 
Old 01-08-2010, 02:16 PM   #28
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,683

Rep: Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375Reputation: 1375
Quote:
Originally Posted by veeall View Post
I just upgraded to src2pkg-2.0-noarch-16.tgz after grabing latest updates from slackware64-current. While running 'src2pkg --setup' created and installed helpers successfully, during compiling it complained about 'Creating libsentry - Ooops! Can't live without it...'. Afterwards running 'src2pkg package.tar.gz' still gave this notice:
Code:
NOTICE! src2pkg has not been setup yet or needs updating.
   In order to use src2pkg you must first login as root and run
   src2pkg with the command: 'src2pkg --setup'
Is 'libsentry' a missing dependency?
I can also confirm this on current 32bit
 
Old 01-08-2010, 02:24 PM   #29
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
No, its not working. Only the install and setup ran ok. Running src2pkg on a tarball still gives notice that helpers needs updating and it seems to rebuild libsentry and coreutils. Then it goes on with the build.
 
Old 01-08-2010, 02:56 PM   #30
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Original Poster
Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
Okay, sorry it is late here in Germany so I must work on this tomorrow with a fresh start... Thanks to all for the feedback.
 
  


Reply

Tags
hplip, src2pkg



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
src2pkg bug-fix version gnashley Slackware 7 03-19-2008 06:22 PM
Bug Fix Ctp. Obvious Linux - Newbie 5 08-02-2004 06:58 AM
Bug fix update for 10.0 akihandyman Mandriva 3 07-14-2004 04:13 PM
Mandrake 9.2 Memory bug Fix lex0429 Mandriva 1 09-26-2003 06:44 PM
bug in RPM, but how to fix? bearcatsandor Linux - Software 2 12-06-2001 06:34 PM

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

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