Date: Tue, 28 Dec 2004 11:01:40 GMT From: Kensaku MASUDA <greg@greg.jp> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/75567: Automatic dependency was broken for security/gnutls Message-ID: <200412281101.iBSB1e31057761@www.freebsd.org> Resent-Message-ID: <200412281110.iBSBANIi038636@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 75567 >Category: ports >Synopsis: Automatic dependency was broken for security/gnutls >Confidential: no >Severity: non-critical >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Dec 28 11:10:22 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Kensaku MASUDA >Release: 5.3-STABLE >Organization: >Environment: FreeBSD omoikane.greg.jp 5.3-STABLE FreeBSD 5.3-STABLE #0: Wed Dec 22 15:23:25 JST 2004 root@omoikane.greg.jp:/a/uzume.greg.rim.or.jp/export/src/system-5-stable/src/sys/i386/compile/omoikane.greg.jp i386 >Description: gnutls depends by opencdk and tasn1 libraries, if installed. Configure script can found it, But packaging system was not. >How-To-Repeat: 1. Install opencdk and tasn1 library 2. Build security/gnutls 3. Install security/gnutls 4. Look dependency for gnutls. Builded binary was depends by it libraries, But gnutls-1.0.21/+CONTENTS was no lines for opencdk and tasn1. >Fix: --- Makefile.old Wed Oct 13 18:08:06 2004 +++ Makefile Tue Dec 28 11:07:29 2004 @@ -20,14 +20,6 @@ LIB_DEPENDS= gcrypt.12:${PORTSDIR}/security/libgcrypt \ gpg-error.1:${PORTSDIR}/security/libgpg-error -.if defined(WITH_OPENCDK) || exists(${LOCALBASE}/lib/libopencdk.so.8) -LIB_DEPENDS+= opencdk.8:${PORTSDIR}/security/opencdk -.endif - -.if defined(WITH_LIBTASN1) || exists(${LOCALBASE}/lib/libtasn1.so.2) -LIB_DEPENDS+= tasn1.2:${PORTSDIR}/security/libtasn1 -.endif - CONFLICTS= gnutls-devel-[0-9]* USE_GPG?= yes @@ -47,6 +39,24 @@ DOCS= AUTHORS NEWS README THANKS doc/tex/*.ps EXAMPLES= doc/examples/*.c +.include <bsd.port.pre.mk> + +.if exists(${LOCALBASE}/lib/libopencdk.so) && !defined(WITHOUT_OPENCDK) +WITH_OPENCDK= yes +.endif + +.if exists(${LOCALBASE}/lib/libtasn1.so) && !defined(WITHOUT_LIBTASN1) +WITH_LIBTASN1= yes +.endif + +.if defined(WITH_OPENCDK) +LIB_DEPENDS+= opencdk.8:${PORTSDIR}/security/opencdk +.endif + +.if defined(WITH_LIBTASN1) +LIB_DEPENDS+= tasn1.2:${PORTSDIR}/security/libtasn1 +.endif + post-install: @${MKDIR} ${EXAMPLESDIR} cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR} @@ -55,4 +65,4 @@ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200412281101.iBSB1e31057761>