SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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'
Distribution: slackware64 current & win7 64 on thinkpad X61
Posts: 104
Rep:
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
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'
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...
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
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'
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.