Sat Jun 16 08:55:55 2012 UTC ()
Insert another symbolic link so it configures on amd64. Fix getline()
conflict. Fix makefiles that weren't stopping on error.

Now builds.


(dholland)
diff -r1.12 -r1.13 pkgsrc/sysutils/sformat/Makefile
diff -r1.3 -r1.4 pkgsrc/sysutils/sformat/distinfo
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-RULES_rules1_dir
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-include_schily_h
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-lib_stdio_fgetline_c
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-libscg_scsitransp_c
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-sformat_defect_c
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-sformat_diskfmt_c
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-sformat_io_c
diff -r0 -r1.1 pkgsrc/sysutils/sformat/patches/patch-sformat_makelabel_c

cvs diff -r1.12 -r1.13 pkgsrc/sysutils/sformat/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/sformat/Makefile 2009/03/18 19:18:59 1.12
+++ pkgsrc/sysutils/sformat/Makefile 2012/06/16 08:55:54 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.12 2009/03/18 19:18:59 darcy Exp $ 1# $NetBSD: Makefile,v 1.13 2012/06/16 08:55:54 dholland Exp $
2# 2#
3 3
4DISTNAME= sformat-3.5 4DISTNAME= sformat-3.5
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= sysutils 6CATEGORIES= sysutils
7MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/ 7MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/
8 8
9MAINTAINER= Andreas.Hallmann@tiscali.de 9MAINTAINER= Andreas.Hallmann@tiscali.de
10HOMEPAGE= http://freshmeat.net/projects/sformat 10HOMEPAGE= http://freshmeat.net/projects/sformat
11COMMENT= SCSI disk maintainance, formating, and ultimative repair tool with support for NetBSD labels 11COMMENT= SCSI disk maintainance, formating, and ultimative repair tool with support for NetBSD labels
12 12
13PKG_INSTALLATION_TYPES= overwrite pkgviews 13PKG_INSTALLATION_TYPES= overwrite pkgviews
14PKG_DESTDIR_SUPPORT= user-destdir 14PKG_DESTDIR_SUPPORT= user-destdir
@@ -27,15 +27,16 @@ MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALB @@ -27,15 +27,16 @@ MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALB
27 27
28# if we're using a gcc which is named gcc, we need to set CCOM=gcc 28# if we're using a gcc which is named gcc, we need to set CCOM=gcc
29# in MAKE_ENV so the make infrastructure picks the right options. 29# in MAKE_ENV so the make infrastructure picks the right options.
30.if !empty(CC:M*gcc*) 30.if !empty(CC:M*gcc*)
31MAKE_ENV+= CCOM="gcc" 31MAKE_ENV+= CCOM="gcc"
32.endif 32.endif
33 33
34INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 34INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
35 35
36post-extract: 36post-extract:
37 ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id 37 ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id
38 ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def 38 ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def
39 ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/amd64-netbsd-cc.rul 39 ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/amd64-netbsd-cc.rul
 40 ln -s i386-netbsd-cc.rul ${WRKSRC}/RULES/amd64-netbsd-gcc.rul
40 41
41.include "../../mk/bsd.pkg.mk" 42.include "../../mk/bsd.pkg.mk"

cvs diff -r1.3 -r1.4 pkgsrc/sysutils/sformat/distinfo (expand / switch to unified diff)

--- pkgsrc/sysutils/sformat/distinfo 2007/06/27 13:40:49 1.3
+++ pkgsrc/sysutils/sformat/distinfo 2012/06/16 08:55:54 1.4
@@ -1,6 +1,14 @@ @@ -1,6 +1,14 @@
1$NetBSD: distinfo,v 1.3 2007/06/27 13:40:49 joerg Exp $ 1$NetBSD: distinfo,v 1.4 2012/06/16 08:55:54 dholland Exp $
2 2
3SHA1 (sformat-3.5.tar.gz) = 1ebde6c9d58f376ad2d82f6f8e3bb2e89da00920 3SHA1 (sformat-3.5.tar.gz) = 1ebde6c9d58f376ad2d82f6f8e3bb2e89da00920
4RMD160 (sformat-3.5.tar.gz) = 5dd3e15d1fca7dd961694996bd094e3f2abce28f 4RMD160 (sformat-3.5.tar.gz) = 5dd3e15d1fca7dd961694996bd094e3f2abce28f
5Size (sformat-3.5.tar.gz) = 526375 bytes 5Size (sformat-3.5.tar.gz) = 526375 bytes
 6SHA1 (patch-RULES_rules1_dir) = 25b5f88d65b4d8265417bc97cee63f6346e3b008
