LinuxQuestions.org
Visit the LQ Articles and Editorials section
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-28-2012, 05:37 AM   #1
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
perl/git package handling of perllocal.pod file


I'm not really a perl person, so I don't know what this pod file is all about, but this looks a little peculiar to me.

gazl@slackbox:~$ grep perllocal.pod /var/log/packages/*
/var/log/packages/git-1.7.5.1-x86_64-1:usr/lib64/perl5/perllocal.pod
/var/log/packages/perl-5.14.0-x86_64-1:usr/lib64/perl5/perllocal.pod.new

Shouldn't the doinst.sh in the git package also be doing the ".new" dance? or is it intentionally overwriting the perllocal.pod file?
 
Old 03-28-2012, 07:35 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
I think while the perl's one ( /var/log/packages/perl-5.14.0-x86_64-1:usr/lib64/perl5/perllocal.pod.new ) should do the usual dance, the other ( /var/log/packages/git-1.7.5.1-x86_64-1:usr/lib64/perl5/perllocal.pod ) maybe should be deleted before makepkg'ing.

EDIT: As perllocal.pod contains data about the local perl modules installed also manually via CPAN ("perl -MCPAN -e shell"), and perl's slackware package adds some modules itself by default, it's right to overwrite it if you use only slackbuilds.org (the packages built from their scripts shouldn't touch it): doing this way you will lose the informations about your CPAN additions, so if you use this a lot or do a lot of manual installs from sources, preferring this way of installing modules to slackbuilds.org, should be best not to overwrite it.

slackbuilds'org rule is to delete the file in the added perl modules, as per perl's template.

Last edited by ponce; 03-29-2012 at 02:03 AM.
 
1 members found this post helpful.
Old 03-28-2012, 08:43 AM   #3
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Original Poster
Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Quote:
Originally Posted by ponce View Post
...the other ( /var/log/packages/git-1.7.5.1-x86_64-1:usr/lib64/perl5/perllocal.pod ) maybe should be deleted before makepkg'ing.
Yep, that was kinda what I expected to hear, but I wasn't sure what the file was for so I didn't want to suggest it. Thanks for the background info.
 
Old 07-25-2012, 02:40 PM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 214

Rep: Reputation: 64
Should the SlackBuild for git be removing this perllocal.pod file before the makepkg?
(or handling it as a .new?)

If I reinstall or upgrade git, it looks like my old perllocal.pod gets clobbered.

And shouldn't the .new file from the perl package be moved over the one from the git package
after installation? (which is what I did)
 
Old 07-25-2012, 03:18 PM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,447

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
slackbuild.org's perl template do like this
Code:
# Remove perllocal.pod and other special files that don't need to be installed,
# as they will overwrite what's already on the system.
find $PKG -name perllocal.pod -o -name ".packlist" -o -name "*.bs" | xargs rm -f || true
others use a different approach: first they append the perlocal.pod of the package to the system's one, then they do a cleanup.
 
  


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
LXer: Perl 5 completes move to Git LXer Syndicated Linux News 0 12-22-2008 03:40 PM
Perl File handling issue how to handle ucs 16 character set alix123 Programming 1 10-27-2008 06:51 AM
LXer: Fast Perl HTML Pod Creation On Linux And Unix LXer Syndicated Linux News 0 06-29-2008 04:11 AM
appending to perllocal.pod via doinst.sh jong357 Slackware 1 10-31-2005 10:48 AM
perl(Cwd) perl(File::Basename) perl(File::Copy) perl(strict)....What are those? Baldorg Linux - Software 1 11-09-2003 08:09 PM


All times are GMT -5. The time now is 10:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration