Your message dated Thu, 03 Mar 2011 11:32:08 +0000
with message-id <e1pv6lm-00032c...@franck.debian.org>
and subject line Bug#616194: fixed in acpid 1:2.0.8-2
has caused the Debian Bug report #616194,
regarding acpid: FTBFS (error: comparison between signed and unsigned integer 
expressions)
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 ow...@bugs.debian.org
immediately.)


-- 
616194: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616194
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: acpid
Version: 1:2.0.7-1
Severity: serious
User: debian-...@lists.debian.org
Usertags: ftbfs-gcc-4.6 ftbfs-gcc-4.5 ftbfs-gcc-4.4
Tags: patch

Hi,

Trying to build from source (first with gcc-4.6 as gcc and cc, then
gcc-4.5, then gcc-4.4):

| $ debian/rules build
| cc -g -O2 -Wall -Wextra -Wundef -Wshadow -Werror   -c -o libnetlink.o 
libnetlink.c
| cc1: warnings being treated as errors
| libnetlink.c: In function ‘addraw_l’:
| libnetlink.c:521: error: comparison between signed and unsigned
| make[1]: *** [libnetlink.o] Error 1
| make[1]: Leaving directory `/tmp/acpid-2.0.8/kacpimon'
| make: *** [build] Error 2

How about this patch?

Signed-off-by: Jonathan Nieder <jrnie...@gmail.com>
---
 debian/changelog |   11 +++++++++++
 debian/control   |    2 +-
 debian/rules     |    8 ++++++--
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 1d9ee9e..09e9bae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,14 @@
+acpid (1:2.0.8-2) UNRELEASED; urgency=low
+
+  * Do not pass -Werror to gcc at build time.  (Otherwise, the
+    package fails to build from source.)
+  * Allow build flags to be customized by setting
+    DEB_BUILD_OPTIONS=noopt or DEB_CFLAGS_APPEND=-Werror in the
+    build-time environment.
+  * Build-Depends: dpkg-dev (>= 1.15.7) for dpkg-buildflags.
+
+ -- Jonathan Nieder <jrnie...@gmail.com>  Thu, 03 Mar 2011 00:17:43 -0600
+
 acpid (1:2.0.8-1) unstable; urgency=low
 
   * Imported Upstream version 2.0.8
diff --git a/debian/control b/debian/control
index 176adea..312f410 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Acpi Team 
<pkg-acpi-de...@lists.alioth.debian.org>
 Uploaders: Michael Meskes <mes...@debian.org>,
            Loic Minier <l...@dooz.org>
 Standards-Version: 3.9.1
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 5), dpkg (>= 1.15.7)
 Vcs-Git: git://git.debian.org/git/pkg-acpi/acpid.git
 Vcs-Browser: http://git.debian.org/?p=pkg-acpi/acpid.git
 Homepage: http://acpid.sourceforge.net/
diff --git a/debian/rules b/debian/rules
index 9f6fd7f..68b8328 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,15 @@
 #!/usr/bin/make -f
 
+cflags := -W -Wall -Wundef -Wshadow -D_GNU_SOURCE \
+       $(shell dpkg-buildflags --get CFLAGS) \
+        -fno-strict-aliasing
+
 build: 
        dh_testdir
        chmod g-s -R *
-       $(MAKE)
+       $(MAKE) CFLAGS='$(cflags) $$(DEFS)'
        $(MAKE) man
-       (cd kacpimon; $(MAKE))
+       (cd kacpimon; $(MAKE) CFLAGS='$(cflags) $$(DEFS)')
 
 clean: 
        dh_testdir
-- 
1.7.4.1




--- End Message ---
--- Begin Message ---
Source: acpid
Source-Version: 1:2.0.8-2

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

acpid_2.0.8-2.diff.gz
  to main/a/acpid/acpid_2.0.8-2.diff.gz
acpid_2.0.8-2.dsc
  to main/a/acpid/acpid_2.0.8-2.dsc
acpid_2.0.8-2_amd64.deb
  to main/a/acpid/acpid_2.0.8-2_amd64.deb
kacpimon_2.0.8-2_amd64.deb
  to main/a/acpid/kacpimon_2.0.8-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 616...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Meskes <mes...@debian.org> (supplier of updated acpid 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 ftpmas...@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Thu, 03 Mar 2011 12:14:12 +0100
Source: acpid
Binary: acpid kacpimon
Architecture: source amd64
Version: 1:2.0.8-2
Distribution: unstable
Urgency: low
Maintainer: Debian Acpi Team <pkg-acpi-de...@lists.alioth.debian.org>
Changed-By: Michael Meskes <mes...@debian.org>
Description: 
 acpid      - Advanced Configuration and Power Interface event daemon
 kacpimon   - Kernel ACPI Event Monitor
Closes: 616194
Changes: 
 acpid (1:2.0.8-2) unstable; urgency=low
 .
   * Make both sides of the comparison signed so the package builds again.
     (Closes: #616194)
Checksums-Sha1: 
 5da47befb16ea697b0a35bdf450988bbf19eda13 1195 acpid_2.0.8-2.dsc
 8d8895031da7114fc31b82e1981e5460901b4a4b 18498 acpid_2.0.8-2.diff.gz
 ebfe3da35e1fbb7cf5107cc43c830f181c22a4d4 51092 acpid_2.0.8-2_amd64.deb
 e8da81012d23ff15291ce4b1ed4791da9b5164d5 29192 kacpimon_2.0.8-2_amd64.deb
Checksums-Sha256: 
 7d8ac6035b85fffed3eded3c488cbb8b0196874acb0e9d9564c5bd0b407d4087 1195 
acpid_2.0.8-2.dsc
 f97dcf01912d7077cfeeb59c20eee28329fe70d6ca84d6c8d557d37c0c795fe5 18498 
acpid_2.0.8-2.diff.gz
 c242b467175b3900490d835a2150a9c27c19930d02247977d3f50d7559d539b0 51092 
acpid_2.0.8-2_amd64.deb
 c84c404abaf6baa7cc9918bf146b9dfe6155b9a951ef59004c9c30b2a7c90f23 29192 
kacpimon_2.0.8-2_amd64.deb
Files: 
 70648bc0dee9294d0692a01083c271bf 1195 admin optional acpid_2.0.8-2.dsc
 59f3bcf697769cece6fbe7bdddcbe125 18498 admin optional acpid_2.0.8-2.diff.gz
 ad844c1cc24d5878911b1189507fc08c 51092 admin optional acpid_2.0.8-2_amd64.deb
 449dfb4f1f06c65f4c00ff89f1c90053 29192 utils extra kacpimon_2.0.8-2_amd64.deb

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

iD8DBQFNb3jmVkEm8inxm9ERAu9VAJ9QoH5tSUuYXxtuoPYDC1QENpvW7ACfWlzF
h2S3eUZI54rSl/VnpLMAGuM=
=tadr
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to