LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-16-2008, 01:24 AM   #46
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

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

dive, the -W option does that. The most hopeful and ambitious example:'src2pkg -A -I -W sometarball' to automatically do as much as possible, install the resulting package and clean up the temp files.

For your gnome stuff have a look here:
http://distro.ibiblio.org/pub/linux/...E-COMPAT-2.10/

You need all the stuff through group 3 for gneumeric (plus libgsf? or something like that). See the HOWTO for the build order or just download the packages if you want. You can also see the examples which are installed with src2pkg for an example GroupBuild script which will help you automate the build if you decide to do it that way.
 
Old 01-16-2008, 02:44 AM   #47
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Ah thanks very much. Didn't see the -W switch. Will have another go at gnumeric then
 
Old 01-16-2008, 06:34 PM   #48
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
dive, that -W options cleans everything up good. gnashley, I used that script of yours yesterday and its awsome stuff, I am not sure but since I was doing it from inside Xfce it seemed to hang on 'make' or the process is tremendously long because the size of scribus and I had no idea how long it was suppose to take. .tar.bz2 downloaded into /build where I had put the script. Later I did use src2pkg to build .tgz pkg and that took forever to compile too, I think scribus is bigger than slackware12 pkg. I already have Ooffice and gimp. lol So I am having second thoughts about installing scribus,until have a clearer concept of how I want to use Slackware12. My priority is web server, I have an Xp and mac so I installed all the graphic programs on XP since it has newest hardware. As I work on setting up my power book, I see it is more like Slackware, looks like some unix branch off probably accounting for greater stability over MS. hmmm
I would like to shh into Slack and Xp with it. LOLOL Can I adopt your script to OS X? Will I ever get my web pages up? LOL Know this is way off topic but its fun! Thanks
 
Old 01-16-2008, 11:00 PM   #49
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
dive, look at lufbery's post 42

Last edited by NightSky; 01-16-2008 at 11:03 PM.
 
Old 01-17-2008, 12:28 AM   #50
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Use putty from XP to access Linux box.
 
Old 01-17-2008, 04:30 AM   #51
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&14.1
Posts: 119

Rep: Reputation: 15
Hi,
What is the position at the moment with src2pkg regarding
tool chain building from source code?

Has anyone tried?
How should I even begin?
Should I even try?

The background to this is that when src2pkg version 1.0.0 came
I tried but it proved more challenging than I was anticipating.

Only after a great deal of help from gnashley and others on this
forum was I able to make the first few packages of a tool chain.

However it proved that I could install these on other computers
with only a minimal Slackware installation and use them to build
the rest of the chain.

There are plenty of examples around on internet of how to build
tool chains from source code.

John
 
Old 01-17-2008, 06:59 AM   #52
piete
Member
 
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
Do you want 1 toolchain package, or a cross chain, or something else? Most of my work has been with cross (and canadian-cross) toolchains, so I'm afraid I'm not in a great position to advise, however that said:

Building a toolchain shouldn't be any more difficult than anything else (except for the long ./configure and maybe installing it using -REAL not -JAIL or -DESTDIR) ...

src2pkg typically has a 1 to 1 relationship with tarball to package, but clearly a toolchain is made of multiple programs/tarballs. Gilbert has a src2pkg script for gcc here, if all you need is a variety of compiler versions:
http://distro.ibiblio.org/pub/linux/....6/gcc.src2pkg

There's no reason you couldn't script a chain build - binutils, gcc stage 1, glibc, gcc stage 2 - with src2pkg, other than the fact you'll end up with one package for each app.

For cross work, I'd suggest installing everything to /opt/mycrosschain ( --prefix=... ) and then tarring the result up for transportation. Investigate the original makepkg to build a package out of /opt/mycrosschain. For native work you can use the same approach, and add in some /etc/profile.d/mycrosschain.sh script to make sure the chain is in everyone's PATH at the start.

You can use the same approach for the cross chains, too, but I think it might be better to deal with them in makefiles.

Erm, so, in closing ... "Can't see why not." but "Don't really understand what you want."

Keep us informed! =)
- Piete.

Edit: As I wrote that, it occurred to me that we've done this before ... so I dug out the original thread and had a read through. What struck me was that you were attempting to use src2pkg from the commandline, explicitly passing the arguments you need. I suspect you need to look at using the scripting facilities of src2pkg and adding some environment variables like CC into it. I can foresee problems with variable scoping under bash if you attempt something like:

CC=gcc-avr
src2pkg ...

The following is an example of what I mean:

Code:
psartain@pes0:~$ echo $ARCH

psartain@pes0:~$ ARCH=x86_64
psartain@pes0:~$ echo $ARCH
x86_64
psartain@pes0:~$ cat testarch.sh 
#!/bin/bash

echo $ARCH
psartain@pes0:~$ sh testarch.sh 

psartain@pes0:~$ export ARCH
psartain@pes0:~$ sh testarch.sh 
x86_64

Last edited by piete; 01-17-2008 at 08:26 AM.
 
