ignoring FETCH_DEPENDS

Stefan Walter sw at gegenunendlich.de
Sun Aug 22 11:22:20 PDT 2004


Mark Russell in gmane.os.freebsd.devel.ports:

> The distfiles of the 2 ports concerned fetch fine without the 
> FETCH_DEPENDS, the case of net/p5-Net-SSH-Perl it wants to install its 
> BUILD_DEPENDS before it fetches, I've yet to work out why. The other port 

It's a bug in the Makefile, it shouldn't have those FETCH_DEPENDS. Could
you try the attached patch? It

- removes the FETCH_DEPENDS.
- removes an unused variable.
- corrects a dependency on devel/p5-IO which is not necessary for recent
  Perl versions.

The CVS logs say there were also problems with the package build on
bento. I was able to build a package without any problems, so I removed
NO_PACKAGE, too. Maybe that one's fixed now, too.

I haven't checked if the port already has dependencies for all the
algorithms/Perl modules you can choose in the interactive configure
script. I also guess that the plist is broken if you choose not to
install the SSH1 or SSH2 protocol module (the default is to install
both), but I haven't looked at that, yet.

I'll have a look at the rest tomorrow and then send a PR, unless someone
is faster or there is a problem with the patch.

Stefan
-- 
No reading beyond this point
-------------- next part --------------
diff -urN p5-Net-SSH-Perl.old/Makefile p5-Net-SSH-Perl/Makefile
--- p5-Net-SSH-Perl.old/Makefile	Sun Aug 22 18:47:13 2004
+++ p5-Net-SSH-Perl/Makefile	Sun Aug 22 19:35:51 2004
@@ -15,28 +15,30 @@
 MAINTAINER=	jesper at FreeBSD.org
 COMMENT=	Perl5 module implements both the SSH1 and SSH2 protocols
 
-NO_PACKAGE=	"Runaway package build"
+PERL_CONFIGURE=	yes
 
-PERL_BASE=	${SITE_PERL}
-BUILD_DEPENDS=	${PERL_BASE}/Crypt/DSA.pm:${PORTSDIR}/security/p5-Crypt-DSA \
-		${PERL_BASE}/Crypt/DH.pm:${PORTSDIR}/security/p5-Crypt-DH \
-		${PERL_BASE}/${PERL_ARCH}/Math/Pari.pm:${PORTSDIR}/math/p5-Math-Pari \
-		${PERL_BASE}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
-		${PERL_BASE}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
-		${PERL_BASE}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
-		${PERL_BASE}/Digest/HMAC_SHA1.pm:${PORTSDIR}/security/p5-Digest-HMAC \
-		${PERL_BASE}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC \
-		${PERL_BASE}/Convert/PEM.pm:${PORTSDIR}/converters/p5-Convert-PEM \
-		${PERL_BASE}/Digest/BubbleBabble.pm:${PORTSDIR}/security/p5-Digest-BubbleBabble \
-		${PERL_BASE}/Crypt/RSA.pm:${PORTSDIR}/security/p5-Crypt-RSA \
-		${PERL_BASE}/${PERL_ARCH}/IO/Socket.pm:${PORTSDIR}/devel/p5-IO \
-		${PERL_BASE}/${PERL_ARCH}/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32 \
-		${PERL_BASE}/${PERL_ARCH}/Math/GMP.pm:${PORTSDIR}/math/p5-Math-GMP \
-		${PERL_BASE}/${PERL_ARCH}/Crypt/IDEA.pm:${PORTSDIR}/security/p5-Crypt-IDEA
-RUN_DEPENDS=	${BUILD_DEPENDS}
-FETCH_DEPENDS=	${BUILD_DEPENDS}
+.include <bsd.port.pre.mk>
 
-PERL_CONFIGURE=	yes
+BUILD_DEPENDS=	${SITE_PERL}/Crypt/DSA.pm:${PORTSDIR}/security/p5-Crypt-DSA \
+		${SITE_PERL}/Crypt/DH.pm:${PORTSDIR}/security/p5-Crypt-DH \
+		${SITE_PERL}/${PERL_ARCH}/Math/Pari.pm:${PORTSDIR}/math/p5-Math-Pari \
+		${SITE_PERL}/${PERL_ARCH}/MIME/Base64.pm:${PORTSDIR}/converters/p5-MIME-Base64 \
+		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
+		${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 \
+		${SITE_PERL}/Digest/HMAC_SHA1.pm:${PORTSDIR}/security/p5-Digest-HMAC \
+		${SITE_PERL}/Digest/HMAC_MD5.pm:${PORTSDIR}/security/p5-Digest-HMAC \
+		${SITE_PERL}/Convert/PEM.pm:${PORTSDIR}/converters/p5-Convert-PEM \
+		${SITE_PERL}/Digest/BubbleBabble.pm:${PORTSDIR}/security/p5-Digest-BubbleBabble \
+		${SITE_PERL}/Crypt/RSA.pm:${PORTSDIR}/security/p5-Crypt-RSA \
+		${SITE_PERL}/${PERL_ARCH}/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32 \
+		${SITE_PERL}/${PERL_ARCH}/Math/GMP.pm:${PORTSDIR}/math/p5-Math-GMP \
+		${SITE_PERL}/${PERL_ARCH}/Crypt/IDEA.pm:${PORTSDIR}/security/p5-Crypt-IDEA
+
+.if ${PERL_LEVEL} <= 500600
+BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/IO/Socket.pm:${PORTSDIR}/devel/p5-IO
+.endif
+
+RUN_DEPENDS=	${BUILD_DEPENDS}
 
 MAN3=		Net::SSH::Perl::Constants.3 \
 		Net::SSH::Perl::Util.3 \
@@ -74,4 +76,4 @@
 		Net::SSH::Perl::Cipher::DES3.3 \
 		Net::SSH::Perl::Channel.3
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 650 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20040822/00b2808b/attachment.bin


More information about the freebsd-ports mailing list