Your message dated Tue, 02 Feb 2010 23:09:02 +0000
with message-id <[email protected]>
and subject line Bug#560418: fixed in sip4-qt3 4.10-2
has caused the Debian Bug report #560418,
regarding sip4-qt3: FTBFS on hurd-i386: wrong value checking for errno result
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.)


-- 
560418: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560418
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: sip4-qt3
Version: 4.9-1
Severity: important
Tags: patch
User: [email protected]
Usertags: hurd

Hi,

currently[1] (the log refers to 4.8, but the error is the same) sip4-qt3 fails
to build on GNU/Hurd.

Basically, the problem lies in the patch 02 (siputils): one addition of it is
+                except OSError, e:
+                    if e.errno != 17:
+                        raise e
which means relying on the particular value (implementation dependent) of the
EEXIST errno. This is the same on Linux and kFreeBSD, but not on Hurd.
The easy fix is to use the errno Python module and its EEXIST constant.
The result is a compiling sip4-qt3 on GNU/Hurd and on current amd64 testing as
well.
Attached there is the fixed version of the patch 02_siputils.dpatch.

[1] 
http://buildd.debian-ports.org/fetch.php?&pkg=sip4-qt3&ver=4.8.2-1&arch=hurd-i386&stamp=1251535074&file=log&as=raw

Thanks,
-- 
Pino
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_siputils.dpatch by Torsten Marek <[email protected]>
##
## DP: Patch for siputils.py adding objectdir support

@DPATCH@
diff -urNad sip4-qt3-4.9~/siputils.py sip4-qt3-4.9/siputils.py
--- sip4-qt3-4.9~/siputils.py	2009-09-26 11:14:30.000000000 -0400
+++ sip4-qt3-4.9/siputils.py	2009-10-06 14:12:44.668507206 -0400
@@ -203,7 +203,7 @@
     def __init__(self, configuration, console=0, qt=0, opengl=0, python=0,
                  threaded=0, warnings=1, debug=0, dir=None,
                  makefile="Makefile", installs=None, universal=None,
-                 arch=None):
+                 topsrcdir=None, arch=None):
         """Initialise an instance of the target.  All the macros are left
         unchanged allowing scripts to manipulate them at will.
 
@@ -253,7 +253,14 @@
         self._python = python
         self._warnings = warnings
         self._debug = debug
-        self._dir = dir
+        if topsrcdir is not None:
+            self._dir = os.path.join(topsrcdir, dir)
+            self._objdir = dir
+            self._has_objdir = True
+        else:
+            self._dir = dir
+            self._has_objdir = False
+
         self._makefile = makefile
         self._installs = installs
 
@@ -323,6 +330,13 @@
         self.chkdir = self.optional_string("CHK_DIR_EXISTS", def_chk_dir_exists)
 
 
+    def srcPath(self, path):
+        if self._has_objdir:
+            return os.path.join(self._dir, path)
+        else:
+            return path
+
+
     def finalise(self):
         """Finalise the macros by doing any consolidation that isn't specific
         to a Makefile.
@@ -801,6 +815,10 @@
 
         rpaths is the cannonical list of rpaths.
         """
+        # Do not use any rpaths on Debian
+        # Changed by Torsten Marek <[email protected]>
+        return []
+    
         flags = []
         prefix = self.optional_string("RPATH")
 
@@ -832,6 +850,15 @@
         clib is the library name in cannonical form.
         framework is set of the library is implemented as a MacOS framework.
         """
+        ##################################################################
+        # Generally, the linker is intelligent enough not to need this   #
+        # additional information!                                        #
+        # And Qt4's pkg-config and prl files are broken                  #
+        # Changed for Debian packaging, Torsten Marek <[email protected]>  #
+        ##################################################################
+
+        return []
+        
         prl_libs = []
 
         if self.generator in ("MSVC", "MSVC.NET", "BMAKE"):
@@ -969,7 +996,10 @@
         self.ready()
 
         if self._dir:
