From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 12 18:40:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AD07796B for ; Wed, 12 Mar 2014 18:40:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D016FFD for ; Wed, 12 Mar 2014 18:40:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2CIe0kQ044595 for ; Wed, 12 Mar 2014 18:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2CIe0BK044594; Wed, 12 Mar 2014 18:40:00 GMT (envelope-from gnats) Resent-Date: Wed, 12 Mar 2014 18:40:00 GMT Resent-Message-Id: <201403121840.s2CIe0BK044594@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, KATO Tsuguru Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19ABB8D1 for ; Wed, 12 Mar 2014 18:33:56 +0000 (UTC) Received: from omta03.auone-net.jp (mail-or2-f145.auone-net.jp [111.87.219.145]) by mx1.freebsd.org (Postfix) with ESMTP id C9903FAD for ; Wed, 12 Mar 2014 18:33:55 +0000 (UTC) Received: from coppermine.my.domain (ZT028236.ppp.dion.ne.jp [59.128.28.236]) by omta03.auone-net.jp (au one net mail) with ESMTP id 9437A1880012 for ; Thu, 13 Mar 2014 03:33:44 +0900 (JST) Message-Id: <20140313033252.029d542d900dd2afafce9b0d@yahoo.com> Date: Thu, 13 Mar 2014 03:32:52 +0900 From: KATO Tsuguru To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/187491: shells/sash: Update to version 3.8 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 18:40:00 -0000 >Number: 187491 >Category: ports >Synopsis: shells/sash: Update to version 3.8 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Mar 12 18:40:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: KATO Tsuguru >Release: FreeBSD 8.4-RELEASE-p7 i386 >Organization: >Environment: >Description: - Update to version 3.8 New file: files/patch-sash.c >How-To-Repeat: >Fix: diff -urN /usr/ports/shells/sash/Makefile shells/sash/Makefile --- /usr/ports/shells/sash/Makefile 2014-01-23 04:17:52.000000000 +0900 +++ shells/sash/Makefile 2014-03-13 00:00:00.000000000 +0900 @@ -2,19 +2,11 @@ # $FreeBSD: head/shells/sash/Makefile 340722 2014-01-22 17:00:46Z mat $ PORTNAME= sash -PORTVERSION= 3.7 +PORTVERSION= 3.8 CATEGORIES= shells MASTER_SITES= http://members.tip.net.au/~dbell/programs/ MAINTAINER= ports@FreeBSD.org COMMENT= Stand-Alone shell combining many common utilities -.if !exists(/usr/include/fs/ntfs/ntfsmount.h) -BROKEN= Depends on fs/ntfs/ntfsmount.h -.endif - -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/sash ${STAGEDIR}${PREFIX}/bin/sash - ${INSTALL_MAN} ${WRKSRC}/sash.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/sash.1 - .include diff -urN /usr/ports/shells/sash/distinfo shells/sash/distinfo --- /usr/ports/shells/sash/distinfo 2014-01-23 04:17:52.000000000 +0900 +++ shells/sash/distinfo 2014-03-13 00:00:00.000000000 +0900 @@ -1,2 +1,2 @@ -SHA256 (sash-3.7.tar.gz) = 352726adb9736ba5a9b459d5c8a7d7c3b2c36cc99363adccc25a8a991d719c7f -SIZE (sash-3.7.tar.gz) = 50337 +SHA256 (sash-3.8.tar.gz) = 13c4f9a911526949096bf543c21a41149e6b037061193b15ba6b707eea7b6579 +SIZE (sash-3.8.tar.gz) = 53049 diff -urN /usr/ports/shells/sash/files/patch-Makefile shells/sash/files/patch-Makefile --- /usr/ports/shells/sash/files/patch-Makefile 2014-01-23 04:17:52.000000000 +0900 +++ shells/sash/files/patch-Makefile 2014-03-13 00:00:00.000000000 +0900 @@ -1,38 +1,61 @@ ---- Makefile.orig Mon Jul 22 01:24:47 2002 -+++ Makefile Fri Sep 3 14:53:40 2004 -@@ -8,13 +8,13 @@ - # The MOUNT_TYPE definition sets the default file system type for -mount. +--- Makefile.orig 2014-03-05 18:56:53.000000000 +0900 ++++ Makefile 2014-03-13 03:27:58.000000000 +0900 +@@ -19,17 +19,17 @@ # + HAVE_GZIP = 1 -HAVE_LINUX_ATTR = 1 +-HAVE_LINUX_CHROOT = 1 +-HAVE_LINUX_LOSETUP = 1 +-HAVE_LINUX_PIVOT = 1 -HAVE_LINUX_MOUNT = 1 -HAVE_BSD_MOUNT = 0 -MOUNT_TYPE = '"ext3"' +HAVE_LINUX_ATTR = 0 ++HAVE_LINUX_CHROOT = 0 ++HAVE_LINUX_LOSETUP = 0 ++HAVE_LINUX_PIVOT = 0 +HAVE_LINUX_MOUNT = 0 +HAVE_BSD_MOUNT = 1 +MOUNT_TYPE = '"ufs"' + OPT = -O3 --CFLAGS = -O3 -Wall -Wmissing-prototypes \ +-CFLAGS = $(OPT) -Wall -Wmissing-prototypes \ +CFLAGS += -Wall -Wmissing-prototypes \ -DHAVE_GZIP=$(HAVE_GZIP) \ -DHAVE_LINUX_ATTR=$(HAVE_LINUX_ATTR) \ - -DHAVE_LINUX_MOUNT=$(HAVE_LINUX_MOUNT) \ -@@ -25,13 +25,14 @@ + -DHAVE_LINUX_CHROOT=$(HAVE_LINUX_CHROOT) \ +@@ -43,24 +43,26 @@ LIBS = -lz +-DESTDIR = -BINDIR = /bin --MANDIR = /usr/man/man1 +-MANDIR = /usr/man ++#DESTDIR = ++PREFIX ?= /usr/local ++MANPREFIX ?= $(PREFIX) +BINDIR = $(PREFIX)/bin -+MANDIR = $(MANPREFIX)/man/man1 ++MANDIR = $(MANPREFIX)/man OBJS = sash.o cmds.o cmd_dd.o cmd_ed.o cmd_grep.o cmd_ls.o cmd_tar.o \ cmd_gzip.o cmd_find.o cmd_file.o cmd_chattr.o cmd_ar.o utils.o -+all: sash ++all: sash sash: $(OBJS) $(CC) $(LDFLAGS) -o sash $(OBJS) $(LIBS) +- strip sash + + clean: + rm -f $(OBJS) sash + + install: sash +- cp sash $(DESTDIR)/$(BINDIR)/sash +- cp sash.1 $(DESTDIR)/$(MANDIR)/man1/sash.1 ++ ${BSD_INSTALL_PROGRAM} sash $(DESTDIR)$(BINDIR)/sash ++ ${BSD_INSTALL_MAN} sash.1 $(DESTDIR)$(MANDIR)/man1/sash.1 + + $(OBJS): sash.h diff -urN /usr/ports/shells/sash/files/patch-cmds.c shells/sash/files/patch-cmds.c --- /usr/ports/shells/sash/files/patch-cmds.c 2014-01-23 04:17:52.000000000 +0900 +++ shells/sash/files/patch-cmds.c 2014-03-13 00:00:00.000000000 +0900 @@ -1,25 +1,34 @@ --- cmds.c.orig Mon Jul 22 00:28:19 2002 +++ cmds.c Fri Sep 3 16:35:01 2004 -@@ -17,6 +17,18 @@ +@@ -17,9 +17,18 @@ #include #include +#if __FreeBSD__ +#include +#include -+#if __FreeBSD_version >= 500019 +#include ++#if __FreeBSD_version < 1000000 +#include -+#else -+#include -+#include ++#define HAVE_BSD_NTFSMOUNT +#endif +#endif + #if HAVE_LINUX_MOUNT #include - #endif -@@ -564,6 +576,10 @@ +-#endif + + /* Need to tell loop.h what the actual dev_t type is. */ + #undef dev_t +@@ -32,6 +41,7 @@ + #undef dev_t + #define dev_t dev_t + ++#endif + + int + do_echo(int argc, const char ** argv) +@@ -716,6 +726,10 @@ flags |= MNT_RDONLY; break; @@ -30,7 +39,7 @@ case 's': flags |= MNT_NOSUID; break; -@@ -594,35 +610,47 @@ +@@ -748,46 +762,58 @@ #elif HAVE_BSD_MOUNT { struct ufs_args ufs; @@ -38,30 +47,37 @@ struct iso_args iso; - struct mfs_args mfs; struct msdosfs_args msdosfs; ++#ifdef HAVE_BSD_NTFSMOUNT + struct ntfs_args ntfs; ++#endif void * args; - if(!strcmp(type, "ffs") || !strcmp(type, "ufs")) { + if (!strcmp(type, "ffs") || !strcmp(type, "ufs")) + { + memset(&ufs, 0, sizeof(ufs)); ufs.fspec = (char*) argv[0]; args = &ufs; -- } else if(!strcmp(type, "adosfs")) { + } +- else if (!strcmp(type, "adosfs")) +- { - adosfs.fspec = (char*) argv[0]; - adosfs.uid = 0; - adosfs.gid = 0; - args = &adosfs; - } else if(!strcmp(type, "cd9660")) { +- } + else if (!strcmp(type, "cd9660")) + { + memset(&iso, 0, sizeof(iso)); iso.fspec = (char*) argv[0]; args = &iso; -- } else if(!strcmp(type, "mfs")) { + } +- else if (!strcmp(type, "mfs")) +- { - mfs.fspec = (char*) argv[0]; - args = &mfs; -+ } else if(!strcmp(type, "ext2fs")) { -+ memset(&ufs, 0, sizeof(ufs)); -+ ufs.fspec = (char*) argv[0]; -+ args = &ufs; - } else if(!strcmp(type, "msdos")) { +- } + else if (!strcmp(type, "msdos")) + { + memset(&msdosfs, 0, sizeof(msdosfs)); msdosfs.fspec = (char*) argv[0]; - msdosfs.uid = 0; @@ -73,6 +89,7 @@ + msdosfs.mask = msdosfs.dirmask = 7555; + } args = &msdosfs; ++#ifdef HAVE_BSD_NTFSMOUNT + } else if(!strcmp(type, "ntfs")) { + memset(&ntfs, 0, sizeof(ntfs)); + ntfs.fspec = (char*) argv[0]; @@ -83,11 +100,18 @@ + ntfs.mode = 0755; + } + args = &ntfs; - } else { ++#endif + } + else + { fprintf(stderr, "Unknown filesystem type: %s", type); fprintf(stderr, - "Supported: ffs ufs adosfs cd9660 mfs msdos\n"); ++#ifdef HAVE_BSD_NTFSMOUNT + "Supported: ffs ufs cd9660 ext2fs msdos ntfs\n"); - return; - } ++#else ++ "Supported: ffs ufs cd9660 ext2fs msdos\n"); ++#endif + return 1; + } diff -urN /usr/ports/shells/sash/files/patch-sash.c shells/sash/files/patch-sash.c --- /usr/ports/shells/sash/files/patch-sash.c 1970-01-01 09:00:00.000000000 +0900 +++ shells/sash/files/patch-sash.c 2014-03-13 00:00:00.000000000 +0900 @@ -0,0 +1,29 @@ +--- sash.c.orig ++++ sash.c +@@ -107,7 +107,7 @@ + "srcName ... destName" + }, + +-#ifdef HAVE_LINUX_CHROOT ++#if HAVE_LINUX_CHROOT + { + "-chroot", do_chroot, 2, 2, + "change root file system", +@@ -189,7 +189,7 @@ + "[-sig] pid ..." + }, + +-#ifdef HAVE_LINUX_LOSETUP ++#if HAVE_LINUX_LOSETUP + { + "-losetup", do_losetup, 3, 3, + "Associate a loopback device with a file", +@@ -253,7 +253,7 @@ + "srcName ... destName" + }, + +-#ifdef HAVE_LINUX_PIVOT ++#if HAVE_LINUX_PIVOT + { + "-pivot_root", do_pivot_root, 3, 3, + "pivot the root file system", diff -urN /usr/ports/shells/sash/pkg-plist shells/sash/pkg-plist --- /usr/ports/shells/sash/pkg-plist 2014-01-23 04:17:52.000000000 +0900 +++ shells/sash/pkg-plist 2014-03-13 00:00:00.000000000 +0900 @@ -1,4 +1,4 @@ bin/sash +@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells ; rm -f /etc/shells.bak +@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells ; rm -f /etc/shells.bak man/man1/sash.1.gz -@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells -@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells >Release-Note: >Audit-Trail: >Unformatted: