Bug 35763 - kapptemplate fails on FreeBSD
Summary: kapptemplate fails on FreeBSD
Status: RESOLVED FIXED
Alias: None
Product: kapptemplate
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: KDevelop-Devel List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-05 02:18 UTC by Shannon --Jj Behrens
Modified: 2003-07-25 21:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Shannon --Jj Behrens 2001-12-05 02:08:09 UTC
(*** 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)
Comment 1 Shannon --Jj Behrens 2001-12-05 02:39:30 UTC
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
Comment 2 groot 2003-02-17 14:49:49 UTC
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. 
Comment 3 Dirk Mueller 2003-07-25 21:10:21 UTC
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" ];