LinuxQuestions.org
Visit Jeremy's Blog.
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-21-2017, 07:26 AM   #1
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
slack package scripts: tar version and symlink handling


It has been a while since I ran Slackware. When I did, makepkg, installpkg, etc., all required a certain version of tar. I was wondering if that is still the case?

Secondly, I remember that the package management tools would save symlinks in an unexpected way: they'd would be re-created via a script during the install of a package. Some testing on my part has revealed that tar actually handles symlinks correctly. In view of that datum, is there still need of a doinst script merely to handle symlinks?

Apologies if this was changed before current version of Slackware. As I said in the beginning, it has been a while since I last ran it.

Thank you.

p.s. I would hate to download a whole iso just to look at three or four scripts; would be a waste of bandwidth. That is why I have asked this here.
 
Old 01-21-2017, 07:54 AM   #2
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
You don't need to download an iso. http://slackware.uk/slackware/slackw...tools/scripts/

There are plenty of threads in this forum if you search for 'tar-1.13'. Use of tar-1.13 by pkgtools is no longer necessary since --keep-directory-symlink was re-added to Gnu tar, but it is sufficient, and why change something critically important for forward and backward compatibility that is, within the limits of pkgtools, not broken?

Last edited by 55020; 01-21-2017 at 07:55 AM. Reason: typos, typos, always typos
 
1 members found this post helpful.
Old 01-21-2017, 01:12 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,503

Rep: Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459Reputation: 8459
Quote:
Originally Posted by jr_bob_dobbs View Post
Some testing on my part has revealed that tar actually handles symlinks correctly. In view of that datum, is there still need of a doinst script merely to handle symlinks?
Yes, there is. Let's say that you have a package containing a directory called /foo. Now let's assume that an updated version of the package changes /foo from a directory to a symlink. Also consider if this happens the other way around.

Run a few tests on this scenario and see if the latest tar handles the situation as expected.
 
2 members found this post helpful.
  


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
tar follow symlink on extract McZ Linux - Newbie 1 08-30-2012 05:06 AM
Package to choose(rpm/deb/tar) for Slack Megalite Slackware 7 12-26-2009 08:18 AM
upgrade package to non-slack version moob8 Slackware 1 09-25-2006 10:37 PM
handling multiple files in shell scripts. wilsonsamm Linux - General 7 07-05-2006 06:36 PM
How many necessory minimum package for install all Slack version fle Slackware - Installation 3 02-27-2006 10:59 PM

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

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