6SHA1 (patch-aa) = e398bc734a7bc48668a0b61d3535c0d87b1a4ccf 7SHA1 (patch-aa) = e398bc734a7bc48668a0b61d3535c0d87b1a4ccf
 8SHA1 (patch-include_schily_h) = 68bd5500c199edbbd48dba4d197ad70dc319bc84
 9SHA1 (patch-lib_stdio_fgetline_c) = 0d9aacf5cebc70522b085d71ef90f9665d8c5d6a
 10SHA1 (patch-libscg_scsitransp_c) = 889ec76b497782ffd42ef13214f0e1ab3187ceaf
 11SHA1 (patch-sformat_defect_c) = 20ba1dfd1f671e216fd04e8dfbf02e6ca605ebf3
 12SHA1 (patch-sformat_diskfmt_c) = bd86beb7d9590c32c75c158c9fb13cff8d60a3e3
 13SHA1 (patch-sformat_io_c) = a0a27221e7151feac100c7fc3eb567f4555a6e1b
 14SHA1 (patch-sformat_makelabel_c) = 84bbf9666fdabbcd65476a2e0389169723252327

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-RULES_rules1_dir
$NetBSD: patch-RULES_rules1_dir,v 1.1 2012/06/16 08:55:55 dholland Exp $

Makefiles should stop on error.

--- RULES/rules1.dir~	2000-12-01 16:13:17.000000000 +0000
+++ RULES/rules1.dir
@@ -32,7 +32,7 @@ $(ALLTARGETS):
 		(								\
 		echo "	==> MAKING \"$@\" ON SUBDIRECTORY \"$(CURDIR)/$$DIR\"";\
 		if [ -d ./$$DIR -a -r ./$$DIR/Makefile ] ; then			\
-			cd ./$$DIR;$(MAKE) $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURDIR)/$$DIR $@;		\
+			cd ./$$DIR;$(MAKE) $(MAKEMACS) XARCH=$(XARCH) DIRNAME=$(CURDIR)/$$DIR $@ || exit 1;	\
 		else								\
 			echo "NOTICE: Partial source ($(CURDIR)/$$DIR) missing";\
 		fi								\

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-include_schily_h
$NetBSD: patch-include_schily_h,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- include/schily.h	Sat Jun 16 04:48:53 2012 -0400
+++ include/schily.h	Sat Jun 16 04:50:37 2012 -0400
@@ -153,7 +153,7 @@
 extern	char	*findbytes __PR((const void *, int, char));
 extern	int	findline __PR((const char *, char, const char *,
 							int, char **, int));
-extern	int	getline __PR((char *, int));
+extern	int	get_line __PR((char *, int));
 extern	int	getstr __PR((char *, int));
 extern	int	breakline __PR((char *, char, char **, int));
 extern	int	getallargs __PR((int *, char * const**, const char *, ...));

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-lib_stdio_fgetline_c
$NetBSD: patch-lib_stdio_fgetline_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- lib/stdio/fgetline.c~	2000-12-03 11:19:29.000000000 +0000
+++ lib/stdio/fgetline.c
@@ -64,7 +64,7 @@ fgetline(f, buf, len)
 }
 
 EXPORT int
