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 05-22-2010, 10:59 PM   #1
ewlabonte
Member
 
Registered: Mar 2005
Distribution: Debian Stretch
Posts: 127

Rep: Reputation: 15
Down and dirty slackware package.


Is there anything inherently bad about making a slackware package this way:

Download the source tarball.
tar zxvf tarball and cd to the source directory

./configure --prefix=HOME$/[packagename]
make
make install
cd HOME$/[packagename]
makepkg HOME$/[packagename].txz
Then
installpkg HOME$/[packagename].txz

I've done it a few times and haven't run int any problems yet.
 
Old 05-22-2010, 11:14 PM   #2
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
You can use "make install DESTDIR=HOME$/[packagename]" instead of "--prefix=HOME$/[packagename]"

That's fine if you're only building the packages for yourself.

If you want to share the packages, use something like

Slackware
Code:
CFLAGS="-O2 -march=i486 -mtune=i686" CXXFLAGS="$CFLAGS" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --build=i486-slackware-linux
Slackware64
Code:
CFLAGS="-O2 -fPIC" CXXFLAGS="$CFLAGS" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --build=x86_64-slackware-linux

Last edited by piratesmack; 05-22-2010 at 11:25 PM.
 
Old 05-22-2010, 11:22 PM   #3
ewlabonte
Member
 
Registered: Mar 2005
Distribution: Debian Stretch
Posts: 127

Original Poster
Rep: Reputation: 15
Cool thanks. Sometimes that's easier than looking around for a Slackbuild script for the package in question.
 
Old 05-22-2010, 11:30 PM   #4
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
You might want to check out src2pkg

Makes building packages from source fast and easy

Last edited by piratesmack; 05-23-2010 at 12:00 AM.
 
Old 05-23-2010, 12:56 AM   #5
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
If your package contains any shared libraries then they will not be found unless you add $PREFIX/lib to your library path (LD_LIBRARY_PATH).

Personally, I would recommend sticking with a PREFIX of /usr or /usr/local unless you have a special need of unprivileged users to install applications in their HOME directory.
 
Old 05-23-2010, 02:16 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
And what about when DESTDIR is not supported by the sources? I'd say use src2pkg for a down (and not dirty) package -of course I would say that...
 
  


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



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

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