Date: Tue, 05 Nov 2024 00:36:49 +0100 From: Daniel Engberg <daniel.engberg.lists@pyret.net> To: Po-Chuan Hsieh <sunpoet@freebsd.org> Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org, Michael Osipov <michaelo@FreeBSD.org> Subject: Re: git: 4ddfd281f8eb - main - misc/getopt: Re-add getopt 1.1.6 Message-ID: <5ab861b2b17b8c2e8b78a78633a1a3c8@mail.infomaniak.com> In-Reply-To: <CAMHz58QA%2BeU4KxhbQUvLFSgLo6wkjk3Uvq72n4KPN7T=Bhq1sQ@mail.gmail.com> References: <202411031150.4A3BoQui041672@gitrepo.freebsd.org> <de4e3d3e0c728badc45593c50684b3df@mail.infomaniak.com> <CAMHz58QA%2BeU4KxhbQUvLFSgLo6wkjk3Uvq72n4KPN7T=Bhq1sQ@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 2024-11-03T20:38:16.000+01:00, Po-Chuan Hsieh <sunpoet@freebsd.org> wrote: > On Sun, Nov 3, 2024 at 8:30 PM Daniel Engberg < > > daniel.engberg.lists@pyret.net> wrote: > >> On 2024-11-03T12:50:26.000+01:00, Po-Chuan Hsieh >> <sunpoet@FreeBSD.org> >> >> wrote: >> >> The branch main has been updated by sunpoet: >> >> URL: >> https://cgit.FreeBSD.org/ports/commit/?id=4ddfd281f8eb07657fd1e268fed59478a4a2ce38 >> >> commit 4ddfd281f8eb07657fd1e268fed59478a4a2ce38 >> >> Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> >> >> AuthorDate: 2024-11-03 11:34:23 +0000 >> >> Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> >> >> CommitDate: 2024-11-03 11:34:23 +0000 >> >> misc/getopt: Re-add getopt 1.1.6 >> >> PR: 281625 >> >> --- >> >> MOVED | 1 - >> >> misc/Makefile | 1 + >> >> misc/getopt/Makefile | 38 +++++++++++++++++++++++++++++++ >> >> misc/getopt/distinfo | 3 +++ >> >> misc/getopt/files/patch-Makefile | 49 >> ++++++++++++++++++++++++++++++++++++++++ >> >> misc/getopt/pkg-descr | 11 +++++++++ >> >> misc/getopt/pkg-plist | 28 +++++++++++++++++++++++ >> >> 7 files changed, 130 insertions(+), 1 deletion(-) >> >> diff --git a/MOVED b/MOVED >> >> index 7d96a4d146ee..6d75cf949f97 100644 >> >> --- a/MOVED >> >> +++ b/MOVED >> >> @@ -3577,4 +3577,3 @@ misc/uk-phone||2024-10-31|Has expired: >> Obsolete, 20+ year old data >> >> textproc/ssddiff||2024-10-31|Has expired: Abandonware, >> unfetchable and upstream is gone >> >> sysutils/pydf||2024-11-02|Has expired: Inactive upstream. Does >> not properly work on FreeBSD >> >> ports-mgmt/freebsd-bugzilla-cli||2024-11-02|Has expired: Broken. >> Upstream unavailable >> >> -misc/getopt||2024-11-02|Has expired: Use getopt from >> devel/util-linux instead >> >> diff --git a/misc/Makefile b/misc/Makefile >> >> index f6b464417a65..34195fc80e54 100644 >> >> --- a/misc/Makefile >> >> +++ b/misc/Makefile >> >> @@ -152,6 +152,7 @@ >> >> SUBDIR += g810-led >> >> SUBDIR += gedkeeper >> >> SUBDIR += geekcode >> >> + SUBDIR += getopt >> >> SUBDIR += gimp-help-en >> >> SUBDIR += gkrellm-gamma >> >> SUBDIR += gkrellm-xkb >> >> diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile >> >> new file mode 100644 >> >> index 000000000000..7dcb45220b28 >> >> --- /dev/null >> >> +++ b/misc/getopt/Makefile >> >> @@ -0,0 +1,38 @@ >> >> +PORTNAME= getopt >> >> +PORTVERSION= 1.1.6 >> >> +PORTREVISION= 1 >> >> +CATEGORIES= misc >> >> +MASTER_SITES= >> http://frodo.looijaard.name/system/files/software/getopt/ \ >> >> + LOCAL/sunpoet >> >> + >> >> +MAINTAINER= sunpoet@FreeBSD.org >> >> +COMMENT= Replacement for getopt(1) that supports GNU-style long >> options >> >> +WWW= https://software.frodo.looijaard.name/getopt/ >> >> + >> >> +LICENSE= GPLv2 GPLv3 >> >> +LICENSE_COMB= dual >> >> + >> >> +DEPRECATED= Use getopt from devel/util-linux instead >> >> +EXPIRATION_DATE=2024-10-31 >> >> + >> >> +OPTIONS_DEFINE= DOCS NLS >> >> +OPTIONS_SUB= yes >> >> + >> >> +MAKE_ARGS= CC=${CC} LIBCGETOPT=0 >> >> +USES= gmake >> >> + >> >> +PORTDOCS= Changelog README >> >> + >> >> +NLS_MAKE_ARGS= WITHOUT_GETTEXT=0 >> >> +NLS_MAKE_ARGS_OFF= WITHOUT_GETTEXT=1 >> >> +NLS_LDFLAGS= -lintl >> >> +NLS_USES= gettext localbase:ldflags >> >> + >> >> +post-install: >> >> + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt >> >> + >> >> +post-install-DOCS-on: >> >> + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ >> >> + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} >> ${STAGEDIR}${DOCSDIR}/ >> >> + >> >> +.include <bsd.port.mk> [http://bsd.port.mk>]; >> <http://bsd.port.mk%3E> [http://bsd.port.mk%3E>];; >> >> diff --git a/misc/getopt/distinfo b/misc/getopt/distinfo >> >> new file mode 100644 >> >> index 000000000000..649952d571db >> >> --- /dev/null >> >> +++ b/misc/getopt/distinfo >> >> @@ -0,0 +1,3 @@ >> >> +TIMESTAMP = 1730633654 >> >> +SHA256 (getopt-1.1.6.tar.gz) = >> d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe >> >> +SIZE (getopt-1.1.6.tar.gz) = 58926 >> >> diff --git a/misc/getopt/files/patch-Makefile >> b/misc/getopt/files/patch-Makefile >> >> new file mode 100644 >> >> index 000000000000..3383ee09c28f >> >> --- /dev/null >> >> +++ b/misc/getopt/files/patch-Makefile >> >> @@ -0,0 +1,49 @@ >> >> +--- Makefile.orig 2014-11-24 12:33:39 UTC >> >> ++++ Makefile >> >> +@@ -1,9 +1,9 @@ DESTDIR= >> >> + .SUFFIXES: >> >> + >> >> + DESTDIR= >> >> +-prefix=/usr/local >> >> ++prefix=$(PREFIX) >> >> + bindir=$(prefix)/bin >> >> +-mandir=$(prefix)/man >> >> ++mandir=$(prefix)/share/man >> >> + man1dir=$(mandir)/man1 >> >> + sharedir=$(prefix)/share >> >> + getoptdir=$(sharedir)/getopt >> >> +@@ -32,18 +32,15 @@ MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) >> >> + LANGUAGES = ca cs da de es et eu fi fr gl hr hu id it ja nl pl >> pt_BR ru sl sv tr uk vi zh_CN zh_TW >> >> + MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES)) >> >> + >> >> +-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) >> -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" >> -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" >> -Dprogram_version=\"$(VERSION)\" >> >> ++CPPFLAGS+=-DLIBCGETOPT=$(LIBCGETOPT) >> -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" >> -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" >> -Dprogram_version=\"$(VERSION)\" >> >> + ifeq ($(LIBCGETOPT),0) >> >> +-CPPFLAGS+=-I./gnu >> >> ++CPPFLAGS+=-I./gnu >> >> + endif >> >> + WARNINGS=-Wall \ >> >> + -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \ >> >> + -Wcast-align -Wmissing-declarations \ >> >> + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ >> >> + -Wnested-externs -Winline >> >> +-OPTIMIZE=-O3 -fno-strength-reduce >> >> +-CFLAGS=$(WARNINGS) $(OPTIMIZE) >> >> +-LDFLAGS= >> >> + >> >> + sources=getopt.c >> >> + ifeq ($(LIBCGETOPT),0) >> >> +@@ -54,11 +51,11 @@ binaries=getopt >> >> + >> >> + binaries=getopt >> >> + >> >> +-.PHONY: all clean realclean >> >> ++.PHONY: all clean realclean >> >> + all: $(binaries) all_po >> >> + >> >> + clean: clean_po >> >> +- -$(RM) $(objects) $(binaries) >> >> ++ -$(RM) $(objects) $(binaries) >> >> + >> >> + getopt: $(objects) >> >> + $(CC) $(LDFLAGS) -o $@ $(objects) >> >> diff --git a/misc/getopt/pkg-descr b/misc/getopt/pkg-descr >> >> new file mode 100644 >> >> index 000000000000..799c23ba34c8 >> >> --- /dev/null >> >> +++ b/misc/getopt/pkg-descr >> >> @@ -0,0 +1,11 @@ >> >> +Rewrite of getopt(1) with the following features: >> >> + >> >> +* It can do anything that the GNU getopt(3) routines can do. >> >> +* It can cope with spaces and shell metacharacters within >> arguments. >> >> +* It can parse long parameters. >> >> +* It can shuffle parameters, so you can mix options and other >> parameters >> >> + on the command-line. >> >> +* It can be easily identified as an enhanced getopt(1) from >> within shell >> >> + scripts. >> >> +* It can report parse errors as coming from the shell script. >> >> +* It compiles cleanly with both libc-5 and glibc-2. >> >> diff --git a/misc/getopt/pkg-plist b/misc/getopt/pkg-plist >> >> new file mode 100644 >> >> index 000000000000..c1a68f51212d >> >> --- /dev/null >> >> +++ b/misc/getopt/pkg-plist >> >> @@ -0,0 +1,28 @@ >> >> +bin/getopt >> >> +%%NLS%%share/locale/ca/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/cs/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/da/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/de/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/es/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/et/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/eu/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/fi/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/fr/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/gl/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/hr/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/hu/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/id/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/it/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/ja/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/nl/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/pl/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/pt_BR/LC_MESSAGES/getopt.mo >> [http://getopt.mo] >> >> +%%NLS%%share/locale/ru/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/sl/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/sv/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/tr/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/uk/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/vi/LC_MESSAGES/getopt.mo [http://getopt.mo] >> >> +%%NLS%%share/locale/zh_CN/LC_MESSAGES/getopt.mo >> [http://getopt.mo] >> >> +%%NLS%%share/locale/zh_TW/LC_MESSAGES/getopt.mo >> [http://getopt.mo] >> >> +share/man/man1/getopt.1.gz >> >> Hi, >> >> Versioning is incorrect >> >> work/stage/usr/local/bin/getopt -V >> >> getopt from util-linux 2.39.4 >> >> This approach is also bound to get unsynced with util-linux, if >> anything >> >> it should be a slave port until subpackages are usable. >> >> Best regards, >> >> Daniel > > Why should this port get in sync with util-linux port? Hi, Because one would assume that we keep util-linux in sync within the tree, avoid unnecessary compatibility issues and not waste bandwidth downloading multiple release archives of the same project? Best regards, Daniel [-- Attachment #2 --] <html><body><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">On 2024-11-03T20:38:16.000+01:00, Po-Chuan Hsieh <sunpoet@freebsd.org> wrote:<br></div><div class="ik_mail_quote answerContentMessage"><blockquote class="ws-ng-quote"><pre style="white-space: normal;"><div>On Sun, Nov 3, 2024 at 8:30 PM Daniel Engberg <<br></div><div><a class="defaultMailLink" href="mailto:daniel.engberg.lists@pyret.net">daniel.engberg.lists@pyret.net</a>> wrote:<br></div><div><br></div><blockquote class="ws-ng-quote"><div> On 2024-11-03T12:50:26.000+01:00, Po-Chuan Hsieh <<a class="defaultMailLink" href="mailto:sunpoet@FreeBSD.org">sunpoet@FreeBSD.org</a>><br></div><div> wrote:<br></div><div><br></div><div><br></div><div> The branch main has been updated by sunpoet:<br></div><div><br></div><div> URL: <a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="https://cgit.FreeBSD.org/ports/commit/?id=4ddfd281f8eb07657fd1e268fed59478a4a2ce38" target="_blank">https://cgit.FreeBSD.org/ports/commit/?id=4ddfd281f8eb07657fd1e268fed59478a4a2ce38</a><br></div><div><br></div><div> commit 4ddfd281f8eb07657fd1e268fed59478a4a2ce38<br></div><div> Author: Po-Chuan Hsieh <<a class="defaultMailLink" href="mailto:sunpoet@FreeBSD.org">sunpoet@FreeBSD.org</a>><br></div><div> AuthorDate: 2024-11-03 11:34:23 +0000<br></div><div> Commit: Po-Chuan Hsieh <<a class="defaultMailLink" href="mailto:sunpoet@FreeBSD.org">sunpoet@FreeBSD.org</a>><br></div><div> CommitDate: 2024-11-03 11:34:23 +0000<br></div><div><br></div><div> misc/getopt: Re-add getopt 1.1.6<br></div><div><br></div><div> PR: 281625<br></div><div> ---<br></div><div> MOVED | 1 -<br></div><div> misc/Makefile | 1 +<br></div><div> misc/getopt/Makefile | 38 +++++++++++++++++++++++++++++++<br></div><div> misc/getopt/distinfo | 3 +++<br></div><div> misc/getopt/files/patch-Makefile | 49 ++++++++++++++++++++++++++++++++++++++++<br></div><div> misc/getopt/pkg-descr | 11 +++++++++<br></div><div> misc/getopt/pkg-plist | 28 +++++++++++++++++++++++<br></div><div> 7 files changed, 130 insertions(+), 1 deletion(-)<br></div><div><br></div><div> diff --git a/MOVED b/MOVED<br></div><div> index 7d96a4d146ee..6d75cf949f97 100644<br></div><div> --- a/MOVED<br></div><div> +++ b/MOVED<br></div><div> @@ -3577,4 +3577,3 @@ misc/uk-phone||2024-10-31|Has expired: Obsolete, 20+ year old data<br></div><div> textproc/ssddiff||2024-10-31|Has expired: Abandonware, unfetchable and upstream is gone<br></div><div> sysutils/pydf||2024-11-02|Has expired: Inactive upstream. Does not properly work on FreeBSD<br></div><div> ports-mgmt/freebsd-bugzilla-cli||2024-11-02|Has expired: Broken. Upstream unavailable<br></div><div> -misc/getopt||2024-11-02|Has expired: Use getopt from devel/util-linux instead<br></div><div> diff --git a/misc/Makefile b/misc/Makefile<br></div><div> index f6b464417a65..34195fc80e54 100644<br></div><div> --- a/misc/Makefile<br></div><div> +++ b/misc/Makefile<br></div><div> @@ -152,6 +152,7 @@<br></div><div> SUBDIR += g810-led<br></div><div> SUBDIR += gedkeeper<br></div><div> SUBDIR += geekcode<br></div><div> + SUBDIR += getopt<br></div><div> SUBDIR += gimp-help-en<br></div><div> SUBDIR += gkrellm-gamma<br></div><div> SUBDIR += gkrellm-xkb<br></div><div> diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile<br></div><div> new file mode 100644<br></div><div> index 000000000000..7dcb45220b28<br></div><div> --- /dev/null<br></div><div> +++ b/misc/getopt/Makefile<br></div><div> @@ -0,0 +1,38 @@<br></div><div> +PORTNAME= getopt<br></div><div> +PORTVERSION= 1.1.6<br></div><div> +PORTREVISION= 1<br></div><div> +CATEGORIES= misc<br></div><div> +MASTER_SITES= <a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://frodo.looijaard.name/system/files/software/getopt/" target="_blank">http://frodo.looijaard.name/system/files/software/getopt/</a> \<br></div><div> + LOCAL/sunpoet<br></div><div> +<br></div><div> +MAINTAINER= <a class="defaultMailLink" href="mailto:sunpoet@FreeBSD.org">sunpoet@FreeBSD.org</a><br></div><div> +COMMENT= Replacement for getopt(1) that supports GNU-style long options<br></div><div> +WWW= <a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="https://software.frodo.looijaard.name/getopt/" target="_blank">https://software.frodo.looijaard.name/getopt/</a><br></div><div> +<br></div><div> +LICENSE= GPLv2 GPLv3<br></div><div> +LICENSE_COMB= dual<br></div><div> +<br></div><div> +DEPRECATED= Use getopt from devel/util-linux instead<br></div><div> +EXPIRATION_DATE=2024-10-31<br></div><div> +<br></div><div> +OPTIONS_DEFINE= DOCS NLS<br></div><div> +OPTIONS_SUB= yes<br></div><div> +<br></div><div> +MAKE_ARGS= CC=${CC} LIBCGETOPT=0<br></div><div> +USES= gmake<br></div><div> +<br></div><div> +PORTDOCS= Changelog README<br></div><div> +<br></div><div> +NLS_MAKE_ARGS= WITHOUT_GETTEXT=0<br></div><div> +NLS_MAKE_ARGS_OFF= WITHOUT_GETTEXT=1<br></div><div> +NLS_LDFLAGS= -lintl<br></div><div> +NLS_USES= gettext localbase:ldflags<br></div><div> +<br></div><div> +post-install:<br></div><div> + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt<br></div><div> +<br></div><div> +post-install-DOCS-on:<br></div><div> + ${MKDIR} ${STAGEDIR}${DOCSDIR}/<br></div><div> + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/<br></div><div> +<br></div><div> +.include <<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://bsd.port.mk>" target="_blank">bsd.port.mk></a>; <<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://bsd.port.mk%3E>" target="_blank">http://bsd.port.mk%3E></a>;;<br></div><div> diff --git a/misc/getopt/distinfo b/misc/getopt/distinfo<br></div><div> new file mode 100644<br></div><div> index 000000000000..649952d571db<br></div><div> --- /dev/null<br></div><div> +++ b/misc/getopt/distinfo<br></div><div> @@ -0,0 +1,3 @@<br></div><div> +TIMESTAMP = 1730633654<br></div><div> +SHA256 (getopt-1.1.6.tar.gz) = d0bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe<br></div><div> +SIZE (getopt-1.1.6.tar.gz) = 58926<br></div><div> diff --git a/misc/getopt/files/patch-Makefile b/misc/getopt/files/patch-Makefile<br></div><div> new file mode 100644<br></div><div> index 000000000000..3383ee09c28f<br></div><div> --- /dev/null<br></div><div> +++ b/misc/getopt/files/patch-Makefile<br></div><div> @@ -0,0 +1,49 @@<br></div><div> +--- Makefile.orig 2014-11-24 12:33:39 UTC<br></div><div> ++++ Makefile<br></div><div> +@@ -1,9 +1,9 @@ DESTDIR=<br></div><div> + .SUFFIXES:<br></div><div> +<br></div><div> + DESTDIR=<br></div><div> +-prefix=/usr/local<br></div><div> ++prefix=$(PREFIX)<br></div><div> + bindir=$(prefix)/bin<br></div><div> +-mandir=$(prefix)/man<br></div><div> ++mandir=$(prefix)/share/man<br></div><div> + man1dir=$(mandir)/man1<br></div><div> + sharedir=$(prefix)/share<br></div><div> + getoptdir=$(sharedir)/getopt<br></div><div> +@@ -32,18 +32,15 @@ MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))<br></div><div> + LANGUAGES = ca cs da de es et eu fi fr gl hr hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_TW<br></div><div> + MOFILES:=$(patsubst %,po/%.mo,$(LANGUAGES))<br></div><div> +<br></div><div> +-CPPFLAGS=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"<br></div><div> ++CPPFLAGS+=-DLIBCGETOPT=$(LIBCGETOPT) -DWITHOUT_GETTEXT=$(WITHOUT_GETTEXT) -DLOCALEDIR=\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name=\"$(PACKAGE)\" -Dprogram_version=\"$(VERSION)\"<br></div><div> + ifeq ($(LIBCGETOPT),0)<br></div><div> +-CPPFLAGS+=-I./gnu<br></div><div> ++CPPFLAGS+=-I./gnu<br></div><div> + endif<br></div><div> + WARNINGS=-Wall \<br></div><div> + -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \<br></div><div> + -Wcast-align -Wmissing-declarations \<br></div><div> + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \<br></div><div> + -Wnested-externs -Winline<br></div><div> +-OPTIMIZE=-O3 -fno-strength-reduce<br></div><div> +-CFLAGS=$(WARNINGS) $(OPTIMIZE)<br></div><div> +-LDFLAGS=<br></div><div> +<br></div><div> + sources=getopt.c<br></div><div> + ifeq ($(LIBCGETOPT),0)<br></div><div> +@@ -54,11 +51,11 @@ binaries=getopt<br></div><div> +<br></div><div> + binaries=getopt<br></div><div> +<br></div><div> +-.PHONY: all clean realclean<br></div><div> ++.PHONY: all clean realclean<br></div><div> + all: $(binaries) all_po<br></div><div> +<br></div><div> + clean: clean_po<br></div><div> +- -$(RM) $(objects) $(binaries)<br></div><div> ++ -$(RM) $(objects) $(binaries)<br></div><div> +<br></div><div> + getopt: $(objects)<br></div><div> + $(CC) $(LDFLAGS) -o $@ $(objects)<br></div><div> diff --git a/misc/getopt/pkg-descr b/misc/getopt/pkg-descr<br></div><div> new file mode 100644<br></div><div> index 000000000000..799c23ba34c8<br></div><div> --- /dev/null<br></div><div> +++ b/misc/getopt/pkg-descr<br></div><div> @@ -0,0 +1,11 @@<br></div><div> +Rewrite of getopt(1) with the following features:<br></div><div> +<br></div><div> +* It can do anything that the GNU getopt(3) routines can do.<br></div><div> +* It can cope with spaces and shell metacharacters within arguments.<br></div><div> +* It can parse long parameters.<br></div><div> +* It can shuffle parameters, so you can mix options and other parameters<br></div><div> + on the command-line.<br></div><div> +* It can be easily identified as an enhanced getopt(1) from within shell<br></div><div> + scripts.<br></div><div> +* It can report parse errors as coming from the shell script.<br></div><div> +* It compiles cleanly with both libc-5 and glibc-2.<br></div><div> diff --git a/misc/getopt/pkg-plist b/misc/getopt/pkg-plist<br></div><div> new file mode 100644<br></div><div> index 000000000000..c1a68f51212d<br></div><div> --- /dev/null<br></div><div> +++ b/misc/getopt/pkg-plist<br></div><div> @@ -0,0 +1,28 @@<br></div><div> +bin/getopt<br></div><div> +%%NLS%%share/locale/ca/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/cs/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/da/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/de/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/es/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/et/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/eu/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/fi/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/fr/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/gl/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/hr/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/hu/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/id/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/it/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/ja/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/nl/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/pl/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/pt_BR/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/ru/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/sl/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/sv/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/tr/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/uk/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/vi/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/zh_CN/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +%%NLS%%share/locale/zh_TW/LC_MESSAGES/<a data-ik="ik-secure" rel="noopener noreferrer" class="defaultMailLink" href="http://getopt.mo" target="_blank">getopt.mo</a><br></div><div> +share/man/man1/getopt.1.gz<br></div><div><br></div><div> Hi,<br></div><div><br></div><div> Versioning is incorrect<br></div><div><br></div><div> work/stage/usr/local/bin/getopt -V<br></div><div> getopt from util-linux 2.39.4<br></div><div><br></div><div> This approach is also bound to get unsynced with util-linux, if anything<br></div><div> it should be a slave port until subpackages are usable.<br></div><div><br></div><div> Best regards,<br></div><div> Daniel<br></div></blockquote><div> <br></div><div>Why should this port get in sync with util-linux port?<br></div></pre></blockquote></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">Hi,<br></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px"><br></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">Because one would assume that we keep util-linux in sync within the tree, avoid unnecessary compatibility issues and not waste bandwidth downloading multiple release archives of the same project?<br></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px"><br></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">Best regards,<br></div><div style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px">Daniel<br></div></body></html>home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5ab861b2b17b8c2e8b78a78633a1a3c8>
