Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  4 Mar 2013 15:31:02 +0800 (CST)
From:      Gasol Wu <gasol.wu@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        sunpoet@FreeBSD.org
Subject:   ports/176632: [PATCH] sysutils/moreutils: update to 0.47
Message-ID:  <20130304073102.668C175055B@goingmarry.kkbox.com>
Resent-Message-ID: <201303040740.r247e0AP088993@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176632
>Category:       ports
>Synopsis:       [PATCH] sysutils/moreutils: update to 0.47
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 04 07:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Gasol Wu
>Release:        FreeBSD 9.1-RC1 amd64
>Organization:
>Environment:
System: FreeBSD goingmarry 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012
>Description:
- Update to 0.47
- New header

Added file(s):
- .Makefile.swp
- files/errno.1

Port maintainer (sunpoet@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:

--- moreutils-0.47.patch begins here ---
Files /usr/ports/sysutils/moreutils/.Makefile.swp and ./.Makefile.swp differ
diff -ruN --exclude=CVS /usr/ports/sysutils/moreutils/Makefile ./Makefile
--- /usr/ports/sysutils/moreutils/Makefile	2012-11-17 14:01:39.000000000 +0800
+++ ./Makefile	2013-03-04 15:16:36.000000000 +0800
@@ -1,12 +1,9 @@
-# Ports collection makefile for:	moreutils
-# Date created:	16 June 2009
-# Whom:		Charlie Kester <corky1951@comcast.net>
-#
+# Created by: Charlie Kester <corky1951@comcast.net>
 # $FreeBSD: ports/sysutils/moreutils/Makefile,v 1.19 2012/11/17 06:01:39 svnexp Exp $
 #
 
 PORTNAME=	moreutils
-PORTVERSION=	0.46
+PORTVERSION=	0.47
 CATEGORIES=	sysutils
 MASTER_SITES=	DEBIAN_POOL
 DISTNAME=	${PORTNAME}_${PORTVERSION}
@@ -22,6 +19,7 @@
 
 PLIST_FILES=	bin/chronic \
 		bin/combine \
+		bin/errno \
 		bin/ifne \
 		bin/isutf8 \
 		bin/lckdo \
@@ -36,7 +34,8 @@
 .if !defined(NO_INSTALL_MANPAGES)
 ALL_TARGET+=	mans extraman
 
-CANNED_MAN=	ifne.1 \
+CANNED_MAN=	errno.1 \
+		ifne.1 \
 		isutf8.1 \
 		lckdo.1 \
 		mispipe.1 \
diff -ruN --exclude=CVS /usr/ports/sysutils/moreutils/distinfo ./distinfo
--- /usr/ports/sysutils/moreutils/distinfo	2012-04-17 00:44:57.000000000 +0800
+++ ./distinfo	2013-03-04 12:42:24.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (moreutils_0.46.tar.gz) = c46c60567964ca91238409a1793e9cae4bf31de08f57bfe2b99c40de1eecdcbe
-SIZE (moreutils_0.46.tar.gz) = 44132
+SHA256 (moreutils_0.47.tar.gz) = 277058c99d76c58f850f48dfbc1ad4a7a384f5b95f3569842ec4ce1c9f077266
+SIZE (moreutils_0.47.tar.gz) = 46115
diff -ruN --exclude=CVS /usr/ports/sysutils/moreutils/files/errno.1 ./files/errno.1
--- /usr/ports/sysutils/moreutils/files/errno.1	1970-01-01 08:00:00.000000000 +0800
+++ ./files/errno.1	2013-03-04 15:25:34.000000000 +0800
@@ -0,0 +1,43 @@
+.\" -*- coding: us-ascii -*-
+.if \n(.g .ds T< \\FC
+.if \n(.g .ds T> \\F[\n[.fam]]
+.de URL
+\\$2 \(la\\$1\(ra\\$3
+..
+.if \n(.g .mso www.tmac
+.TH errno 1 2012-06-05 "" ""
+.SH NAME
+errno \- look up errno names and descriptions
+.SH SYNOPSIS
+'nh
+.fi
+.ad l
+\fBerrno\fR \kx
+.if (\nx>(\n(.l/2)) .nr x (\n(.l/5)
+'in \n(.iu+\nxu
+[\fB"-l | --list"\fR] [\fB"-s | --search"\fR] [\fB"-S | --search-all-locales"\fR] [\fIname-or-code\fR\&...]
+'in \n(.iu-\nxu
+.ad b
+'hy
+.SH DESCRIPTION
+\fBerrno\fR looks up errno macro names, errno codes, and the
+corresponding descriptions.
+
+For example, if given ENOENT on a Linux system, it prints out the
+code 2 and the description "No such file or directory". If given
+the code 2, it printes ENOENT and the same description.
+.PP
+.SH "OPTIONS"
+.TP
+\*(T<\fB\-l\fR\*(T>, \*(T<\fB\-\-list\fR\*(T>
+List all errno values.
+.TP
+\*(T<\fB\-s\fR\*(T>, \*(T<\fB\-\-search\fR\*(T>
+Search for errors whose description contains all the given words (case-insensitive).
+.TP
+\*(T<\fB\-S\fR\*(T>, \*(T<\fB\-\-search-all-locales\fR\*(T>
+Like \fB--search\fP, but searches all installed locales.
+.SH "SEE ALSO"
+\fBerrno\fR(3)
+.SH AUTHOR
+Lars Wirzenius
diff -ruN --exclude=CVS /usr/ports/sysutils/moreutils/files/patch-Makefile ./files/patch-Makefile
--- /usr/ports/sysutils/moreutils/files/patch-Makefile	2010-12-17 00:31:11.000000000 +0800
+++ ./files/patch-Makefile	2013-03-04 15:19:44.000000000 +0800
@@ -1,42 +1,40 @@
---- ./Makefile.orig	2010-10-29 12:47:09.000000000 -0700
-+++ ./Makefile	2010-11-17 16:02:08.000000000 -0800
-@@ -1,51 +1,35 @@
--BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel
-+BINS=isutf8 ifne pee sponge mispipe lckdo
+--- ./Makefile.orig	2012-06-06 01:55:53.000000000 +0800
++++ ./Makefile	2013-03-04 15:19:26.000000000 +0800
+@@ -1,60 +1,39 @@
+-BINS=isutf8 ifdata ifne pee sponge mispipe lckdo parallel errno
++BINS=isutf8 ifne pee sponge mispipe lckdo errno
  PERLSCRIPTS=vidir vipe ts combine zrun chronic
--MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1
+-MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 chronic.1 mispipe.1 lckdo.1 parallel.1 errno.1
 -CFLAGS=-O2 -g -Wall
-+MANS=sponge.1 isutf8.1 ifne.1 pee.1 mispipe.1 lckdo.1
-+CFLAGS+= -Wall
++MANS=sponge.1 isutf8.1 ifne.1 pee.1 mispipe.1 lckdo.1 errno.1
++CFLAGS=-Wall
  INSTALL_BIN?=install -s
 -PREFIX=/usr
++DOCBOOK2XMAN= ${LOCALBASE}/bin/xsltproc ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
  
 -DOCBOOK2XMAN=docbook2x-man
-+
 +.SUFFIXES: .1 .docbook
-+
-+DOCBOOK2XMAN= ${LOCALBASE}/bin/xsltproc ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl
  
  all: $(BINS) $(MANS)
-+ 
-+bins: ${BINS}
+ 
++bins: errnos.h ${BINS}
 +
 +mans: ${MANS}
- 
++
  clean:
- 	rm -f $(BINS) $(MANS)
+ 	rm -f $(BINS) $(MANS) dump.c errnos.h errno.o
  
  install:
 -	mkdir -p $(DESTDIR)$(PREFIX)/bin
 -	$(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin
 -	install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin
+-	
+-	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
+-	install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
 +	mkdir -p $(PREFIX)/bin
 +	$(INSTALL_BIN) $(BINS) $(PREFIX)/bin
 +	install $(PERLSCRIPTS) $(PREFIX)/bin
- 	
--	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
--	install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1
--
+ 
  check: isutf8
  	./check-isutf8
  
@@ -60,12 +58,21 @@
 -
 -lckdo.1: lckdo.docbook
 -	$(DOCBOOK2XMAN) $<
--
--parallel.1: parallel.docbook
--	$(DOCBOOK2XMAN) $<
 +.docbook.1:
 +	$(DOCBOOK2XMAN) ${.IMPSRC}
  
+-parallel.1: parallel.docbook
+-	$(DOCBOOK2XMAN) $<
+-	
+ errno.o: errnos.h
+ errnos.h:
+ 	echo '#include <errno.h>' > dump.c
+ 	$(CC) -E -dD dump.c | awk '/^#define E/ { printf "{\"%s\",%s},\n", $$2, $$2 }' > errnos.h
+ 	rm -f dump.c
+-	
+-errno.1: errno.docbook
+-	$(DOCBOOK2XMAN) $<
+ 
 -%.1: %
 -	pod2man --center=" " --release="moreutils" $< > $@;
 +extraman: ${PERLSCRIPTS}
--- moreutils-0.47.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130304073102.668C175055B>