-getline(buf, len)
+get_line(buf, len)
 	char	*buf;
 	int	len;
 {

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-libscg_scsitransp_c
$NetBSD: patch-libscg_scsitransp_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- libscg/scsitransp.c	Sat Jun 16 04:48:53 2012 -0400
+++ libscg/scsitransp.c	Sat Jun 16 04:50:37 2012 -0400
@@ -302,7 +302,7 @@
 
 	js_printf("%s", msg);
 	flush();
-	if (getline(okbuf, sizeof(okbuf)) == EOF)
+	if (get_line(okbuf, sizeof(okbuf)) == EOF)
 		exit(EX_BAD);
 	if(streql(okbuf, "y") || streql(okbuf, "yes") ||
 	   streql(okbuf, "Y") || streql(okbuf, "YES"))

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-sformat_defect_c
$NetBSD: patch-sformat_defect_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- sformat/defect.c	Sat Jun 16 04:48:53 2012 -0400
+++ sformat/defect.c	Sat Jun 16 04:50:37 2012 -0400
@@ -238,7 +238,7 @@
 	for (;;) {
 		printf("def> ");
 		flush();
-		if ((n = getline(line, 80)) == 0)
+		if ((n = get_line(line, 80)) == 0)
 /*			return (FALSE);*/
 			continue;
 		if (n == EOF)

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-sformat_diskfmt_c
$NetBSD: patch-sformat_diskfmt_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- sformat/diskfmt.c	Sat Jun 16 04:48:53 2012 -0400
+++ sformat/diskfmt.c	Sat Jun 16 04:50:37 2012 -0400
@@ -1014,7 +1014,7 @@
 	}
 
 	printf("Enter filename for database prototype [proto.dat]: ");flush();
-	(void)getline(name, sizeof(name));
+	(void)get_line(name, sizeof(name));
 	if (name[0] == '\0')
 		strcpy(name, "proto.dat");
 	if (streql(name, "-"))

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-sformat_io_c
$NetBSD: patch-sformat_io_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- sformat/io.c	Sat Jun 16 04:48:53 2012 -0400
+++ sformat/io.c	Sat Jun 16 04:50:37 2012 -0400
@@ -245,7 +245,7 @@
 		(*prt)(s, *lp, mini, maxi, dp);
 		flush();
 		line[0] = '\0';
-		if (getline(line, 80) == EOF)
+		if (get_line(line, 80) == EOF)
 			exit(EX_BAD);
 
 		linep = skipwhite(line);
@@ -332,7 +332,7 @@
 	printf("%r", form, args);
 	va_end(args);
 	flush();
-	if (getline(okbuf, sizeof(okbuf)) == EOF)
+	if (get_line(okbuf, sizeof(okbuf)) == EOF)
 		exit(EX_BAD);
 	if (okbuf[0] == '?') {
 		printf("Enter 'y', 'Y', 'yes' or 'YES' if you agree with the previous asked question.\n");
@@ -412,7 +412,7 @@
 		printf("%s [%s]:", s, csp->s_name);
 		flush();
 		line[0] = '\0';
-		if (getline(line, 80) == EOF)
+		if (get_line(line, 80) == EOF)
 			exit(EX_BAD);
 
 		linep = skipwhite(line);

File Added: pkgsrc/sysutils/sformat/patches/Attic/patch-sformat_makelabel_c
$NetBSD: patch-sformat_makelabel_c,v 1.1 2012/06/16 08:55:55 dholland Exp $

Fix symbol name conflict with POSIX getline().

--- sformat/makelabel.c	Sat Jun 16 04:48:53 2012 -0400
+++ sformat/makelabel.c	Sat Jun 16 04:50:37 2012 -0400
@@ -284,7 +284,7 @@
 	if (yes("Label: <%s> change ? ", labelbuf)) {
 		printf("Enter disk label: "); flush();
 		tty_insert(labelbuf);
-		(void)getline(lbuf, sizeof(lbuf));
+		(void)get_line(lbuf, sizeof(lbuf));
 		strcpy(labelbuf, lbuf);
 		
 	}
@@ -296,7 +296,7 @@
 	if (yes("Volume Name: <%s> change ? ", lbuf)) {
 		printf("Enter volume name: "); flush();
 		tty_insert(lbuf);
-		(void)getline(lbuf, LEN_DKL_VVOL+1);
+		(void)get_line(lbuf, LEN_DKL_VVOL+1);
 		strncpy(lp->dkl_vtoc.v_volume, lbuf, LEN_DKL_VVOL);
 	}
 #endif