Your message dated Wed, 20 Apr 2005 19:47:31 -0400
with message-id <[EMAIL PROTECTED]>
and subject line Bug#304840: fixed in openldap2.2 2.2.23-3
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 17 Apr 2005 08:09:40 +0000
>From [EMAIL PROTECTED] Sun Apr 17 01:09:40 2005
Return-path: <[EMAIL PROTECTED]>
Received: from fep31-0.kolumbus.fi (fep31-app.kolumbus.fi) [193.229.0.35] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DN4qa-0000lt-00; Sun, 17 Apr 2005 01:09:40 -0700
Received: from bongo.cante.net ([81.197.3.110]) by fep31-app.kolumbus.fi
          with ESMTP
          id <[EMAIL PROTECTED]>
          for <[EMAIL PROTECTED]>; Sun, 17 Apr 2005 11:09:38 +0300
Received: from fw.cante.net ([192.168.1.3]:40576 helo=cante.cante.net)
        by bongo.cante.net with esmtp (Exim 4.50)
        id 1DN4qY-0001pu-8R; Sun, 17 Apr 2005 11:09:38 +0300
Received: from jaalto by cante.cante.net with local (Exim 4.50)
        id 1DN4rB-0005Yo-1D; Sun, 17 Apr 2005 11:10:17 +0300
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Jari Aalto <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: slapd: [slapd.postinst] FATAL ERROR: integer expression expected
X-Mailer: reportbug 3.9
Date: Sun, 17 Apr 2005 11:10:15 +0300
Message-Id: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-7.2 required=4.0 tests=BAYES_00,HAS_PACKAGE,
        REMOVE_REMOVAL_NEAR autolearn=no 
        version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: slapd
Version: 2.2.23-2
Severity: important

Preconditions:

slapd would not upgrade, so I removed it (apt-get remove slapd) and
ran install (apt-get install slapd). 

Error during install:

Reading Package Lists... Done
Building Dependency Tree... Done
Suggested packages:
  openldap-guide
The following NEW packages will be installed:
  slapd
0 upgraded, 1 newly installed, 0 to remove and 39 not upgraded.
Need to get 796kB of archives.
After unpacking 2241kB of additional disk space will be used.
Get:1 http://ftp.fi.debian.org unstable/main slapd 2.2.23-2 [796kB]
Fetched 796kB in 2s (278kB/s) 
Preconfiguring packages ...
Selecting previously deselected package slapd.
(Reading database ... 120482 files and directories currently installed.)
Unpacking slapd (from .../slapd_2.2.23-2_i386.deb) ...
Setting up slapd (2.2.23-2) ...
  Backing up /etc/ldap/slapd.conf in /var/backups/slapd-2.2.23-1... done.
  Enabling LDAPv2 support... already enabled.
  Moving old database directories to /var/backups:
  Loading from /var/backups/slapd-2.2.23-1: 
  - directory dc=cante,dc=net... /var/lib/dpkg/info/slapd.postinst: line 103: 
