[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1011024: autoconf: if 0, SUBDIRS = a distributes EXTRA_DIST; if 0, include a/Makefile.am doesn't



Package: autoconf
Version: 2.71-2
Version: 2.69-14
Severity: normal

Dear Maintainer,

When SUBDIRS =ed in a false conditional, a subdirectory's:
  * program sources
  * EXTRA_DIST
end up in make dist.

When included in a false conditional, a Makefile.am's:
  * program sources
end up in make dist, but EXTRA_DIST is ignored.

That is, given [1] with the only diff being SUBDIRS/include [2],
the diff of tar -taf is
  diff --git a/SUBDIRS.tar.gz.list b/include.tar.gz.list
  index ea08d75..c938d6d 100644
  --- a/SUBDIRS.tar.gz.list
  +++ b/include.tar.gz.list
  @@ -1,10 +1,8 @@
   report-0.0.0/
   report-0.0.0/a/
   report-0.0.0/a/amongus.c
  -report-0.0.0/a/amongus.jpeg
   report-0.0.0/aclocal.m4
   report-0.0.0/a/Makefile.am
  -report-0.0.0/a/Makefile.in
   report-0.0.0/compile
   report-0.0.0/config.guess
   report-0.0.0/config.sub

With SUBDIRS =, the only CONFIG_FALSE-dependent line is
  @CONFIG_FALSE@SUBDIRS = a
in Makefile.in; with include, there's
  @CONFIG_FALSE@a_PROGRAMS = a/amongus$(EXEEXT)
  @CONFIG_FALSE@adir = /
  @CONFIG_FALSE@EXTRA_DIST = a/amongus.jpeg
the first two are correct, the third isn't.

Best,
наб

This is a forward of OpenZFS bug #13459:
  https://github.com/openzfs/zfs/issues/13459

-- System Information:
Debian Release: 11.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-14-amd64 (SMP w/24 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autoconf depends on:
ii  debianutils  4.11.2
ii  m4           1.4.18-5
ii  perl         5.32.1-4+deb11u2

Versions of packages autoconf recommends:
ii  automake [automaken]  1:1.16.3-2

Versions of packages autoconf suggests:
ii  autoconf-archive  20190106-2.1
pn  autoconf-doc      <none>
ii  gettext           0.21-4
pn  gnu-standards     <none>
ii  libtool           2.4.6-15

-- no debconf information

Attachment: sharIP32nYvU4T.shar
Description: Unix shell archive

diff --git a/SUBDIRS/Makefile.am b/include/Makefile.am
index 541531d..2e8b8de 100644
--- a/SUBDIRS/Makefile.am
+++ b/include/Makefile.am
@@ -1,3 +1,3 @@
 if CONFIG_FALSE
-SUBDIRS = a
+include $(srcdir)/%D%/a/Makefile.am
 endif

Attachment: signature.asc
Description: PGP signature


Reply to: