LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 06-23-2010, 10:13 AM   #1
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Rep: Reputation: 30
clfs and pkgtools


Hello,

Is there a good tutorial to make pkgtools from slackware work with clfs 1.1.0 ?

Roelof
 
Old 06-23-2010, 03:24 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
'pkgtools' will work in "any" Linux OS.

tar xvf pkgtools-13.0-noarch-3.tgz
.. to get the file "installpkg".

su
./installpkg pkgtools-13.0-noarch-3.tgz

Now 'pkgtools' will work the same way as in Slackware.
..
 
Old 06-23-2010, 03:29 PM   #3
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke

Can I use this also with CLFS build (Building the base system) . I have then .tar.gz files instead of .tgz files.
 
Old 06-23-2010, 03:40 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
'pkgtools' is not a tool, you can use to build a package
from source, if that is, what you mean by the question ?

There are other applications for that, e.g. checkinstall.

,,
 
Old 06-23-2010, 03:46 PM   #5
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Yes,

That's what I mean.
So first checkinstall and after that i can use the slackware tools.

Roelof
 
Old 06-24-2010, 03:56 PM   #6
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 charlie_lab View Post
Yes,

That's what I mean.
So first checkinstall and after that i can use the slackware tools.

Roelof
Take a look at src2pkg. It's a command line tool for making GNU/Linux packages in a variety of formats. It's "native" mode is to make Slackware packages that can be installed with pkgtool's installpkg command.

Checkinstall is good, but it had some troubles a few years back with (if I recall correctly) an incompatibility with coreutils. src2pkg comes with trackinstall, a good replacement for checkinstall.

There's a lot of very good information on src2pkg in its FAQ.

Regards,
 
1 members found this post helpful.
Old 06-24-2010, 05:24 PM   #7
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

that can be a good one.
But one question:

If I want to use patches , I have to untar it, do the patching and tar it again ?

Roelof
 
Old 06-24-2010, 05:52 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
' src2pkg ' will use patches present in the same
directory as the source tar ball :

file.patch, file.diff.gz, file.diff etc. etc.

..
 
1 members found this post helpful.
Old 06-24-2010, 06:04 PM   #9
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

So I have to copy every source file to a different directory with the patches and then give src2pkg the comamand to make a slackware package and it will be allright.

Roelof
 
Old 06-24-2010, 10:42 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
Well, you will also have a separate directory when you do
# 'sh <name>.Slackbuild' or # makepkg <name>.tgz
.. So that is just 'business as usual'.

The basic command is # src2pkg <source>.tar.***
Please read 'man src2pkg'
http://www.src2pkg.net/introduction

..
 
Old 06-25-2010, 03:30 AM   #11
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

I will read that good and hope I can find a solution for the sed commands that are needed.

Roelof
 
Old 06-25-2010, 07:56 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
There should be something about 'sed' in the technical section

http://www.src2pkg.net/technical


..
 
Old 06-25-2010, 10:30 AM   #13
charlie_lab
Member
 
Registered: Nov 2006
Posts: 255

Original Poster
Rep: Reputation: 30
Oke,

Then now find out how I can install the kernel headers.

Roelof
 
Old 06-25-2010, 10:46 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,502

Rep: Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639Reputation: 3639
In Slackware, it seems 'kernel-headers' is a hand made package.
Probably using 'makepkg'. ( All other packages have a Slackbuild script.)
ftp://ftp.slackware.org.uk/slackware...ernel-headers/

An example of a Slackbuild script
http://ftp.slackware.pl/pub/armedsla...ers.SlackBuild
( I have no idea if it is usable.)
.....

Last edited by knudfl; 06-25-2010 at 10:59 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Why pkgtools still using tar-1.13 tank728 Slackware 68 09-14-2016 01:36 PM
chown clfs:clfs mishap Louis_Carole Linux From Scratch 4 03-21-2007 08:40 PM
Slack 10.2 pkgtools in 10.0 linuxhippy Slackware 3 01-17-2006 10:54 AM
pkgtools Nightmare HELP!!!!!!!!!! waterox Slackware 4 09-12-2005 01:46 PM
pkgtools problem??? brbrow Slackware 2 09-10-2003 02:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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