Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Sep 2019 17:18:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        multimedia@FreeBSD.org
Subject:   [Bug 226731] Some port manual pages include version number in filename, breaking intuitive man use
Message-ID:  <bug-226731-12827-83XVgugV76@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-226731-12827@https.bugs.freebsd.org/bugzilla/>
References:  <bug-226731-12827@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D226731

--- Comment #5 from Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> ---
(In reply to freebsd from comment #0)
> I don't have all that many installed, so I have no idea what the
> extent of the problem is

I guess mostly the Makefile or Makefile.in files.

example for autoconf:

+--- man/Makefile.in.orig       2019-09-06 16:15:02 UTC
++++ man/Makefile.in
+@@ -252,9 +252,7 @@ install-man1: $(dist_man_MANS)
+         if test -f $$p; then d=3D; else d=3D"$(srcdir)/"; fi; \
+         echo "$$d$$p"; echo "$$p"; \
+       done | \
i=3D> +-      sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
i=3D> +-            -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
=3D>+-      sed 'N;N;s,\n, ,g' | { \
++      { \
+       list=3D; while read file base inst; do \
+         if test "$$base" =3D "$$inst"; then list=3D"$$list $$file"; else \
+           echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'";=
 \

(needs pkg-plist change)

or automake

---- Makefile.in.orig   2018-03-11 21:21:08 UTC
+--- Makefile.in.orig   2019-09-06 16:48:14 UTC
 +++ Makefile.in
-@@ -3690,9 +3690,9 @@ doc/aclocal.1 doc/automake.1:
+@@ -2735,9 +2735,7 @@ install-man1: $(man1_MANS)
+         if test -f $$p; then d=3D; else d=3D"$(srcdir)/"; fi; \
+         echo "$$d$$p"; echo "$$p"; \
+       done | \
=3D> +-      sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
=3D> +-            -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
=3D> +-      sed 'N;N;s,\n, ,g' | { \
++      { \
+       list=3D; while read file base inst; do \
+         if test "$$base" =3D "$$inst"; then list=3D"$$list $$file"; else \
+           echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'";=
 \
+@@ -3690,9 +3688,9 @@ doc/aclocal.1 doc/automake.1:
          && echo ".so man1/$$f-$(APIVERSION).1" > $@

  doc/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm

(needs no pkg-plist change)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-226731-12827-83XVgugV76>