Your message dated Sat, 01 Jul 2017 18:04:05 +0000
with message-id <[email protected]>
and subject line Bug#864611: fixed in config-package-dev 5.2
has caused the Debian Bug report #864611,
regarding config-package-dev: transform: let users pick local files as source
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
864611: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=864611
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: config-package-dev
Version: 5.1.2
Severity: wishlist
Tags: patch

Dear Maintainer,

I have a use case where I would like to transform and displace a file
shipped from the same upstream source, so that 2 binary packages (that
conflict with each other) can be built from the same repository without
having to keep local copies.

The first check, dpkg-divert --truename, immediately fails if the path
is not absolute. A simple patch is inlined.

Kind regards,
Luca Boccassi


From 15864748b3170217ed0665e3cc2716c1fdf6754c Mon Sep 17 00:00:00 2001
From: Luca Boccassi <[email protected]>
Date: Sun, 11 Jun 2017 16:29:49 +0100
Subject: [PATCH] transform: let users pick local files as source

In some case it's desirable to use a local file as the source of the
transform operation. For example, an upstream file from the same
repository that could be sourced at built time.
Skip dpkg checks on the source file if it does not start with /
---
 dh_configpackage | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dh_configpackage b/dh_configpackage
index 942766f..e76048c 100755
--- a/dh_configpackage
+++ b/dh_configpackage
@@ -369,9 +369,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
         my $file = shift @$line;
         $file =~ s|^/?|/|;
         my $source;
+        my $source_is_local = 0;
         if (@$line[0] =~ /^</) {
             $source = shift @$line;
             $source =~ s/^<//;
+            if ($source !~ m!^/!) {
+                $source_is_local = 1;
+            }
         } else {
             $source = displace_files_replace_name($package, $file, "");
             if ($source eq $file) {
@@ -386,7 +390,10 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
         #    chmod 0755, $rest;
         #}
 
-        $source = check_file($source);
+        # Let users use local files as input
+        if (! $source_is_local) {
+            $source = check_file($source);
+        }
         my $destdir = dirname("$tmp/$file");
         if (! -d $destdir) {
             doit("install", "-d", $destdir);
-- 
2.11.0

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Source: config-package-dev
Source-Version: 5.2

We believe that the bug you reported is fixed in the latest version of
config-package-dev, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Geoffrey Thomas <[email protected]> (supplier of updated config-package-dev 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 01 Jul 2017 11:46:18 -0400
Source: config-package-dev
Binary: config-package-dev
Architecture: source all
Version: 5.2
Distribution: unstable
Urgency: medium
Maintainer: Debathena Project <[email protected]>
Changed-By: Geoffrey Thomas <[email protected]>
Description:
 config-package-dev - Debhelper (and CDBS) modules for building configuration 
packages
Closes: 760200 803962 864611
Changes:
 config-package-dev (5.2) unstable; urgency=medium
 .
   * Permit debian/$package.displace-extension to omit the leading dot
     (Closes: #760200). Thanks to Dima Kogan for the patch.
   * Allow Debhelper control files to omit leading slashes
     (Closes: #803962).
   * Allow specifying relative paths, within the Debian source package,
     as the source for a transformation, and do not check these files
     against the dpkg database (Closes: #864611). Thanks to Luca Boccassi
     for the patch.
   * Bump Standards-Version to 4.0.0 and Debhelper compat level to v9
     (no changes).
   * debian/control, debian/copyright: Use https in URLs.
   * debian/control: Depend on ${perl:Depends}, which gives us a
     dependency on perl (not just perl-base) for Digest::MD5. Thanks,
     dh_perl!
Checksums-Sha1:
 08488f57e8895066628b4b979970412d4dd14ebe 1723 config-package-dev_5.2.dsc
 59c418e65c1c92e32bf9fddb1150fca59599833e 21352 config-package-dev_5.2.tar.xz
 09b550a26ed67489f1cea0504df0b6eeaf8b0394 32216 config-package-dev_5.2_all.deb
 4c94103db1fc83737f535bbea0fd82966ab36e8b 4446 
config-package-dev_5.2_amd64.buildinfo
Checksums-Sha256:
 7f1a094b2125272c07a7bfec148ce4052d9de86cb471dfe4cf6056c72ab514a2 1723 
config-package-dev_5.2.dsc
 3c8b5ab9ee8a787c4a881071a685191a8306361148b353a097f39295c0b558f2 21352 
config-package-dev_5.2.tar.xz
 1b01a4565914325c4903dd5ca48fccef08f5599f560062fc193108cc95b627ec 32216 
config-package-dev_5.2_all.deb
 27818662cfc9228677a357ab46f0eb1efa37f287ccb2317c67075d90ac5e93fd 4446 
config-package-dev_5.2_amd64.buildinfo
Files:
 61a6478dda76c9c8d6e7082428353698 1723 devel extra config-package-dev_5.2.dsc
 f9fb4c1de9fd53ba80d26504a9dc32b8 21352 devel extra 
config-package-dev_5.2.tar.xz
 d25ad643c1b66e74c6aa460ea6c8aba2 32216 devel extra 
config-package-dev_5.2_all.deb
 8f4a82a33035df8e761332fa734342dc 4446 devel extra 
config-package-dev_5.2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJZV+AWAAoJEFxSRSZcQTUgEaMP/Rp5CC3OkKu+I3cX546j10XX
RTo51GhaN+/wvtta8Q0TGJMTz/6Mmj02asZQNDhrw8o66o5q/DCd0FlKZvWjU1gF
Rpqdw+PbYLL//aLIr8MebgI7bawpuJBvF/abNAoGLz6SZOTd6c4sJD3fQR/mS2zU
eWpPZHwooh2t3BgaeIU5Rg5Z0wT0XUE6P6yuR7wsOu/8IC7V7yF9KASJ0/eO8Why
j3J5PTnqR3dK+4WukN5MUBT/R3V/pmTHkh4CpJSUPeMqfrRc5BoPpzQp7d95GZQA
V6Qntduj6Ks1Im8jFNl6YMQpII5melUKndLMSyBSbHyqcDOefvftOuO77yhGKamG
JWNfP2iwsbbh6G0Yv9gb4OXUpFgMtyEQYldyxHt88HyyhzoVdIqh90e1MwdGpOMQ
azjhH3/2ts7u3bnnRFJ4onPrrEEUZIdhE7dtGO7142KqlPdkn5FOfTgnxbl3iaj4
e/Dx64QM/BQBJc5fLfSztEl7y1qQ3Qe+QUU6bEy2isTn532ckBNjxNPOrV7bgA4H
oKVg0ehYbYiY19jjjXTKBVD+1qvM2OD/mz8RTXMngSTwH0ObmemGDWM/bN3/1w3M
R3/lrNZ9rGHmeXM/WU/CPxR8u/Erl5n56GUJb3VAhTqLoibA7Cfjh4wpIMvT/uZQ
BBOtQnLApsbzjG0LEbgM
=5WXW
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to