Your message dated Tue, 15 Sep 2009 18:47:09 +0000
with message-id <[email protected]>
and subject line Bug#485251: fixed in freeimage 3.10.0-2
has caused the Debian Bug report #485251,
regarding freeimage: FTBFS when converted to new source format 3.0 (quilt): 
require -p0 for some patches
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.)


-- 
485251: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485251
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: freeimage
Version: 3.10.0-1
Severity: wishlist
Usertags: 3.0-quilt-by-default

To prepare a possible switch to the new source package format "3.0
(quilt)" [1], I converted all source packages and tried to rebuild them.
Unfortunately, freeimage failed, you can try yourself with those
commands (and dpkg-dev >= 1.14.19 [2]) :

$ apt-get source freeimage
$ sed -i -e '/^Source:/ aFormat: 3.0 (quilt)' freeimage-3.10.0/debian/control
$ dpkg-source -b freeimage-3.10.0
$ dpkg-source -x freeimage_3.10.0-1.dsc
$ cd freeimage-3.10.0 && debuild -us -uc

In this process, if the .diff.gz contains changes to upstream files,
dpkg-source will have created a corresponding patch in
debian/patches/debian-changes-3.10.0-1 and will have registered that
patch in a quilt series (debian/patches/series, it is created if needed).
All the patches listed in the "series" file are applied directly during
the extraction (dpkg-source -x). quilt itself is used if available (and
will thus lead to the creation of the .pc directory), otherwise
dpkg-source applies the patches by itself. For more information about the
new source package format see the manual page dpkg-source(1).

In the case of freeimage, it already uses quilt but some of the patches
require the '-p0' option of patch to be properly applied and this
option has been hardcoded in the series file. The new source package
format doesn't support this quilt feature and requires patches
to be applicable with the '-p1' option.

You can use the following command to easily update all the patches
that use the '-p0' option:
awk '{ if ($2 == "-p0") print $1 }' debian/patches/series | while read f; do 
perl -pi -e 's|^--- (?:\./)?|--- a/|; s|^\+\+\+ (?:\./)?|+++ b/|;' 
debian/patches/$f ; done

Not that you can replace "a" by "freeimage-3.10.0.orig" and
"b" by "freeimage-3.10.0" if you prefer.

Then don't forget to strip the "-p0" options from debian/patches/series.

As a side note, you must also pay attention to the following points in your
quilt usage to guarantee compatibility with the new source package
format:
- the patches must be in debian/patches/ together with the "series" file
  (you can use QUILT_PATCHES=debian/patches if needed)
- you should not override QUILT_PC to change the location of quilt's
  internal directory (".pc" by default)
- the patches should not reference absolute filenames (in +++/--- lines)
- your clean target must work even if the patches are already applied
- your build target must work with patches applied even if the clean
  target is supposed to unapply them (because dpkg-source -b might
  have applied them back)

Cheers,

[1] http://lists.debian.org/debian-devel-announce/2008/04/msg00004.html
[2] the upcoming dpkg-dev 1.14.20 is more tolerant with patches, you can
grab it here if you want to try with that version:
http://people.debian.org/~hertzog/packages/dpkg-dev_1.14.20_all.deb
-- 
Raphael Hertzog




--- End Message ---
--- Begin Message ---
Source: freeimage
Source-Version: 3.10.0-2

We believe that the bug you reported is fixed in the latest version of
freeimage, which is due to be installed in the Debian FTP archive:

freeimage_3.10.0-2.diff.gz
  to pool/main/f/freeimage/freeimage_3.10.0-2.diff.gz
freeimage_3.10.0-2.dsc
  to pool/main/f/freeimage/freeimage_3.10.0-2.dsc
libfreeimage-dev_3.10.0-2_amd64.deb
  to pool/main/f/freeimage/libfreeimage-dev_3.10.0-2_amd64.deb
libfreeimage3-dbg_3.10.0-2_amd64.deb
  to pool/main/f/freeimage/libfreeimage3-dbg_3.10.0-2_amd64.deb
