Re: ports/115885: misc/help2man: help2man ignores installed gettext perl mod; insists on stale p5-* dependency

2007-09-02 Thread [EMAIL PROTECTED]
* snowcrash+freebsd [2007-09-02 19:11]:
  It is not supported to mix FreeBSD ports collection perl modules
  with modules installed from CPAN.
 
  http://www.freebsd.org/cgi/query-pr.cgi?pr=115885
 
 I'm not mixing anything.  I have *NO* FreeBSD ports collection perl
 modules installed, at all.
 
 I *only* have CPAN modules installed.  gettext is installed on my
 system via CPAN.
 
 I am trying to get help2man to work with a CPAN-only installation.
 
 It does not.  *IT* is trying to mix a port-perl-module, not me.

You have perl modules installed, that have no corresponding installed
FreeBSD port. There once was a project called BSDPAN that AFAIK was
written to work around this problem, but i don't know what the status is
(CCing perl). 

regards tilman
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports/115885: misc/help2man: help2man ignores installed gettext perl mod; insists on stale p5-* dependency

2007-09-02 Thread snowcrash+freebsd
hi,

 You have perl modules installed, that have no corresponding installed
 FreeBSD port.

i do not use BSDPAN -- it's sloppy about its dependency mgmt.

as i do on every other os/platform, i use ONLY native cpan/cpanp.

i have dozens of cpan-installed perl-modules.  cpan/cpanp manage the
dependencies just fine.

the problem is in the case of 'help2man'.

the port-install of help2man *DOES* use the cpan-installed gettext
perl-module correctly,

 pkg_info | grep help2man
   help2man-1.36.4_1   Automatically generating simple manual pages from
 pkg_delete help2man-1.36.4_1
 portinstall help2man
   ---  Installing 'help2man-1.36.4_1' from a port (misc/help2man)
   ---  Building '/usr/ports/misc/help2man'
   ...
   ===   help2man-1.36.4_1 depends on file: /usr/local/bin/perl5.8.8 - found
   ===  Applying FreeBSD patches for help2man-1.36.4_1
   ===   help2man-1.36.4_1 depends on file:
/usr/local/lib/perl5/site_perl/5.8.8/mach/Locale/gettext.pm - found
   ...

*BUT*, in subsequent port updates/upgrades, it looks for the
p5-Locale-gettext* module.

looking in source,

cd /usr/ports/misc/help2man
grep p5-Locale-gettext *
 Makefile:BUILD_DEPENDS=
${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext
 Makefile:RUN_DEPENDS=
${SITE_PERL}/${PERL_ARCH}/Locale/gettext.pm:${PORTSDIR}/devel/p5-Locale-gettext

and verifying in my system,

 module_info Locale::gettext
  Name:Locale::gettext
  Version: 1.05
  Directory:   /usr/local/lib/perl5/site_perl/5.8.8/mach
  File:/usr/local/lib/perl5/site_perl/5.8.8/mach/Locale/gettext.pm
Core module: no

there's no legitimate reason why it should NOT be looking for the
*correctly installed* gettext dependency in site_perl path ...

but, the fact remains that it isn't.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports/115885: misc/help2man: help2man ignores installed gettext perl mod; insists on stale p5-* dependency

2007-09-02 Thread Mel
On Sunday 02 September 2007 20:12:03 snowcrash+freebsd wrote:
 hi,

  You have perl modules installed, that have no corresponding installed
  FreeBSD port.

 i do not use BSDPAN -- it's sloppy about its dependency mgmt.

 as i do on every other os/platform, i use ONLY native cpan/cpanp.

 i have dozens of cpan-installed perl-modules.  cpan/cpanp manage the
 dependencies just fine.

Except for apps in the ports, because cpan/cpanp can not register *port* 
dependencies.
RUN_DEPENDS does not mean check if this file exists, it means register a 
dependency on this port. What it does is:
1) check if the port is installed and if not install it.
2) add a line @pkgdep portname-version to $PKGDB/portname-version/+CONTENTS
3) add a line @DEPORIGIN:category/origin to $PKGDB/portname-version/+CONTENTS
4) add a line portname-version to $PKGDB/depname-version/+REQUIRED_BY

If you wanna get rid of this problem, you could use an AFTER_INSTALL hack in 
pkgtools.conf to undo 2)-4). Messy, but works.

Much cleaner is to just use the ports system p5-*. It does it's job very well 
and since you're familiar with cpan/cpanp I'm sure you'll have no problem 
installing modules that might not exist in the freebsd ports into a directory 
*outside* the ports hierarchy (/usr/local) and add this to the module search 
path.

-- 
Mel

People using reply to all on lists, must think I need 2 copies.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ports/115885: misc/help2man: help2man ignores installed gettext perl mod; insists on stale p5-* dependency

2007-09-02 Thread Anton Berezin
On Sun, Sep 02, 2007 at 11:12:03AM -0700, snowcrash+freebsd wrote:

 as i do on every other os/platform, i use ONLY native cpan/cpanp.
 
 i have dozens of cpan-installed perl-modules.  cpan/cpanp manage the
 dependencies just fine.

 the problem is in the case of 'help2man'.
 
 the port-install of help2man *DOES* use the cpan-installed gettext
 perl-module correctly,

 there's no legitimate reason why it should NOT be looking for the
 *correctly installed* gettext dependency in site_perl path ...
 
 but, the fact remains that it isn't.

Sorry, but I am afraid that if you insist on not using Perl modules
installed via ports this means you cannot expect any ports depending on Perl
modules to work.

It might be fixable in this particular instance (did you provide a patch in
your PR?  thought so...), but you cannot expect it to work in general.

Cheers,
\Anton.
-- 
We're going for 'working' here. 'clean' is for people with skills...
-- Flemming Jacobsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]