Bug#964230: debhelper: dh_missing conflicts with global --sourcedir option

2020-07-04 Thread Thorsten Glaser
Niels Thykier dixit:

>Historical artefact caused by debhelper accepting abbreviations of the

Interesting, but I looked at debhelper(7):

   -Ddirectory, --sourcedir=directory, --sourcedirectory=directory
   Assume that the original package source tree is at the specified
   directory rather than the top level directory of the Debian source
   package tree.

The documentor probably wasn’t aware of the clash.

>Anyhow, based on your report, you can probably resolve this by using
>--sourcedirectory=thatsubdir.  The longer form is *only* accepted by the
>dh_auto_* tools (making dh_install/dh_missing ignore it).

Ah okay. I’ve used -D for now (managed to get it packaged yesterday),
does _that_ clash anywhere? ;-)

>Sadly, --destdir is also taken... by dh_builddir. >.>

Ah okay.

>Indeed, it might be overdue to clean up this ancient clashes.

Probably for the best.

Thanks,
//mirabilos
-- 
15:41⎜ Somebody write a testsuite for helloworld :-)



Bug#964230: debhelper: dh_missing conflicts with global --sourcedir option

2020-07-03 Thread Niels Thykier
Thorsten Glaser:
> Package: debhelper
> Version: 13.1
> Severity: important
> 
> Something for debhelper compat 14 ;-)
> 
> I’m packaging a piece of s…oftware whose main buildsystem entry
> is in a subdirectory so I’m using --sourcedir=thatsubdir in the
> call to dh7.
> 
> The build then fails because dh_missing complains about every
> file in the tree being not installed. Looking at its manpage
> it abuses --sourcedir for something with completely different
> semantics.
> 

Historical artefact caused by debhelper accepting abbreviations of the
full parameters, which causes this issue.  Honestly, I am not sure
whether dh_install's --sourcedir or dh_auto_* --sourcedir (via
autoabbrev) came first.

Anyhow, based on your report, you can probably resolve this by using
--sourcedirectory=thatsubdir.  The longer form is *only* accepted by the
dh_auto_* tools (making dh_install/dh_missing ignore it).

> I’d have expected something else, like --destdir or, with BSD
> ports terminology, --fakedir, or so.
> 

Sadly, --destdir is also taken... by dh_builddir. >.>

> Of course, dh_missing’s --sourcedir cannot be renamed within
> a compat level. But it should, for the next one.
> 
> [...]
Indeed, it might be overdue to clean up this ancient clashes.

~Niels



Bug#964230: debhelper: dh_missing conflicts with global --sourcedir option

2020-07-03 Thread Thorsten Glaser
On Fri, 3 Jul 2020, Thorsten Glaser wrote:

> Of course, dh_missing’s --sourcedir cannot be renamed within
> a compat level. But it should, for the next one.

Others, like dh_install, also misuse --sourcedir.

bye,
//mirabilos
-- 
«MyISAM tables -will- get corrupted eventually. This is a fact of life. »
“mysql is about as much database as ms access” – “MSSQL at least descends
from a database” “it's a rebranded SyBase” “MySQL however was born from a
flatfile and went downhill from there” – “at least jetDB doesn’t claim to
be a database”  (#nosec)‣‣‣ Please let MySQL and MariaDB finally die!



Bug#964230: debhelper: dh_missing conflicts with global --sourcedir option

2020-07-03 Thread Thorsten Glaser
Package: debhelper
Version: 13.1
Severity: important

Something for debhelper compat 14 ;-)

I’m packaging a piece of s…oftware whose main buildsystem entry
is in a subdirectory so I’m using --sourcedir=thatsubdir in the
call to dh7.

The build then fails because dh_missing complains about every
file in the tree being not installed. Looking at its manpage
it abuses --sourcedir for something with completely different
semantics.

I’d have expected something else, like --destdir or, with BSD
ports terminology, --fakedir, or so.

Of course, dh_missing’s --sourcedir cannot be renamed within
a compat level. But it should, for the next one.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'oldstable-updates'), (500, 
'buildd-unstable'), (500, 'unstable'), (500, 'oldstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.6.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages debhelper depends on:
ii  autotools-dev20180224.1
ii  dh-autoreconf19
ii  dh-strip-nondeterminism  1.8.1-1
ii  dpkg 1.20.3
ii  dpkg-dev 1.20.3
ii  dwz  0.13-5
ii  file 1:5.38-5
ii  libdebhelper-perl13.1
ii  libdpkg-perl 1.20.3
ii  man-db   2.9.3-1
ii  perl 5.30.3-4
ii  po-debconf   1.0.21

debhelper recommends no packages.

Versions of packages debhelper suggests:
pn  dh-make  

-- no debconf information