Subject: Openssl build problem
To: NetBSD tech-pkg mailing list <tech-pkg@netbsd.org>
From: Julian Coleman <J.D.Coleman@newcastle.ac.uk>
List: tech-pkg
Date: 05/11/2000 22:23:36
Just tried to build openssl (on sparc 1.4R) with :

  Makefile,v 1.14 2000/05/10 12:28:37 veego

Initial attempt results in :

  ===> Patching for openssl-0.9.5a
  /bin/mkdir -p /usr/obj/packages/security/openssl/work/.patches
  for FILE in /usr/pkgsrc/security/openssl/patches/patch.netbsd-*; do  @/bin/cp $FILE /usr/obj/packages/security/openssl/work/.patches/patches-${FILE##-};  done
  @/bin/cp: not found
  *** Error code 127

Removing the '@' results in :

  ===> Patching for openssl-0.9.5a
  /bin/mkdir -p /usr/obj/packages/security/openssl/work/.patches
  for FILE in /usr/pkgsrc/security/openssl/patches/patch.netbsd-*; do  /bin/cp $FILE /usr/obj/packages/security/openssl/work/.patches/patches-${FILE##-};  done
  cp: /usr/obj/packages/security/openssl/work/.patches/patches-/usr/pkgsrc/security/openssl/patches/patch.netbsd-aa: No such file or directory

So, fix the shell syntax and correct the patch file names - the appended patch
makes things work.  Is it the correct fix, or am I missing something obvious?

Thanks,

J

-- 
                    My other computer also runs NetBSD
                          http://www.netbsd.org/
 ---8<---------------------------- Cut here ---------------------------->8---
--- /usr/cvs/pkgsrc/security/openssl/Makefile	Wed May 10 13:28:37 2000
+++ Makefile	Thu May 11 21:53:41 2000
@@ -60,7 +60,7 @@
 	@${CP} ${.CURDIR}/patches/patch-* ${WRKDIR}/.patches
 .if ${OPSYS} == "NetBSD"
 	for FILE in ${.CURDIR}/patches/patch.netbsd-*; do \
-		@${CP} $$FILE ${PATCHDIR}/patches-$${FILE##-}; \
+		${CP} $$FILE ${PATCHDIR}/patch-$${FILE##*-}; \
 	done
 .endif