Old 01-17-2008, 07:47 AM   #53
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by Alien_Hominid View Post
Use putty from XP to access Linux box.
Or install Cygwin and use SSH. Cygwin is pretty cool because it's a complete, Linux-like environment that runs in Windows. You can compile and install a whole bunch of Linux software and have it run natively in your Windows installation.

http://www.cygwin.com/

Installation is a breeze too. I used both Putty and SSH in Cygwin and had better results from Cygwin. I could also run X-windows programs from my Linux computer remotely on the Windows computer using Cywing's X-windows environment.

Now back to your regularly scheduled src2pgk discussion.

Regards,

-Drew
 
Old 01-18-2008, 06:51 AM   #54
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&14.1
Posts: 119

Rep: Reputation: 15
I prefer a separate package for every member of the chain.
Mainly because some members are updated more often than others.

Going back to Gilberts posts "The Magic Package Maker comes of age"
and "src2pkg-1.6 released" gives the background.

You will also see that another member tuxdev recommended that I take
a look at clfs. I took that advice and even went as far as doing a
build but so far only the embedded so not a Slackware alternative at the
moment. Many thanks tuxdev if you ever read this.

At first I used command line but when 1.6 came I tried a script and to
edit it to use the cross-compiler without success.

I have not yet installed 1.9.2 just wondering if the time has come to
try again.

Although my main interest is avr there are similar procedures for say
mips and arm.

Since source code builds are well documented. There are instructions in
the tarball. Is there any way that I can use src2pkg to track a source code
installation on Slackware and get at least a script or even a pkg ?

John
 
Old 01-23-2008, 02:18 PM   #55
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I have come across a problem with xscreensaver: http://www.linuxquestions.org/questi...nsaver-615543/
 
Old 01-23-2008, 04:13 PM   #56
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Can I confirm the functionality of a couple of switch combinations please? If I use -DEST or -JAIL the package isn't installed unless I use the -I switch as well. But if I use -REAL the package is installed regardless of whether I use -I. The behaviour I see with the following command line is that the package is created and installed:
Code:
src2pkg -A -C -VV -REAL -W -a=i686 \
-e='--prefix=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-mysql' \
php-5.2.5.tar.bz2
It's no big deal since I build on a test box anyway. I'm still learning how to use src2pkg so I just want to make sure I understand what I've done so far.
 
Old 01-23-2008, 04:39 PM   #57
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
src2pkg should never permanently install an application. -REAL does install the app on the system, then rolls back the system. The rollback can fail, but that's rare and means the install scripts are doing funny things. If that's the case, then you need to manually install the application into $PKG_DIR. You may have to write a doinst.sh as well.
 
Old 01-23-2008, 06:43 PM   #58
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Quote:
Originally Posted by tuxdev View Post
src2pkg should never permanently install an application. -REAL does install the app on the system, then rolls back the system. The rollback can fail, but that's rare and means the install scripts are doing funny things. If that's the case, then you need to manually install the application into $PKG_DIR. You may have to write a doinst.sh as well.
That's not what I'm seeing here. I just uninstalled the php-5.2.5-i686-1.tgz package I created with that command. I also made sure that the installed files were actually deleted, the entry in /var/log/packages was deleted, Apache was stopped (for the module) and the previous /tmp/php* directories were gone.

After running src2pkg the package was successfully created, the temporary files under /tmp/php* were deleted and no entry has been created under /var/log/packages. However, the files are installed (under /usr/local/lib/php, etc.). Also, this time, the list of files in /var/log/packages/php-5.2.5-i686-1 has the first 2 characters missing for each line. For example r/local/man/man1/php.1 instead of usr/local/man/man1/php.1.

Checking my bash history, the command I actually ran was:
Code:
src2pkg -A -C -VV -REAL -W -a=i686 -p='/usr/local' \
-e='--prefix=/usr/local --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl --with-mysql' \
php-5.2.5.tar.bz2
Since my other packages work properly, I'm pretty sure that the problem is with something I'm doing - I just haven't figured it out yet.
 
Old 01-23-2008, 06:54 PM   #59
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
I encountered that corrupt package DB bug a little while back in 1.9.2. Make sure you are running the most current version (1.9.3-2). The corrupt file means that uninstalling will not actually delete any files (you can see that by reading the output of removepkg).

Last edited by tuxdev; 01-23-2008 at 06:55 PM.
 
Old 01-23-2008, 10:45 PM   #60
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Thanks for that - I've upgraded from 1.9.2-2 to 1.9.3-2 and the DB problem has gone away.
 
  


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
Next release? polarbear20000 Slackware 24 06-05-2007 03:19 PM
FC5 development release and FC5 official release- where is the DVD iso? smiley_lauf Fedora 11 03-13-2006 01:38 PM
SUSE Release 10 RC1 Release Candidate 1 available 1kyle SUSE / openSUSE 8 09-11-2005 06:26 PM
Release IP gordongraham Linux - Networking 4 06-23-2005 02:57 PM
Next release? vi0lat0r Slackware 14 04-06-2004 05:28 PM

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

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