/var/backups/slapd-2.2.23-1/dc=cante,dc=net.ldif: No such file or directory
/var/lib/dpkg/info/slapd.postinst: line 106: [: : integer expression expected
failed.

Loading the database from the LDIF dump failed with the following
error while running slapadd:
    /var/backups/slapd-2.2.23-1/dc=cante,dc=net.ldif: No such file or directory
dpkg: error processing slapd (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 slapd
E: Sub-process /usr/bin/dpkg returned an error code (1)

The offending code:

     96 automatic_ldif_fixing_wanted_for() {                                    
# 
     96 {{{ 
     97 # Check if the user wants us to automatically fix the given LDIF file.
     98 # Usage: if automatic_ldif_fixing_wanted_for "$file"; then ...
     99 # XXX: Use debconf to configure this
    100 
    101         local file size maxsize
    102         file="$1"
    103         size=`wc -c < "$file"`
    104         maxsize=$((1024 * 1024 * 20))
    105 
    106         if [ "$size" -lt "$maxsize" ]; then 
    107                 return 0
    108         else
    109                 return 1
    110         fi
    111 }

Suggestion:

Check for existence of file before proceeding.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=C, LC_CTYPE=C (charmap=ISO-8859-1) (ignored: LC_ALL set to en_US)

Versions of packages slapd depends on:
ii  coreutils [fileutils]       5.2.1-2      The GNU core utilities
ii  debconf                     1.4.48       Debian configuration management sy
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-18    Berkeley v4.2 Database Libraries [
ii  libiodbc2                   3.52.2-3     iODBC Driver Manager
ii  libldap-2.2-7               2.2.23-2     OpenLDAP libraries
ii  libltdl3                    1.5.6-6      A system independent dlopen wrappe
ii  libperl5.8                  5.8.4-8      Shared Perl library
ii  libsasl2                    2.1.19-1.5   Authentication abstraction library
ii  libslp1                     1.0.11a-2    OpenSLP libraries
ii  libssl0.9.7                 0.9.7e-3     SSL shared libraries
ii  libwrap0                    7.6.dbs-8    Wietse Venema's TCP wrappers libra
ii  perl [libmime-base64-perl]  5.8.4-8      Larry Wall's Practical Extraction 
ii  psmisc                      21.6-1       Utilities that use the proc filesy

-- debconf information excluded

---------------------------------------
Received: (at 304840-close) by bugs.debian.org; 20 Apr 2005 23:56:46 +0000
>From [EMAIL PROTECTED] Wed Apr 20 16:56:46 2005
Return-path: <[EMAIL PROTECTED]>
Received: from newraff.debian.org [208.185.25.31] (mail)
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1DOP3m-0005N4-00; Wed, 20 Apr 2005 16:56:46 -0700
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
        id 1DOOup-0006Q9-00; Wed, 20 Apr 2005 19:47:31 -0400
From: Torsten Landschoff <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
X-Katie: $Revision: 1.55 $
Subject: Bug#304840: fixed in openldap2.2 2.2.23-3
Message-Id: <[EMAIL PROTECTED]>
Sender: Archive Administrator <[EMAIL PROTECTED]>
Date: Wed, 20 Apr 2005 19:47:31 -0400
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 
X-CrossAssassin-Score: 5

Source: openldap2.2
Source-Version: 2.2.23-3

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

ldap-utils_2.2.23-3_i386.deb
  to pool/main/o/openldap2.2/ldap-utils_2.2.23-3_i386.deb
libldap-2.2-7_2.2.23-3_i386.deb
  to pool/main/o/openldap2.2/libldap-2.2-7_2.2.23-3_i386.deb
openldap2.2_2.2.23-3.diff.gz
  to pool/main/o/openldap2.2/openldap2.2_2.2.23-3.diff.gz
openldap2.2_2.2.23-3.dsc
  to pool/main/o/openldap2.2/openldap2.2_2.2.23-3.dsc
slapd_2.2.23-3_i386.deb
  to pool/main/o/openldap2.2/slapd_2.2.23-3_i386.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 Landschoff <[EMAIL PROTECTED]> (supplier of updated openldap2.2 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: Thu, 21 Apr 2005 01:29:57 +0200
Source: openldap2.2
Binary: slapd ldap-utils libldap-2.2-7
Architecture: source i386
Version: 2.2.23-3
Distribution: unstable
Urgency: low
Maintainer: Torsten Landschoff <[EMAIL PROTECTED]>
Changed-By: Torsten Landschoff <[EMAIL PROTECTED]>
Description: 
 ldap-utils - OpenLDAP utilities
 libldap-2.2-7 - OpenLDAP libraries
 slapd      - OpenLDAP server (slapd)
Closes: 265860 303243 304339 304549 304840
Changes: 
 openldap2.2 (2.2.23-3) unstable; urgency=low
 .
   Steve Langasek <[EMAIL PROTECTED]>
   * libraries/libldap_r/Makefile.in: Code that uses pthreads *must* be
     linked with -pthread, even if it's a library; without this, the
     libldap_r library ends up with dangling unversioned reference to
     pthread_create() which gets resolved to a wrong version that causes
     segfaults on 64-bit platforms.  Closes: #304549.
   * debian/rules: error out on build if an installed library has
     undefined symbols; future-proofing against a repeat of #304549.
   * debian/slapd.postinst: don't dump and reload directories unless we
     know we're upgrading from an incompatible version!  Closes: #304840.
   * debian/slapd.scripts-common: don't use merge_logical_lines for
     functions that will be writing back to the config; the code is not
     as pretty now, but the output is much less ugly. Closes: #303243.
   * debian/slapd.examples, debian/slapd.scripts-common,
     debian/slapd.links, debian/move_files: install DB_CONFIG in
     /usr/share/slapd/ instead of /usr/share/doc/slapd/examples/; this
     simplifies the code, and ensures users who don't install
     /usr/share/doc aren't penalized.  Create links for the DB_CONFIG and
     slapd.confg templates to /usr/share/doc/slapd/examples, since these
     are worthwhile examples as well.
   * Updated maintainer scripts to keep DB_CONFIG for LDAP databases over
     upgrades (closes: #265860).
   * Move slappasswd to the slapd package, since it's now a symlink and
     isn't actually useful without the slapd binary (closes: #304339).
Files: 
 7c942ffec1c8d65ba0658fd26f7fa515 999 net optional openldap2.2_2.2.23-3.dsc
 62b2bcb60d20dbbbbd01ed58994fccc8 478104 net optional 
openldap2.2_2.2.23-3.diff.gz
 f242a20d7673b377d8bb8d93d6ab0960 797980 net optional slapd_2.2.23-3_i386.deb
 d223b5b37666dcdb1ea8ca3e0de21c71 117314 net optional 
ldap-utils_2.2.23-3_i386.deb
 46c7ac17ee7b4a24ea75941f8c8b859f 240602 libs important 
libldap-2.2-7_2.2.23-3_i386.deb

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

iD8DBQFCZugMdQgHtVUb5EcRAn14AJ4sbnxkvFoI/mQ4eHkWMi12APMAdQCffLLw
4Yidij2MCYjkXe1Up9trAC0=
=xn9A
-----END PGP SIGNATURE-----


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to