Bug#775550: [Pkg-fedora-ds-maintainers] Bug#775550: 389-ds-base: Update fails when /var mounted on different filesystem than /etc

2016-03-29 Thread Timo Aaltonen
17.01.2015, 10:23, Michal Kaspar kirjoitti:
> Package: 389-ds-base
> Version: 1.3.3.5-3
> Severity: normal
> 
> Dear Maintainer,
> When updating package 389-ds-base, update fails and leaves directory server 
> in uconfigured state if /var is mounted on separate filesystem. There is no 
> apparent error, but changing /var/lib/dpkg/info/389-ds-base.postinst
> setup-ds -l $OUT -u -s General.UpdateMode=offline > $OUT 2>&1
> to
> setup-ds -l $OUT -u -s General.UpdateMode=offline
> reveals the problem in this postinst script. The error is:
> Could not rename config file 
> '/etc/dirsrv/slapd-KASPAR-IN/slapd-collations.conf' to 
> '/var/lib/dirsrv/slapd-KASPAR-IN/bak.bak/slapd-collations.conf'.  Error: 
> Invalid cross-device link
> Creating symlink /etc/dirsrv/bak -> 
> /var/lib/dirsrv/salpd-instance/{bak,bak.bak} resolves the problem but it's 
> not exactly elegant solution.

I dropped the patch to use move instead of rename, because turns out it
works even worse and for everyone.. and also because it was also
unnecessary since this upstream commit that I failed to notice until now:

commit c0d233b60311e2bf65dc13eee6f12abe221be932
Author: Ludwig Krispenz 
Date:   Tue Jan 20 10:34:41 2015 +0100

Ticket 47991 - upgrade script fails if /etc and /var are on
different file systems



-- 
t



Bug#775550: 389-ds-base: Update fails when /var mounted on different filesystem than /etc

2015-01-17 Thread Michal Kaspar
Package: 389-ds-base
Version: 1.3.3.5-3
Severity: normal

Dear Maintainer,
When updating package 389-ds-base, update fails and leaves directory server in 
uconfigured state if /var is mounted on separate filesystem. There is no 
apparent error, but changing /var/lib/dpkg/info/389-ds-base.postinst
setup-ds -l $OUT -u -s General.UpdateMode=offline  $OUT 21
to
setup-ds -l $OUT -u -s General.UpdateMode=offline
reveals the problem in this postinst script. The error is:
Could not rename config file 
'/etc/dirsrv/slapd-KASPAR-IN/slapd-collations.conf' to 
'/var/lib/dirsrv/slapd-KASPAR-IN/bak.bak/slapd-collations.conf'.  Error: 
Invalid cross-device link
Creating symlink /etc/dirsrv/bak - 
/var/lib/dirsrv/salpd-instance/{bak,bak.bak} resolves the problem but it's not 
exactly elegant solution.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (650, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages 389-ds-base depends on:
ii  389-ds-base-libs 1.3.3.5-3
ii  adduser  3.113+nmu3
ii  debconf [debconf-2.0]1.5.55
ii  init-system-helpers  1.22
ii  ldap-utils   2.4.40-3
ii  libc62.19-13
ii  libdb5.3 5.3.28-9
ii  libgcc1  1:4.9.2-10
ii  libicu52 52.1-6
ii  libldap-2.4-22.4.40-3
ii  libmozilla-ldap-perl 1.5.3-2+b1
ii  libnetaddr-ip-perl   4.075+dfsg-1+b1
ii  libnspr4 2:4.10.7-1
ii  libnss3  2:3.17.2-1.1
ii  libnss3-1d   2:3.17.2-1.1
ii  libpam0g 1.1.8-3.1
ii  libpci3  1:3.2.1-3
ii  libperl4-corelibs-perl   0.003-1
ii  libsasl2-2   2.1.26.dfsg1-12
ii  libsasl2-modules-gssapi-mit  2.1.26.dfsg1-12
ii  libsensors4  1:3.3.5-2
ii  libsnmp305.7.2.1~dfsg-7
ii  libsocket-getaddrinfo-perl   0.22-1+b1
ii  libssl1.0.0  1.0.1k-1
ii  libstdc++6   4.9.2-10
ii  libsvrcore0  1:4.0.4-15
ii  libwrap0 7.6.q-25
ii  perl 5.20.1-4
ii  python   2.7.8-2

389-ds-base recommends no packages.

389-ds-base suggests no packages.

-- Configuration Files:
/etc/default/dirsrv changed:
KRB5CCNAME=/tmp/krb5cc_114
KRB5_KTNAME=/etc/dirsrv/ds.keytab

/etc/default/dirsrv.systemd changed:
[Service]
LimitNOFILE=8192


-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org