-            mfname = os.path.join(self._dir, self._makefile)
+            if self._has_objdir:
+                mfname = os.path.join(self._objdir, self._makefile)
+            else:
+                mfname = os.path.join(self._dir, self._makefile)
         else:
             mfname = self._makefile
 
@@ -987,6 +1017,8 @@
                 self._installs = [self._installs]
 
             for src, dst in self._installs:
+                if self._dir is not None and self._has_objdir:
+                    src = [os.path.join(self._dir, sf) for sf in src]
                 self.install_file(mfile, src, dst)
 
         self.generate_target_clean(mfile)
@@ -1049,6 +1081,9 @@
         else:
             mfile.write(".SUFFIXES: .c .cpp .cc .cxx .C\n\n")
 
+        if self._has_objdir:
+            mfile.write("VPATH = %s\n\n" % (self._dir))
+            
         if self.generator in ("MSVC", "MSVC.NET"):
             mfile.write("""
 {.}.cpp{}.obj::
@@ -1175,14 +1210,14 @@
     """The class that represents a parent Makefile.
     """
     def __init__(self, configuration, subdirs, dir=None, makefile="Makefile",
-                 installs=None):
+                 installs=None, has_objdir=False):
         """Initialise an instance of a parent Makefile.
 
         subdirs is the sequence of subdirectories.
         """
         Makefile.__init__(self, configuration, dir=dir, makefile=makefile, installs=installs)
-
         self._subdirs = subdirs
+        self._has_objdir = has_objdir
 
     def generate_macros_and_rules(self, mfile):
         """Generate the macros and rules.
@@ -1227,6 +1262,13 @@
         mfile.write("\n" + target + ":\n")
 
         for d in self._subdirs:
+            if self._has_objdir:
+                try:
+                    os.mkdir(d)
+                except OSError, e:
+                    import errno
+                    if e.errno != errno.EEXIST:
+                        raise e
             if self.generator == "MINGW":
                 mfile.write("\...@$(MAKE) -C %s%s\n" % (d, tname))
             elif self.generator == "UNIX":
@@ -1303,7 +1345,7 @@
     def __init__(self, configuration, build_file, install_dir=None, static=0,
                  console=0, qt=0, opengl=0, threaded=0, warnings=1, debug=0,
                  dir=None, makefile="Makefile", installs=None, strip=1,
-                 export_all=0, universal=None, arch=None):
+                 export_all=0, topsrcdir=None, universal=None, arch=None):
         """Initialise an instance of a module Makefile.
 
         build_file is the file containing the target specific information.  If
@@ -1317,11 +1358,10 @@
         increases the size of the module and slows down module load times but
         may avoid problems with modules that use exceptions.  The default is 0.
         """
-        Makefile.__init__(self, configuration, console, qt, opengl, 1, threaded, warnings, debug, dir, makefile, installs, universal, arch)
+        Makefile.__init__(self, configuration, console, qt, opengl, 1, threaded, warnings, debug, dir, makefile, installs, universal, topsrcdir, arch)
 
         self._build = self.parse_build_file(build_file)
         self._install_dir = install_dir
-        self._dir = dir
         self.static = static
 
         self._manifest = ("embed_manifest_dll" in self.optional_list("CONFIG"))
@@ -1522,7 +1563,7 @@
             cpp = "moc_" + root + ".cpp"
 
             mfile.write("\n%s: %s\n" % (cpp, mf))
-            mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf))
+            mfile.write("\t$(MOC) -o %s %s\n" % (cpp, self.srcPath(mf)))
 
         mfile.write("\n$(TARGET): $(OFILES)\n")
 
@@ -1634,14 +1675,14 @@
     def __init__(self, configuration, build_file=None, install_dir=None,
                  console=0, qt=0, opengl=0, python=0, threaded=0, warnings=1,
                  debug=0, dir=None, makefile="Makefile", installs=None,
-                 universal=None, arch=None):
+                 topsrcdir=None, universal=None, arch=None):
         """Initialise an instance of a program Makefile.
 
         build_file is the file containing the target specific information.  If
         it is a dictionary instead then its contents are validated.
         install_dir is the directory the target will be installed in.
         """
