Bug#811382: gosa: fails to install: ln: './bin': cannot overwrite directory

2016-01-31 Thread Wolfgang Schweer
On Mon, Jan 18, 2016 at 02:35:14PM +0100, Andreas Beckmann wrote:
>   ln: './bin': cannot overwrite directory

I figure that this will fix the problem:

diff --git a/debian/gosa.postinst b/debian/gosa.postinst
index 573e32e..44cfdcb 100755
--- a/debian/gosa.postinst
+++ b/debian/gosa.postinst
@@ -137,7 +137,7 @@ fi
 
 # Add links for safe mode
 [ ! -d /usr/share/gosa/bin ] && mkdir -p /usr/share/gosa/bin
-for source in "$(which convert)" "$(which lpstat)"; do
+for source in $(which convert) $(which lpstat); do
if [ -e $source ]; then
target=/usr/share/gosa/bin/${source##*/}
[ ! -L $target ] && ln -sf $source $target


Wolfgang


signature.asc
Description: Digital signature


Bug#811382: gosa: fails to install: ln: './bin': cannot overwrite directory

2016-01-18 Thread Andreas Beckmann
Package: gosa
Version: 2.7.4+reloaded2-7
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package failed to install. As
per definition of the release team this makes the package too buggy for
a release, thus the severity.

>From the attached log (scroll to the bottom...):

  Selecting previously unselected package gosa.
  (Reading database ... 
(Reading database ... 12111 files and directories currently installed.)
  Preparing to unpack .../gosa_2.7.4+reloaded2-7_all.deb ...
  Unpacking gosa (2.7.4+reloaded2-7) ...
  Setting up gosa (2.7.4+reloaded2-7) ...
  Making /gosa available in /etc/apache2/conf-available
  apache2_invoke: Enable configuration gosa
  Running in chroot, ignoring request.
  invoke-rc.d: policy-rc.d denied execution of reload.
  apache2_invoke: Enable module headers
  Running in chroot, ignoring request.
  invoke-rc.d: policy-rc.d denied execution of restart.
  Running in chroot, ignoring request.
  invoke-rc.d: policy-rc.d denied execution of reload.
  ln: './bin': cannot overwrite directory
  dpkg: error processing package gosa (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   gosa


cheers,

Andreas


gosa_2.7.4+reloaded2-7.log.gz
Description: application/gzip