SOLVED _File "bin_strip" created when building giblib

General talk about packaging procedures and packages.
Post Reply
User avatar
mimosa
Salix Warrior
Posts: 3103
Joined: 25. May 2010, 17:02
Contact:

SOLVED _File "bin_strip" created when building giblib

Post by mimosa » 12. Sep 2012, 11:41

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

User avatar
gapan
Salix Wizard
Posts: 5536
Joined: 6. Jun 2009, 17:40

Re: SOLVED _File "bin_strip" created when building giblib

Post by gapan » 12. Sep 2012, 22:13

That is weird. No idea really, but I don't think it's needed at all.
Image
Image

User avatar
laprjns
Salix Warrior
Posts: 1039
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SOLVED _File "bin_strip" created when building giblib

Post by laprjns » 12. Sep 2012, 22:39

I've seen this a few times in the past. I just ignore it.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

User avatar
mimosa
Salix Warrior
Posts: 3103
Joined: 25. May 2010, 17:02
Contact:

Re: SOLVED _File "bin_strip" created when building giblib

Post by mimosa » 12. Sep 2012, 22:52

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 ...

User avatar
gapan
Salix Wizard
Posts: 5536
Joined: 6. Jun 2009, 17:40

Re: SOLVED _File "bin_strip" created when building giblib

Post by gapan » 13. Sep 2012, 08:10

I'm guessing something is trying to strip a script, which doesn't makes sense and somehow a copy of the script is created.
Image
Image

User avatar
laprjns
Salix Warrior
Posts: 1039
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: SOLVED _File "bin_strip" created when building giblib

Post by laprjns » 13. Sep 2012, 09:53

Looking into this a little closer, it actually slk-pkgcheck that generating the bin_strip file, not slkbuild.
“Don’t you see that the whole aim of Newspeak is to narrow the range of thought?"

User avatar
mimosa
Salix Warrior
Posts: 3103
Joined: 25. May 2010, 17:02
Contact:

Re: SOLVED _File "bin_strip" created when building giblib

Post by mimosa » 13. Sep 2012, 10:42

Well at least that shows I'm being thorough :mrgreen:

Post Reply