[15091] in athena10
Bug#873966: config-package-dev: transform operation error
daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Fri Sep 1 14:54:25 2017
Reply-To: Geoffrey Thomas <geofft@ldpreload.com>, 873966@bugs.debian.org
Resent-From: Geoffrey Thomas <geofft@ldpreload.com>
Resent-To: debian-bugs-dist@lists.debian.org
Date: Fri, 1 Sep 2017 14:42:04 -0400 (EDT)
From: Geoffrey Thomas <geofft@ldpreload.com>
To: Bruno Maitre <bruno.maitre@gmail.com>, 873966@bugs.debian.org
In-Reply-To: <CAAjYQmMptfowp0q_KQoGkZkLeKpHdEud18Ne2tQqe7T4EWXP3Q@mail.gmail.com>
Message-ID: <alpine.DEB.2.11.1709011413390.1801@titan.ldpreload.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII
On Fri, 1 Sep 2017, Bruno Maitre wrote:
> Dear Maintainer,
>
> When using the transform operation dh_configpackage will output that kind
> of error:
>
> Can't use string ("/ARRAY(0x55f37e2c3080)") as an ARRAY ref while "strict refs" in use at /usr/bin/dh_configpackage line 394.
>
> This error has been introduced by the correction of:
> #803962 : config-package-dev: Requires leading slashes un debian/*.displace
>
> For this correction we iterrate through the differents operation arrays to
> add a leading slash if needed.
> The problem is that @transformfiles is an array of array since it's created
> with filedoublearray function and not the filearray function like the others
> operation arrays (which are simples arrays).
> This lead to an add of a slash in front of the reference array ARRAY(0xXXX...)
> as can be seen in the error message.
> Subsequent processing of transformfiles results in an error.
>
> I've attached a patch with a way to fix this issue by removing transformfiles
> from the leading slashes verification loop and by checking leading slashes in
> the treatment of transformfiles itself as it was done before.
>
> Note that I've triggered the error in a Debian testing environment and
> the stable version is not affected.
Oops - thank you! I've applied the patch and I'll aim to do an upload that
fixes this tonight.
Also, I could have sworn I did a test run of building all the examples in
examples/, but indeed `apt-get source config-package-dev; cd
examples/debhelper/debathena-transform-example-1.0; dpkg-buildpackage`
fails. (And also fails in unstable because the example config file has
changed location.) We should really add a test suite to make sure the
examples build and produce the .debs we expect.
--
Geoffrey Thomas
https://ldpreload.com
geofft@ldpreload.com