-        Makefile.__init__(self, configuration, console, qt, opengl, python, threaded, warnings, debug, dir, makefile, installs, universal, arch)
+        Makefile.__init__(self, configuration, console, qt, opengl, python, threaded, warnings, debug, dir, makefile, installs, universal, topsrcdir, arch)
 
         self._install_dir = install_dir
 
@@ -1792,7 +1833,7 @@
             cpp = "moc_" + root + ".cpp"
 
             mfile.write("\n%s: %s\n" % (cpp, mf))
-            mfile.write("\t$(MOC) -o %s %s\n" % (cpp, mf))
+            mfile.write("\t$(MOC) -o %s %s\n" % (cpp, self.srcPath(mf)))
 
         mfile.write("\n$(TARGET): $(OFILES)\n")
 

--- End Message ---
--- Begin Message ---
Source: sip4-qt3
Source-Version: 4.10-2

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

python-sip-dbg_4.10-2_amd64.deb
  to main/s/sip4-qt3/python-sip-dbg_4.10-2_amd64.deb
python-sip-dev_4.10-2_amd64.deb
  to main/s/sip4-qt3/python-sip-dev_4.10-2_amd64.deb
python-sip4-dbg_4.10-2_all.deb
  to main/s/sip4-qt3/python-sip4-dbg_4.10-2_all.deb
python-sip4-dev_4.10-2_all.deb
  to main/s/sip4-qt3/python-sip4-dev_4.10-2_all.deb
python-sip4_4.10-2_all.deb
  to main/s/sip4-qt3/python-sip4_4.10-2_all.deb
python-sip_4.10-2_amd64.deb
  to main/s/sip4-qt3/python-sip_4.10-2_amd64.deb
sip4-qt3_4.10-2.debian.tar.gz
  to main/s/sip4-qt3/sip4-qt3_4.10-2.debian.tar.gz
sip4-qt3_4.10-2.dsc
  to main/s/sip4-qt3/sip4-qt3_4.10-2.dsc
sip4_4.10-2_all.deb
  to main/s/sip4-qt3/sip4_4.10-2_all.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.
