[Kolab-devel] [issue2924] install-kolab.sh: -maxdepth/-mindepth not supported by all find implementations

ComCept Soliva soliva at comcept.ch
Sat Mar 21 06:03:03 CET 2009


Any news for this issue?

Mail: soliva at comcept.ch 

-----Ursprüngliche Nachricht-----
Von: ComCept Soliva [mailto:soliva at comcept.ch] 
Gesendet: Samstag, 7. März 2009 07:22
An: 'kolab-devel at kolab.org'
Betreff: [issue2924] install-kolab.sh: -maxdepth/-mindepth not supported by
all find implementations

Hi all

I tried to compile the RC1 release for Kolab on Solaris 10 Sparc. The
issue2924 still exists. The workaround to remove the options:

-mindepth 1 -maxdepth 1

completly from install-kolab.sh scripts works but is if there is something
and compilation has to start again a risk meaning if following line in
install-kolab.sh scripts is afterwards not manipulated:

    62  #mktmpdir() {
    63  #  newtmp="${TMPDIR-/tmp}/install-kolab.$RANDOM.$RANDOM.$RANDOM.$$"
    64  #  (umask 022 && mkdir "$newtmp") || {
    65  #    echo "Could not create temporary directory! Exiting." 1>&2
    66  #    exit 1
    67  #  }
    68  #  echo "$newtmp"
    69  #}



   193  SRCDIR=`pwd`
   194  #WORKDIR=`mktmpdir`
   195  WORKDIR="/tmp/install-kolab....8544"
   196  echo "Changing to temporary working directory $WORKDIR ..."
   197  cd "$WORKDIR"
   198  populate_workdir


kind regards

Mail: soliva at comcept.ch 
-----Ursprüngliche Nachricht-----
Von: Thomas Arendsen Hein [mailto:kolab-issues at intevation.de] 
Gesendet: Mittwoch, 23. Juli 2008 12:40
An: bernhard at intevation.de; martin.konold at erfrakon.de; p at rdus.de;
soliva at comcept.ch; till at kdab.net; wilde at intevation.de
Betreff: [issue2924] install-kolab.sh: -maxdepth/-mindepth not supported by
all find implementations


New submission from Thomas Arendsen Hein <thomas at intevation.de>:

> Changing to temporary working directory /tmp/install-kolab....1444 ...
> find: bad option -mindepth
> find: [-H | -L] path-list predicate-list

Seems as if Solaris' find does not support -mindepth and -maxdepth,
so we have to find a different syntax to detect the needed files,
maybe using eval (which I try to avoid if possible).

-mindepth and -maxdepth was used in the script before, so we thought
it would work.

> Found a source based OpenPKG installer. Trying to install Kolab from
source.
> Creating binary openpkg package from ./openpkg-20071227-20071227.src.sh!

Hmm, it should not have found the .src.sh without a working find
command, but we'll see.

> Processing files: openpkg-20071227-20071227
> Wrote:
/kolab/RPM/PKG/openpkg-20071227-20071227.sparc64-solaris10-kolab.rpm
> Executing(%clean): env -i /kolab/lib/openpkg/bash --norc --noprofile
--posix
-e /kolab/RPM/TMP/rpm-tmp.1024
> + cd /kolab/RPM/TMP
> + '[' . = .1 ']'
> + rm -rf openpkg-20071227
> + rm -rf /kolab/RPM/TMP/openpkg-20071227-root
> + exit 0
> Executing(--clean): env -i /kolab/lib/openpkg/bash --norc --noprofile
--posix
-e /kolab/RPM/TMP/rpm-tmp.18771
> + cd /kolab/RPM/TMP
> + exit 0
> Preparing...
##################################################
> openpkg
##################################################
> :::: /tmp/install-kolab....1444/openpkg-20071227-20071227.src.rpm = 0 ::::
> :::: /tmp/install-kolab....1444/make-3.81-20080101.src.rpm ::::
> error: cannot open /tmp/install-kolab....1444/make-3.81-20080101.src.rpm:
No
such file or directory

The script should have aborted earlier here.

----------
assignedto: thomas
messages: 15868
nosy: bernhard, martin, soliva, thomas, till, wilde, wrobel
priority: bug
status: unread
title: install-kolab.sh: -maxdepth/-mindepth not supported by all find
implementations
topic: server
___________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://www.intevation.de/roundup/kolab/issue2924>
___________________________________________________




More information about the devel mailing list