Your message dated Tue, 14 Mar 2006 06:47:15 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#273800: fixed in libnss-pgsql 1.3-0.1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libnss-pgsql
Severity: normal
Tags: patch

When building 'libnss-pgsql' on amd64 I get the following error:

gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
-DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"libnss-pgsql\" 
-DVERSION=\"1.0.2\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
-DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 
-DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_UNISTD_H=1 
-DHAVE_NSS_H=1 -DHAVE_LIBPQ=1 -DHAVE_DLFCN_H=1 -I. -I. -DLIBDIR=\"/lib\" 
-DSYSCONFDIR=\"/etc\" -D_GNU_SOURCE -O2 -Wall -Wstrict-prototypes -g -O2 -MT 
interface.lo -MD -MP -MF .deps/interface.Tpo -c interface.c  -fPIC -DPIC -o 
interface.lo
In file included from interface.c:16:
/usr/include/bits/libc-lock.h:35:27: lowlevellock.h: No such file or directory
/usr/include/bits/libc-lock.h:36:18: tls.h: No such file or directory
/usr/include/bits/libc-lock.h:37:32: pthread-functions.h: No such file or 
directory
make[2]: *** [interface.lo] Error 1
make[2]: Leaving directory `/libnss-pgsql-1.0.2/src'

This error is apparently caused by internal differences between 
the linuxthreads and nptl implementations (on amd64 the newer nptl
is used exclusively).

With the attached patch 'libnss-pgsql' can be compiled with both 
linuxthreads and nptl.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libnss-pgsql-1.0.2/src/interface.c ./src/interface.c
--- ../tmp-orig/libnss-pgsql-1.0.2/src/interface.c      2004-09-28 
09:56:55.839616880 +0200
+++ ./src/interface.c   2004-09-28 09:56:47.068950224 +0200
@@ -11,11 +11,9 @@
 #include "nss-pgsql.h"
 #include <stdio.h>
 #include <stdlib.h>
-#define _LIBC
-#define NOT_IN_libc
-#include <bits/libc-lock.h>
+#include <pthread.h>
 
-static __libc_lock_t  lock;
+static pthread_mutex_t lock;
 
 /*
  * passwd functions
@@ -25,7 +23,7 @@
 {
         enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(!backend_isopen()) {
                 backend_open();
         }
@@ -33,7 +31,7 @@
                 backend_prepare("passwd");
                 retval = NSS_STATUS_SUCCESS;
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -41,9 +39,9 @@
 enum nss_status
 _nss_pgsql_endpwent(void)
 {
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         backend_close();
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return NSS_STATUS_SUCCESS;
 }
@@ -56,7 +54,7 @@
 {
         enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
 
         // Make sure the database is opened in case no one has called 
setpwent()
         if(!backend_isopen())
@@ -65,7 +63,7 @@
         if(backend_isopen())
                 retval = backend_getpwent(result, buffer, buflen, errnop);
 
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -79,12 +77,12 @@
 {
         enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(backend_open()) {
                 retval = backend_getpwnam(pwnam, result, buffer, buflen, 
errnop);
                 backend_close();
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -98,12 +96,12 @@
 {
        enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(backend_open()) {
                 retval = backend_getpwuid(uid, result, buffer, buflen, errnop);
                 backend_close();
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -116,7 +114,7 @@
 {
        enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(!backend_isopen()) {
                 backend_open();
         }
@@ -124,7 +122,7 @@
                 backend_prepare("group");
                 retval = NSS_STATUS_SUCCESS;
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return NSS_STATUS_SUCCESS;
 }
@@ -132,9 +130,9 @@
 enum nss_status
 _nss_pgsql_endgrent(void)
 {
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         backend_close();
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return NSS_STATUS_SUCCESS;
 }
@@ -147,7 +145,7 @@
 {
        enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
 
         // Make sure the database is opened in case no one has called 
setpwent()
         if(!backend_isopen())
@@ -156,7 +154,7 @@
         if(backend_isopen())
                 retval = backend_getgrent(result, buffer, buflen, errnop);
 
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -170,12 +168,12 @@
 {
        enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(backend_open()) {
                 retval = backend_getgrnam(grnam, result, buffer, buflen, 
errnop);
                 backend_close();
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -189,12 +187,12 @@
 {
        enum nss_status retval = NSS_STATUS_UNAVAIL;
 
-       __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
        if(backend_open()) {
                retval = backend_getgrgid(gid, result, buffer, buflen, errnop);
                backend_close();
        }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }
@@ -211,14 +209,14 @@
        enum nss_status retval = NSS_STATUS_UNAVAIL;
        size_t numgroups;
 
-        __libc_lock_lock(lock);
+        pthread_mutex_lock(&lock);
         if(backend_open()) {
                 numgroups = backend_initgroups_dyn(user, group, start, size, 
groupsp,
                                                                                
                                limit, errnop);
                 retval = (numgroups > 0) ? NSS_STATUS_SUCCESS : 
NSS_STATUS_NOTFOUND;
                 backend_close();
         }
-        __libc_lock_unlock(lock);
+        pthread_mutex_unlock(&lock);
 
         return retval;
 }


--- End Message ---
--- Begin Message ---
Source: libnss-pgsql
Source-Version: 1.3-0.1

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

libnss-pgsql1_1.3-0.1_i386.deb
  to pool/main/libn/libnss-pgsql/libnss-pgsql1_1.3-0.1_i386.deb
libnss-pgsql_1.3-0.1.dsc
  to pool/main/libn/libnss-pgsql/libnss-pgsql_1.3-0.1.dsc
libnss-pgsql_1.3-0.1.tar.gz
  to pool/main/libn/libnss-pgsql/libnss-pgsql_1.3-0.1.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.
Christian Bayle <[EMAIL PROTECTED]> (supplier of updated libnss-pgsql 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.7
Date: Tue, 14 Mar 2006 15:20:16 +0100
Source: libnss-pgsql
Binary: libnss-pgsql1
Architecture: source i386
Version: 1.3-0.1
Distribution: unstable
Urgency: low
Maintainer: Wichert Akkerman <[EMAIL PROTECTED]>
Changed-By: Christian Bayle <[EMAIL PROTECTED]>
Description: 
 libnss-pgsql1 - name service switch module using PostgreSQL
Closes: 273800
Changes: 
 libnss-pgsql (1.3-0.1) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Apply patch to fix FTBFS on amd64 (Closes: #273800).
Files: 
 574ab329f61bbed934683266044498e2 681 admin extra libnss-pgsql_1.3-0.1.dsc
 fe30e4a18a2c9ad992791a4e10ccd8ff 324328 admin extra libnss-pgsql_1.3-0.1.tar.gz
 9be0bd1b946b032f59b05dede9c74465 18338 admin extra 
libnss-pgsql1_1.3-0.1_i386.deb

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

iD8DBQFEFtQixa93SlhRC1oRAuKtAKCqrjWuqQlv2daO7T0wGqJibP7iewCfTJl9
/I1+X6SMLRrZClDF4tCXc+A=
=DKWp
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to