slack package scripts: tar version and symlink handling
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.