LinuxQuestions.org
Visit Jeremy's Blog.
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 03-03-2014, 06:56 AM   #1
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
Slackware Dependencies and my old blog post


As of today my employer closed down their free social network and blogging site, a.k.a. "My Opera" and hence my old blog is gone.

I mention this because from time to time a few people here (e.g. Didier Spaier, GazL, TobiSGD, etc.) referenced a post I once made about Slackware and dependencies.

Anyway, for those interested, just before "My Opera" shutdown I submitted all my old blog posts to The Internet Archive for prosperity (and yes I made a donation!). Which means if you want to reference the post in the future you can use the following URL:

web.archive.org/web/20140303100105/http://my.opera.com/ruario/blog/2011/09/26/slackware-package-and-dependency-management

Sorry if this post feels like shameless self promotion but others have referenced the post in the past and I assume they might want to again.
 
Old 03-03-2014, 07:33 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Blog Entries: 61

Rep: Reputation: Disabled
Thanks, Ruari. It's a good article.
 
Old 03-03-2014, 07:42 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
If you don't mind Ruario, I have made a copy here because it complements the Slackware documentation nicely: http://docs.slackware.com/slackware:..._off_slackware

What do you want me to do with the comments on that blog? Just mention them on the Wiki page or copy/paste them to the "talk" section?

Eric
 
5 members found this post helpful.
Old 03-03-2014, 07:47 AM   #4
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
@AlienBob: I certainly do not mind at all. In fact thanks!

With regards to any of my comments I am more than happy for you to use them any way you see fit, so please feel free to do whatever you feel makes most sense.
 
Old 03-03-2014, 07:53 AM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,570

Rep: Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845Reputation: 2845
+1 for having that very worthy article at the Slackware Documentation Project.
 
Old 03-03-2014, 02:08 PM   #6
perbh
Member
 
Registered: May 2008
Location: Republic of Texas
Posts: 393

Rep: Reputation: 81
I wish R's article could be put up at the top - permanently.
I had read it before, but revisited it - 'ts a great article! Kudos!
 
1 members found this post helpful.
Old 03-03-2014, 11:31 PM   #7
Xsane
Member
 
Registered: Jan 2014
Posts: 186

Rep: Reputation: 134Reputation: 134
Quote:
Originally Posted by Alien Bob View Post
... Slackware documentation nicely: http://docs.slackware.com/slackware:..._off_slackware ...
Quote:
Finally, create a compressed tar archive with version 1.13 style directory formatting, either by using GNU tar-1.13 directly (it is installed on Slackware) or by forcing modern GNU tar to emulate this style of formatting by using a transform: “tar caf /tmp/some-application-1.0-x86_64-1.tgz . –xform='s,^\./\(.\),\1,' ”
Or just use the --format=gnu tar option? Why doesn't Pat use that instead of a separate package?
 
Old 03-04-2014, 12:54 AM   #8
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,860

Rep: Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230Reputation: 2230
Quote:
Originally Posted by Xsane View Post
Or just use the --format=gnu tar option? Why doesn't Pat use that instead of a separate package?
If I remember correctly: Once Upon A Time, that didn't work.
 
Old 03-04-2014, 02:10 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
It still doesn't, --format=gnu is irrelevant. Creation with tar 1.13 is all about how sub directory names are stored when adding a directory as '.'

Consider the following examples:

Code:
$ tar-1.13 cvf /tmp/test-1.13.tar .
./
testdir/
testdir/somefile
Code:
$ tar-1.26 cvf /tmp/test-1.26.tar .
./
./testdir/
./testdir/somefile
Code:
$ tar-1.26 cvf /tmp/test-1.26.tar . --xform='s,^\./\(.\),\1,' --show-stored-names
./
testdir/
testdir/somefile
GNU Tar 1.13 (or with my transform) store the subdirectory as testdir/, while GNU Tar 1.14 and above store it as ./testdir/. Pkgtools expects the former, not the later.

If you want to find out more about why GNU Tar 1.13 is used (this is not the only reason), read this thread.

Last edited by ruario; 03-04-2014 at 02:34 AM. Reason: clarified the last sentence
 
Old 03-04-2014, 02:26 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
By the way, this is why I said in my post that people should really use just use pkgtools (makepkg) for creation. Slackware packages are just tar files so it is possible to do stuff without makepkg but not everyone understands these little intricacies.

I must admit that sometimes in my own scripts I don't use makepkg but I got into this habit because I used to have a script that automatically made Slackware packages of Opera internal builds on a non-Slackware (Debian) machine. This would allow me to instantly fetch the latest internal build from my work desktop or home machine without having to do a local repack. Of course the first time I tried to do this I made a broken package (and the second time) but after that I did some investigation and realised what I had to do. Now I have a few public scripts (e.g. latest-chrome) that also do this as it allows me to make use of tar's --user and --owner options to make packages that have root owned files, even when run as a normal user.

Last edited by ruario; 03-04-2014 at 02:34 AM. Reason: added a comma
 
Old 03-10-2014, 05:33 PM   #11
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
I was thinking about translating this article and posting it under www.vivaolinux.com.br, a brazilian linux community. Since I didn't find any info on your blog I have to ask: would you mind if I do it?
 
Old 03-11-2014, 01:43 AM   #12
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
Quote:
Originally Posted by moisespedro View Post
I was thinking about translating this article and posting it under www.vivaolinux.com.br, a brazilian linux community. Since I didn't find any info on your blog I have to ask: would you mind if I do it?
Why don't you just translate the Slackware Wiki page and tell your friends about it?

http://docs.slackware.com/start?id=p..._off_slackware would be that page.

Eric
 
Old 03-11-2014, 02:38 PM   #13
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 2,559

Original Poster
Rep: Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773Reputation: 1773
No I don't mind, in fact If you want me to state license I guess I would go with CC Attribution-Share Alike 3.0 Unported. It seems like a reasonable license to me and the Slackware Wiki uses it as its default.

P.S. I would also prefer you went with AlienBob's suggestion and did your translation on the Slackware wiki itself.
 
Old 03-11-2014, 04:58 PM   #14
moisespedro
Senior Member
 
Registered: Nov 2013
Location: Brazil
Distribution: Slackware
Posts: 1,223

Rep: Reputation: 195Reputation: 195
If I ever do the translation (it is a huge post and my english isn't that good) I will post on both
 
  


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
[SOLVED] Where to LFS post or BLOG DavidLee1A Linux From Scratch 5 12-24-2012 05:57 PM
Any suggestions for my blog? [post your blog address here] silvyus_06 General 7 04-19-2011 07:44 AM
How do you make a blog post here? Gvvg561 Linux - Newbie 6 01-27-2010 08:26 AM
Blog this post ... syg00 Linux - General 1 02-04-2009 06:49 AM

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

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