Torsten Marek <[email protected]> (supplier of updated sip4-qt3 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, 02 Feb 2010 21:27:14 +0100
Source: sip4-qt3
Binary: python-sip python-sip-dbg python-sip-dev python-sip4 sip4 
python-sip4-dev python-sip4-dbg
Architecture: source all amd64
Version: 4.10-2
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team 
<[email protected]>
Changed-By: Torsten Marek <[email protected]>
Description: 
 python-sip - Python/C++ bindings generator runtime library
 python-sip-dbg - Python/C++ bindings generator runtime library (debug 
extension)
 python-sip-dev - Python/C++ bindings generator development files
 python-sip4 - Python/C++ bindings generator runtime library (transitional packa
 python-sip4-dbg - Python/C++ bindings generator runtime library (debug, 
transitiona
 python-sip4-dev - Python/C++ bindings generator development files 
(transitional pac
 sip4       - Python/C++ bindings generator (transitional package)
Closes: 552511 560418
Changes: 
 sip4-qt3 (4.10-2) unstable; urgency=low
 .
   * Upload to unstable (Closes: #552511)
   * siputils.py does not check errno any more (Closes: #560418)
   * debian/control
     - Updated standards version to 3.8.4, no changes necessary
     - Make python-sip4 break those packages that do not depend on
       python2.x-sip4 or a specific version of python-sip4
   * debian/manpages/dh_sip.1
     - Create man page for dh_sip
   * debian/manpages/sip.1
     - Update man page for sip
   * debian/README.source
     - Removed, not needed for source format "3.0 (quilt)"
Checksums-Sha1: 
 1592abe3f9f61a86f37bddc975cb393140ab7ac3 1527 sip4-qt3_4.10-2.dsc
 cc37a311de32c804896c35f497ffd3ab54786b5e 13544 sip4-qt3_4.10-2.debian.tar.gz
 dcf71ef489eba2793deb21fb3d544834948de55d 58152 python-sip4_4.10-2_all.deb
 e58ca5c846c226fa0ed9e8cd584f988557c27540 58052 sip4_4.10-2_all.deb
 05e37b7403ed16e04b62801f4c6c4b6329b9b156 58084 python-sip4-dev_4.10-2_all.deb
 c2fe94af99b3f39931d57288cf40bba06584fad0 58086 python-sip4-dbg_4.10-2_all.deb
 8f27498dedeac57a8c180faf649866cd651f2e0f 191914 python-sip_4.10-2_amd64.deb
 1b77a8b0714daebac0ad51f3be2d4b49ddc4ba7e 440998 python-sip-dbg_4.10-2_amd64.deb
 283f221a6e68ba0e17993341273be5dc73ee9d42 409310 python-sip-dev_4.10-2_amd64.deb
Checksums-Sha256: 
 8ed8c6673d08ac76d67222457bb7e9103f40b41090513107fcf2ec937e144b7e 1527 
sip4-qt3_4.10-2.dsc
 654cc0d207729e15311a8b2bc38a4ff1d02366a8ed7d3e7b086e9def4a627e9e 13544 
sip4-qt3_4.10-2.debian.tar.gz
 df6021f6c758a4866484b664d83d66688c77679a1870562deae5de7e9feca1af 58152 
python-sip4_4.10-2_all.deb
 64bae5a954cea24f83a072c23f4f4bb9402a9677a40964f0a5a80d9bfab37af7 58052 
sip4_4.10-2_all.deb
 d0c50e11b54baf42607ba4dd7e794fbbb0dd29b7771800b30c5db674dbdffbcf 58084 
python-sip4-dev_4.10-2_all.deb
 b7c6c42d26fbeec65dc4896a87f550abb46a4f41aee8381cf370e5e7cb452db6 58086 
python-sip4-dbg_4.10-2_all.deb
 80233024ea7616be8392168a982a07fb9c0d35a0131dcb5acd9a4befab5d7fac 191914 
python-sip_4.10-2_amd64.deb
 482cf31e7eddb2f1c762098410f7f3363a8f4ce508f2e13338be69ba17569eac 440998 
python-sip-dbg_4.10-2_amd64.deb
 4440f9736191d7fd9145fa4e0198c19974956a5d8813597706a906580bd0786a 409310 
python-sip-dev_4.10-2_amd64.deb
Files: 
 c4c64e17be97add66b685e5a1dd05950 1527 devel optional sip4-qt3_4.10-2.dsc
 e8010c02d87923f459f63074efa36867 13544 devel optional 
sip4-qt3_4.10-2.debian.tar.gz
 f4a5d3051c697c276b2b69ed160c44b4 58152 python optional 
python-sip4_4.10-2_all.deb
 c1a3d2d4c9d2965ae4d06ea09707695c 58052 python optional sip4_4.10-2_all.deb
 8215750784f353a43f36a2c72eea6220 58084 python optional 
python-sip4-dev_4.10-2_all.deb
 299664fedfb8e27aff5f7cdb09d41b6a 58086 debug extra 
python-sip4-dbg_4.10-2_all.deb
 f25815f0818d0dc05ed56922610cbf3f 191914 python optional 
python-sip_4.10-2_amd64.deb
 9a2b2ea2a454d2cce739940ba66bffe5 440998 debug extra 
python-sip-dbg_4.10-2_amd64.deb
 b4f189d9e4dafa865418518b0b1de2d5 409310 python optional 
python-sip-dev_4.10-2_amd64.deb

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

iEYEARECAAYFAktop9sACgkQfMVFHqJEyFidfgCfbQcww3j+1U8ZTIs3Lb4yssfZ
wiEAnj0o2ZQYfqpeuyt538LmXtYB+03i
=FGUE
-----END PGP SIGNATURE-----



--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/python-modules-team

Reply via email to