pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/31001: www/clearsilver-base installs a library but has no buildlink3.mk file



>Number:         31001
>Category:       pkg
>Synopsis:       www/clearsilver-base installs a library but has no 
>buildlink3.mk file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 16 16:05:00 +0000 2005
>Originator:     Brook Milligan
>Release:        NetBSD 2.0
>Organization:
Brook G. Milligan                      Internet:  brook%nmsu.edu@localhost
Department of Biology
New Mexico State University            Telephone:  (505) 646-7980
Las Cruces, New Mexico  88003  U.S.A.  FAX:        (505) 646-5665
>Environment:
        
        
System: NetBSD cornus.nmsu.edu 2.0 NetBSD 2.0 (GENERIC_LAPTOP) #0: Wed Dec 1 
11:01:08 UTC 2004 
builds@build:/big/builds/ab/netbsd-2-0-RELEASE/i386/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/i386/compile/GENERIC_LAPTOP
 i386
Architecture: i386
Machine: i386
>Description:
        The www/clearsilver-base package installs a library with
header files, yet does not have a buildlink3.mk file.  As a
consequence, other packages that depend on it cannot specify their
dependency in the "normal" manner and cannot link against the
installed library.  Currently, the other packages that do depend on it
(e.g., py23-clearsilver and ruby18-clearsilver) seem to recompile the
library.  This may be necessary for them, but it is not necessary for
other standalone packages that simply need the library.  Those should
be able to make use of a buildlink3.mk file.
>How-To-Repeat:
        Try to create a package that must link to the library
installed by the clearsilver-base package.
>Fix:
Create the following file: www/clearsilver-base/buildlink3.mk.  Note
that I am unsure whether or not the exact version number should be
included in ${BUILDLINK_DEPENDS.clearsilver-base} or if the wildcard
is shown below ok.  Also, this works for me with an actual package
that depends on clearsilver-base, but I am not a buildlink master.

# $NetBSD$

BUILDLINK_DEPTH:=       ${BUILDLINK_DEPTH}+
CLEARSILVER_BASE_BUILDLINK3_MK:=        ${CLEARSILVER_BASE_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=     clearsilver-base
.endif

BUILDLINK_PACKAGES:=    ${BUILDLINK_PACKAGES:Nclearsilver-base}
BUILDLINK_PACKAGES+=    clearsilver-base

.if !empty(CLEARSILVER_BASE_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.clearsilver-base?=    clearsilver-base-* # ABI requires 
exactly this pattern
BUILDLINK_PKGSRCDIR.clearsilver-base?=  ../../www/clearsilver-base
BUILDLINK_CPPFLAGS.clearsilver-base+=   
-I${BUILDLINK_PREFIX.clearsilver-base}/include
.endif  # CLEARSILVER_BASE_BUILDLINK3_MK

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index