Your message dated Mon, 05 Oct 2009 17:19:59 +0000
with message-id <[email protected]>
and subject line Bug#545948: fixed in ptlib 2.6.5-1
has caused the Debian Bug report #545948,
regarding ptlib: FTBFS on GNU/kFreeBSD
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.)


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

Hi,

the current version fails to build on GNU/kFreeBSD.

It needs some tweaks for both source and packaging.
Please find attached patch with tweaks.

It would also be nice if you can ask upstream
to include source changes.

Thanks in advance

                        Petr
diff -u ptlib-2.6.4/debian/control ptlib-2.6.4/debian/control
--- ptlib-2.6.4/debian/control
+++ ptlib-2.6.4/debian/control
@@ -5,7 +5,9 @@
 Uploaders: Mark Purcell <[email protected]>, Eugen Dedu <[email protected]>
 Build-Depends: debhelper (>= 7), dpatch, g++ (>= 2.95), autotools-dev, doxygen, pkg-config, bison, flex,
  unixodbc-dev, libssl-dev, libldap2-dev, libsasl2-dev, libkrb5-dev, libexpat1-dev,
- libsdl1.2-dev, libasound2-dev, libdv4-dev, libv4l-dev
+ libsdl1.2-dev, libdv4-dev, 
+ libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
+ libasound2-dev  [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
 Build-Conflicts:
   libpt2.6.4, libpt2.6.3, libpt2.6.2, libpt2.6.1, libpt2.4.2, libpt2.4.1, libpt2.3-beta1,
   libpt-1.11.2, libpt-1.11.2-ptrace, libpt-1.11.2-develop,
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/configure
+++ ptlib-2.6.4/configure
@@ -3828,7 +3828,7 @@
 
                    ;;
 
-  freebsd* )       OSTYPE=FreeBSD ;
+  freebsd*|kfreebsd* )       OSTYPE=FreeBSD ;
 		   OS_TAG="P_FREEBSD" ;
                    if test "x$OSRELEASE" = "x"; then
                      OSRELEASE="`sysctl -n kern.osreldate`" ;
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/configure.ac
+++ ptlib-2.6.4/configure.ac
@@ -232,7 +232,7 @@
 		   AC_CHECK_FUNC([swab], [AC_DEFINE([USE_SYSTEM_SWAB], [], [Use system swab()] )] )
                    ;;
 
-  freebsd* )       OSTYPE=FreeBSD ;
+  freebsd*|kfreebsd*)       OSTYPE=FreeBSD ;
 		   OS_TAG="P_FREEBSD" ;
                    if test "x$OSRELEASE" = "x"; then
                      OSRELEASE="`sysctl -n kern.osreldate`" ;
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/include/ptlib/unix/ptlib/pmachdep.h
+++ ptlib-2.6.4/include/ptlib/unix/ptlib/pmachdep.h
@@ -92,7 +92,11 @@
 
 #define HAS_IFREQ
 
+#if defined (__GLIBC__)
+#define PSETPGRP()  setpgrp()
+#else
 #define PSETPGRP()  setpgrp(0, 0)
+#endif

 ///////////////////////////////////////////////////////////////////////////////
 #elif defined(P_OPENBSD)
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/include/ptclib/vsdl.h
+++ ptlib-2.6.4/include/ptclib/vsdl.h
@@ -32,7 +32,7 @@
 #if P_SDL
 
 #include <ptlib.h>
-#if defined(P_FREEBSD)
+#if defined(P_FREEBSD) && !defined (__GLIBC__)
 #include <SDL11/SDL.h>
 #else
 #include <SDL/SDL.h>
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/make/unix.mak
+++ ptlib-2.6.4/make/unix.mak
@@ -177,6 +177,11 @@
 P_USE_RANLIB		:= 1
 #STDCCFLAGS      += -DP_USE_PRAGMA		# migrated to configure
 
+ifeq ($(P_SHAREDLIB),1)
+ifndef PROG
+STDCCFLAGS	+= -fPIC -DPIC
+endif # PROG
+endif # P_SHAREDLIB
 
 endif # FreeBSD
 
