LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-11-2017, 03:40 AM   #1
GazL
Senior Member
 
Registered: May 2008
Posts: 4,437
Blog Entries: 7

Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
Current: perllocal.pod clean up?


Code:
d/perl-5.26.1-x86_64-3.txz: Rebuilt.
       Don't install a perllocal.pod with information on the vendor_perl bundled
       modules (that file is for local additions) -- ship the file as
       vendor_perl.pod instead. Thanks to Robby Workman.
I've not used cpan or added any perl modules manually. What's the correct thing to do with the remnant perlocal.pod left behind from previous package installs: remove it?
 
Old 10-11-2017, 03:50 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,837

Rep: Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892
Quote:
Originally Posted by GazL View Post
Code:
d/perl-5.26.1-x86_64-3.txz: Rebuilt.
       Don't install a perllocal.pod with information on the vendor_perl bundled
       modules (that file is for local additions) -- ship the file as
       vendor_perl.pod instead. Thanks to Robby Workman.
I've not used cpan or added any perl modules manually. What's the correct thing to do with the remnant perlocal.pod left behind from previous package installs: remove it?
in this case I think zeroing it should be ok, here I have done that
Code:
> /usr/lib64/perl5/perllocal.pod

Last edited by ponce; 10-11-2017 at 03:54 AM.
 
1 members found this post helpful.
Old 10-11-2017, 06:44 AM   #3
GazL
Senior Member
 
Registered: May 2008
Posts: 4,437
Blog Entries: 7

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
Thanks Matteo, I think I'll just try removing it. If something complains I can always create an empty one later.
 
Old 10-11-2017, 08:55 AM   #4
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 284

Rep: Reputation: 265Reputation: 265Reputation: 265
POD is Perl's native documentation format, so POD files are just for documentation purposes. When you install a Perl module that makes use of ExtUtils::MakeMaker, the generated makefile appends to perllocal.pod when you run "make install" to create a record of which modules you installed and when; if you use a command-line tool to install modules from CPAN, this has probably happened without you realising it. Removing perllocal.pod has no bearing on the correct operation of any Perl programs or modules.
 
3 members found this post helpful.
Old 10-11-2017, 01:35 PM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 4,437
Blog Entries: 7

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
So basically, if you never do a 'perldoc perllocal' it doesn't matter? Does anything else use the files contents?
 
Old 10-12-2017, 08:29 AM   #6
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 284

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by GazL View Post
So basically, if you never do a 'perldoc perllocal' it doesn't matter? Does anything else use the files contents?
That's right: if you track which non-core Perl modules you've installed another way (e.g. by building Slackware packages and installing them via pkgtools, which is better for all sorts of reasons), there's really no need for perllocal.pod at all.

Of course, there are some Perl modules that have such huge dependency trees that it's not practical to create Slackware packages for all of them. In that case, local::lib comes in handy: after you've installed that module globally, you can use it to create a "private" PERL5LIB directory and arrange for cpan(1) and friends to install modules in that directory to avoid polluting your system-wide @INC directories. You can then tell Perl programs that need those modules to look for them in that directory. (If you know Python, it's kind of like virtualenv.)

local::lib would actually be a really useful addition to Slackware generally - I'll request it in the sticky thread.
 
3 members found this post helpful.
Old 10-12-2017, 09:27 AM   #7
GazL
Senior Member
 
Registered: May 2008
Posts: 4,437
Blog Entries: 7

Original Poster
Rep: Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890Reputation: 1890
Thank you. Much appreciated.
 
  


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] 6.37. Perl-5.16.2 make: *** [pod/perlintern.pod] Error 2 potterius Linux From Scratch 1 06-02-2013 12:01 AM
perl/git package handling of perllocal.pod file GazL Slackware 4 07-25-2012 03:18 PM
[SOLVED] Slackpkg blacklist ignored when using clean-system on current octoberblu3 Slackware 6 05-02-2010 09:45 PM
i pod wiped clean stumottram Linux - Newbie 5 01-23-2009 09:53 PM
appending to perllocal.pod via doinst.sh jong357 Slackware 1 10-31-2005 10:48 AM

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

All times are GMT -5. The time now is 01:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration