Jeremie Courreges-Anglas:

> - use gmake so that the build system doesn't try to foolishly rebuild
>   the .info files.

What happens is that defs.inc is regenerated, and it is a prerequisite
of gnupg.texi.  With -dm, our make(1) says...

Examining gnupg.texi...modified 10:28:39.000000000 Apr 04, 2023...modified 
before source(defs.inc)...out-of-date.
Examining ./gnupg.info...modified 10:57:13.000000000 Jun 30, 2023...modified 
before source(gnupg.texi)...out-of-date.

... and then proceeds to rebuild gnupg.info.

gmake -d agrees on the outdatedness...

  Finished prerequisites of target file 'gnupg.texi'.
   Prerequisite 'defs.inc' is newer than target 'gnupg.texi'.
  No recipe for 'gnupg.texi' and no prerequisites actually changed.

... but as there's no recipe to rebuild gnupg.texi, this does not
carry forward to gnupg.info.

The upstream commit that introduced the prerequisite is unhelpful:
build: Avoid dependecy problems in "make distcheck".
https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gnupg.git;a=commitdiff;h=0f61599ed0bd1cc6842067d040bb58ec0a451715

Dropping that line would remove the need for gmake, but I don't know
if that's worth the head scratching.

diff /usr/ports
commit - 2ad0013d0cd31dea57a335daa4dfb99aa7d9da87
path + /usr/ports
blob - d781ff0ad99af326e6e6ba127943dcc94983bb41
file + security/gnupg/Makefile
--- security/gnupg/Makefile
+++ security/gnupg/Makefile
@@ -23,7 +23,6 @@ USE_GMAKE =           Yes
 FLAVORS =              ldap
 FLAVOR ?=
 
-USE_GMAKE =            Yes
 LIB_DEPENDS =          archivers/bzip2 \
                        databases/sqlite3 \
                        devel/gettext,-runtime \
blob - /dev/null
file + security/gnupg/patches/patch-doc_Makefile_in (mode 644)
--- /dev/null
+++ security/gnupg/patches/patch-doc_Makefile_in
@@ -0,0 +1,12 @@
+Index: doc/Makefile.in
+--- doc/Makefile.in.orig
++++ doc/Makefile.in
+@@ -1159,7 +1159,7 @@ uninstall-man: uninstall-man1 uninstall-man7 uninstall
+ @HAVE_W32_SYSTEM_TRUE@.rc.o:
+ @HAVE_W32_SYSTEM_TRUE@        $(WINDRES) $(DEFAULT_INCLUDES) $(INCLUDES) "$<" 
"$@"
+ 
+-gnupg.texi : defs.inc
++#gnupg.texi : defs.inc
+ 
+ yat2m: yat2m.c
+       $(CC_FOR_BUILD) -o $@ $(srcdir)/yat2m.c
-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to