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
[email protected]

Reply via email to