(*** This bug was imported into bugs.kde.org ***) Package: kdevelop Version: kdesdk-2.2.1 (using KDE 2.2.1 ) Severity: normal Installed from: FreeBSD Ports Compiler: g++ 2.95.3 OS: FreeBSD OS/Compiler notes: FreeBSD 4.4-RELEASE Patch included. Concerning kdesdk: In kapptemplate.common: 302c302 < FILES=`cd $DIRECTORY; find . ! -name "*~" -maxdepth 1 -type f -print | sed 's^\./'`; --- > FILES=`cd $DIRECTORY; find . ! -name "*~" -maxdepth 1 -type f -print | sed 's^\./' | sort`; This is a bug that was recently caused by another bug fix. "ls" implicitly sorts whereas "find" doesn't (at least from what I can see). Notice I did not use the "-s" flag for "sort" because the man page suggests that it is not portable. Next: On my FreeBSD system "make" is not symlinked to "gmake". The FreeBSD version of "make" cannot be used to build KDE software--"gmake" must be used instead. Would it be possible to always refer to "gmake" (I don't know if that symlink exists on Linux systems) or perhaps set "$MAKE" the same way that "$MKDIR" is being set? (Submitted via bugs.kde.org)
I should mention that proper sorting is necessary here. If the scripts are executed out of order the system breaks down. __________________________________________________ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.yahoo.com
The sed 's^\./' expression fails for me both on a Linux box and 4.7-RELEASE, I believe it should be sed 's+^\./++' for completeness. Mind also that sort may be locale aware - on some modern Linux boxes, dot-files sort _after_ all others.
Subject: kdesdk/kapptemplate CVS commit by mueller: sort the list of files CCMAIL: 35763-done@bugs.kde.org M +1 -1 kapptemplate.common 1.6 --- kdesdk/kapptemplate/kapptemplate.common #1.5:1.6 @@ -300,5 +300,5 @@ then # FILES=`/bin/ls -1 -I "no-exe" -I*~ $DIRECTORY`; - FILES=`cd $DIRECTORY; find . ! -name "*~" -maxdepth 1 -type f -print | sed 's,^\./,,'`; + FILES=`cd $DIRECTORY; find . ! -name "*~" -maxdepth 1 -type f -print | sed 's,^\./,,' | sort`; if [ ! "$FILES" ];