libfreeimage3_3.10.0-2_amd64.deb
  to pool/main/f/freeimage/libfreeimage3_3.10.0-2_amd64.deb



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.
Michael Koch <[email protected]> (supplier of updated freeimage 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: SHA1

Format: 1.8
Date: Tue, 15 Sep 2009 20:12:53 +0200
Source: freeimage
Binary: libfreeimage-dev libfreeimage3 libfreeimage3-dbg
Architecture: source amd64
Version: 3.10.0-2
Distribution: unstable
Urgency: low
Maintainer: Federico Di Gregorio <[email protected]>
Changed-By: Michael Koch <[email protected]>
Description: 
 libfreeimage-dev - Support library for graphics image formats (development 
files)
 libfreeimage3 - Support library for graphics image formats (library)
 libfreeimage3-dbg - Support library for graphics image formats (debugging 
symbols)
Closes: 485251 518647
Changes: 
 freeimage (3.10.0-2) unstable; urgency=low
 .
   * Fixed typo in short description of libfreeimage3-dbg.
     (Closes: #518647)
   * Adjusted patched to not need -p0 (Closes: #485251).
   * Made package priority optional.
   * Moved libfreeimage3-dbg package into debug section.
   * Added debian/README.source.
   * Added watch file.
   * Added myself to Uploaders.
   * Updated Standards-Version.
Checksums-Sha1: 
 f3763898c665a29b1eadd26b69d4f671ae3ccaf9 1304 freeimage_3.10.0-2.dsc
 f4e4e866d895d51c50fdfb5aa50a1c22e8997e5d 11352 freeimage_3.10.0-2.diff.gz
 8cdee0f84684e5ae8d45be71c718f6012d3b9ca6 17590202 
libfreeimage-dev_3.10.0-2_amd64.deb
 1895dc6acc56248b29405c415431bbf611e7d305 1988746 
libfreeimage3_3.10.0-2_amd64.deb
 7bcd700eb01d07e31f53d49e2ce7381c224fb00a 6511330 
libfreeimage3-dbg_3.10.0-2_amd64.deb
Checksums-Sha256: 
 6f6b3a35ed3cf6694d4c35502eca575ebe76626fda447e8b1385ecdac31c2d4d 1304 
freeimage_3.10.0-2.dsc
 47d1060fda0bfc17cc540ec439f3ce64a7ce02192236ba4bb93422d32cc39e6a 11352 
freeimage_3.10.0-2.diff.gz
 205a2d78edba5a79a7c475fa1455407040617cade59ad42e1b340c0b72f37dec 17590202 
libfreeimage-dev_3.10.0-2_amd64.deb
 8a6eb2946ec3b44d6019de5c4da21370d6533abdfad967b1d9ec31d228cb398f 1988746 
libfreeimage3_3.10.0-2_amd64.deb
 27980cff5c3579a9602dda155df49ac43aaa0dc1bf991cd015cf47194a8830d5 6511330 
libfreeimage3-dbg_3.10.0-2_amd64.deb
Files: 
 d1a20589d32286858bbfdab4846c3fbb 1304 libs optional freeimage_3.10.0-2.dsc
 e1ecd8ad9553b5b2e73d392f50a3022b 11352 libs optional freeimage_3.10.0-2.diff.gz
 549449292cd3df331e613276ad06593c 17590202 libdevel optional 
libfreeimage-dev_3.10.0-2_amd64.deb
 74863f1da86f1b752eae7cb6893031e0 1988746 libs optional 
libfreeimage3_3.10.0-2_amd64.deb
 439a3a0c6a6f041313ae663e94a2dcef 6511330 debug extra 
libfreeimage3-dbg_3.10.0-2_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkqv3NEACgkQWSOgCCdjSDuK2gCgjNrRFMzIiZ8O3SpNc1Nwsr3b
KfEAoJdE6TfE5UWC1yt+rqYjnePybo9r
=TZhx
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to