only in patch2:
unchanged:
--- ptlib-2.6.4.orig/src/ptclib/vsdl.cxx
+++ ptlib-2.6.4/src/ptclib/vsdl.cxx
@@ -43,7 +43,7 @@
 
 extern "C" {
 
-#if defined(P_FREEBSD)
+#if defined(P_FREEBSD) && !defined (__GLIBC__)
 #include <SDL11/SDL.h>
 #else
 #include <SDL/SDL.h>

--- End Message ---
--- Begin Message ---
Source: ptlib
Source-Version: 2.6.5-1

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

libpt-dev_2.6.5-1_i386.deb
  to pool/main/p/ptlib/libpt-dev_2.6.5-1_i386.deb
libpt-doc_2.6.5-1_all.deb
  to pool/main/p/ptlib/libpt-doc_2.6.5-1_all.deb
libpt2.6.5-dbg_2.6.5-1_i386.deb
  to pool/main/p/ptlib/libpt2.6.5-dbg_2.6.5-1_i386.deb
libpt2.6.5-plugins_2.6.5-1_i386.deb
  to pool/main/p/ptlib/libpt2.6.5-plugins_2.6.5-1_i386.deb
libpt2.6.5_2.6.5-1_i386.deb
  to pool/main/p/ptlib/libpt2.6.5_2.6.5-1_i386.deb
ptlib_2.6.5-1.diff.gz
  to pool/main/p/ptlib/ptlib_2.6.5-1.diff.gz
ptlib_2.6.5-1.dsc
  to pool/main/p/ptlib/ptlib_2.6.5-1.dsc
ptlib_2.6.5.orig.tar.gz
  to pool/main/p/ptlib/ptlib_2.6.5.orig.tar.gz



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.
Mark Purcell <[email protected]> (supplier of updated ptlib 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: Sat, 03 Oct 2009 17:11:51 +1000
Source: ptlib
Binary: libpt2.6.5 libpt-dev libpt2.6.5-dbg libpt-doc libpt2.6.5-plugins
Architecture: source all i386
Version: 2.6.5-1
Distribution: unstable
Urgency: low
Maintainer: Debian VoIP Team <[email protected]>
Changed-By: Mark Purcell <[email protected]>
Description: 
 libpt-dev  - Portable Tools Library development files
 libpt-doc  - Portable Tools Library documentation & sample files
 libpt2.6.5 - Portable Tools Library
 libpt2.6.5-dbg - Portable Tools Library development debug files
 libpt2.6.5-plugins - Portable Tools Library plugins
Closes: 545948
Changes: 
 ptlib (2.6.5-1) unstable; urgency=low
 .
   * New upstream release
     - fix compilation on kFreeBSD (Closes: #545948)
Checksums-Sha1: 
 74e367afb1f433f65dfb7ad9bb34c7af5898fae7 1945 ptlib_2.6.5-1.dsc
 ad8c63f3dc3bcb8c309ba3b674fc02d4d7dd9f11 4861936 ptlib_2.6.5.orig.tar.gz
 5c31f85649499574c81b23edc87272d31eadbe69 22707 ptlib_2.6.5-1.diff.gz
 30795d937707a4c7ef8333ec8f863bd03bc0de38 3791944 libpt-doc_2.6.5-1_all.deb
 9acbb555f9c8be5bad0b9fc6b21ed26796414d3b 1155684 libpt2.6.5_2.6.5-1_i386.deb
 5b299790d4c3a245754ae2ece96ead6f68340621 2249380 libpt-dev_2.6.5-1_i386.deb
 39c7835147691b64009642ada1eec5080be68019 4259698 
libpt2.6.5-dbg_2.6.5-1_i386.deb
 08a621dab47de8e95577468457ca6f6afd095dbe 114702 
libpt2.6.5-plugins_2.6.5-1_i386.deb
Checksums-Sha256: 
 3c19ed75372655c3960662614934af5e5d8fd00e23df65122a8e811c1a7519a2 1945 
ptlib_2.6.5-1.dsc
 ae8ecf50a39d204910408934f2ab6965310e350c8c3ef4309dca985c761d05fb 4861936 
ptlib_2.6.5.orig.tar.gz
 5459731651e1c2dc92f0852bba6d278fecbb403409c0817b7bb72a95e47bfcd4 22707 
ptlib_2.6.5-1.diff.gz
 3546c6735b087ed73e38263c4cd22d60ead457ded00e7ae0f4898acdc6f8f699 3791944 
libpt-doc_2.6.5-1_all.deb
 76c5d2594216986ad3ced90b7508cc1e8e53bf0c0d7f5867edeccd14ea4a1b2f 1155684 
libpt2.6.5_2.6.5-1_i386.deb
 c10bbcc2c18504708a4facff13c5cb22b8a4f9d9220e993c2411a0282dbb5962 2249380 
libpt-dev_2.6.5-1_i386.deb
 d741a2093824f3e26d90ceea360b710cdb4b3cf860db1a17aa72cd85a88cca79 4259698 
libpt2.6.5-dbg_2.6.5-1_i386.deb
 c03d6cb7d047c88029d1abd72e6cc62521f315ac4eede93b8ea8ad283242ee99 114702 
libpt2.6.5-plugins_2.6.5-1_i386.deb
Files: 
 74bd64d3bd27a5d3dabac513dab38891 1945 libs optional ptlib_2.6.5-1.dsc
 a7381ea6bbd35ee15e21eb1be107d6d5 4861936 libs optional ptlib_2.6.5.orig.tar.gz
 8b570f9a3d5d95087f8d886cae641e89 22707 libs optional ptlib_2.6.5-1.diff.gz
 a564e2d5b82fd0752495e2da1db3bdaa 3791944 doc extra libpt-doc_2.6.5-1_all.deb
 0d278812efd9c2f948313456d1785d28 1155684 libs optional 
libpt2.6.5_2.6.5-1_i386.deb
 c31b6dfd7ffd6f2ae6309a44bf83cde7 2249380 libdevel optional 
libpt-dev_2.6.5-1_i386.deb
 4a69a6bbe713933733b9434487ff96a3 4259698 debug extra 
libpt2.6.5-dbg_2.6.5-1_i386.deb
 c56ed04e3cd30c4905cce64177ff57c9 114702 libs optional 
libpt2.6.5-plugins_2.6.5-1_i386.deb

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

iEYEARECAAYFAkrG+eAACgkQoCzanz0IthJhGQCdHdTrUakgAHgNjgA06r4K6qzn
8V8An37bIHAY3JLsZO5FJ0lecnU2SHmb
=9wmq
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to