Page 1 of 1

SOLVED _File "bin_strip" created when building giblib

Posted: 12. Sep 2012, 11:41
by mimosa
EDIT2 Not quite solved, because I still don't know where that file came from ... but I was unable to reproduce this and I think I must have copied the file from somewhere by mistake. I'm going to go ahead and submit the package.


What is this file, and is it needed (should it be included in the "source" list in the SLKBUILD)?

EDIT it appears in the build directory on running slkbuild.

I think this has only occurred with this package, so far. Here it is:

Code: Select all

#!/bin/sh

prefix=/usr
exec_prefix=${prefix}
exec_prefix_set=no

usage="\
Usage: giblib-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"

if test $# -eq 0; then
      echo "${usage}" 1>&2
      exit 1
fi

while test $# -gt 0; do
  case "$1" in
  -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  *) optarg= ;;
  esac

  case $1 in
    --prefix=*)
      prefix=$optarg
      if test $exec_prefix_set = no ; then
        exec_prefix=$optarg
      fi
      ;;
    --prefix)
      echo $prefix
      ;;
    --exec-prefix=*)
      exec_prefix=$optarg
      exec_prefix_set=yes
      ;;
    --exec-prefix)
      echo $exec_prefix
      ;;
    --version)
      echo 1.2.4
      ;;
    --cflags)
      if test ${prefix}/include != /usr/include ; then
        includes=-I${prefix}/include
      fi
      echo $includes -I$prefix/include/giblib 
      ;;
    --libs)
      libdirs=-L/usr/lib
      echo $libdirs -lgiblib  -L/usr/lib -lImlib2 -lfreetype -lz -lbz2 -lX11 -lXext -ldl -lm
      ;;
    *)
      echo "${usage}" 1>&2
      exit 1
      ;;
  esac
  shift
done

exit 0

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 12. Sep 2012, 22:13
by gapan
That is weird. No idea really, but I don't think it's needed at all.

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 12. Sep 2012, 22:39
by laprjns
I've seen this a few times in the past. I just ignore it.

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 12. Sep 2012, 22:52
by mimosa
Given the intended rigour of the packaging process, that's disconcerting.

The question is, is it an artifact of the slkbuild script, or the source? I'd guess the former ...

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 13. Sep 2012, 08:10
by gapan
I'm guessing something is trying to strip a script, which doesn't makes sense and somehow a copy of the script is created.

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 13. Sep 2012, 09:53
by laprjns
Looking into this a little closer, it actually slk-pkgcheck that generating the bin_strip file, not slkbuild.

Re: SOLVED _File "bin_strip" created when building giblib

Posted: 13. Sep 2012, 10:42
by mimosa
Well at least that shows I'm being thorough :mrgreen: