Subject: pkg/24099: lang/perl5/module.mk clobbers OTHERLDFLAGS
To: None <gnats-bugs@gnats.netbsd.org>
From: Eric Gillespie <epg@pretzelnet.org>
List: netbsd-bugs
Date: 01/14/2004 21:42:22
>Number:         24099
>Category:       pkg
>Synopsis:       lang/perl5/module.mk clobbers OTHERLDFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jan 15 02:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 1.6
>Organization:
>Environment:
System: NetBSD wundagore.diplodocus.org 1.6 NetBSD 1.6 ($Id: WUNDAGORE 435 2002-10-02 02:08:24Z epg $) #6: Sun Jan 12 17:26:34 EST 2003 epg@wundagore.pretzelnet.org:/usr/src/sys/arch/i386/compile/WUNDAGORE i386
Architecture: i386
Machine: i386
>Description:
Johnny Lam asked me to file this (from
<14209.1073860437@gould.diplodocus.org> on tech-pkg):

While working on merging Perl bindings changes for Subversion
1.0, i think i found the problem with our devel/p5-subversion
package.  Unfortunately, i do not know the best way to solve it.
I'd appreciate any help.

Subversion's Makefile.PL contains this:

        OTHERLDFLAGS => join(' ', $apr_ldflags, (map {"-L$_"} @ldpaths),
                             @ldmodules, '-lsvn_swig_perl-1',
                             `swig -perl -ldflags`),

which results in this in the Makefile:

OTHERLDFLAGS =  -L../.libs -L../../../libsvn_client/.libs -L../../../libsvn_delta/.libs -L../../../libsvn_fs/.libs -L../../../libsvn_ra/.libs -L../../../libsvn_repos/.libs -L../../../libsvn_wc/.libs -L../../../libsvn_diff/.libs -L../../../libsvn_subr/.libs -lsvn_client-1 -lsvn_delta-1 -lsvn_fs-1 -lsvn_ra-1 -lsvn_repos-1 -lsvn_wc-1 -lsvn_diff-1 -lsvn_subr-1 -lsvn_swig_perl-1 -L/usr/pkg/lib -lswigpl

But perl5/module.mk clobbers OTHERLDFLAGS.
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: