Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244590 - net-libs/courier-authlib-0.60.6: included 0.58-configure-db4.patch messes up Berkeley DB support
Summary: net-libs/courier-authlib-0.60.6: included 0.58-configure-db4.patch messes up...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-27 06:50 UTC by Jaco van der Schyff
Modified: 2009-07-21 10:10 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaco van der Schyff 2008-10-27 06:50:38 UTC
When emerging net-libs/courier-authlib-0.60.6: with Berkeley DB support (USE=berkdb -gdbm), seems to break Berkeley DB support.

The compile and install is executed, but as soon as a database rebuild makeuserdb is issued, the following error is reported:

#makeuserdb
Cannot store record for xxx@yyy.com - duplicate or out of disk space.

The problem seems to lie with the accompanying patch (0.58-configure-db4.patch)

If I remove the patch from the ebuild:

--- /tmp/courier-authlib-0.60.6.ebuild  2008-10-27 07:06:51.000000000 +0200
+++ /usr/portage/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild 2008-10-27 07:38:20.000000000 +0200
@@ -51,11 +51,7 @@
        unpack ${A}
        cd "${S}"
 
-       if ! use gdbm ; then
-               epatch "${FILESDIR}/0.59.2-configure-db4.patch"
-       else
-               epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch"
-       fi
+       epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch"
 
        sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
        sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed"

And create a new digest, makeuserdb runs as expected and DB support is once again workin.  The patch seems obsolete, please investigate.

- Jaco van der Schyff
jaco-spam@netgroup.co.za



Reproducible: Always

Steps to Reproduce:
1. Compile courier-authlib with: USE=berkdb -gdbm
2. Run makeuserdb
3.

Actual Results:  
makeuserdb reported error:

Cannot store record for xxx@yyy.com - duplicate or out of disk space.

Expected Results:  
/etc/courier/authlib/userdb.dat should have been created

--- /tmp/courier-authlib-0.60.6.ebuild  2008-10-27 07:06:51.000000000 +0200
+++ /usr/portage/net-libs/courier-authlib/courier-authlib-0.60.6.ebuild 2008-10-27 07:38:20.000000000 +0200
@@ -51,11 +51,7 @@
        unpack ${A}
        cd "${S}"
 
-       if ! use gdbm ; then
-               epatch "${FILESDIR}/0.59.2-configure-db4.patch"
-       else
-               epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch"
-       fi
+       epatch "${FILESDIR}/0.59.2-remove-obsolete-macro.patch"
 
        sed -i -e "s|^chk_file .* |&\${DESTDIR}|g" authmigrate.in || die "sed failed"
        sed -i -e'/for dir in/a@@INDENT@@/etc/courier-imap \\' authmigrate.in || die "sed failed"

Resolves the problem for me.

Emerge info:

Portage 2.1.4.5 (hardened/x86/2.6, gcc-4.1.1, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Xeon(R) CPU E5420 @ 2.50GHz
Timestamp of tree: Mon, 27 Oct 2008 06:30:10 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r9, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.61-r2
sys-devel/automake:  1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ac.za/gentoo.org/"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="berkdb bzip2 cracklib crypt dba dbm exiscan-acl flatfile hardened imap maildir mbox midi mime mysql nls nptl nptlonly pam pcre perl php pic png readline snmp sockets ssl tcpd urandom x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt intel mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-27 07:06:16 UTC
Thanks for reporting your problems with this patch, assigning to maintainers.
Comment 2 Hanno Böck gentoo-dev 2009-07-21 10:10:32 UTC
removed patch, hope this is fine now