[Slackbuilds-users] [FYI]SlackBuild for python modules should be architecture dependent

Dušan Stefanović stefanovic.dusan at gmail.com
Thu May 28 15:12:49 UTC 2009


On Thu, May 28, 2009 at 15:48, Grissiom <chaos.proton at gmail.com> wrote:
> After some hack, I found a solution for this: write the SlackBuilds like
> this:
> ....
> if [ "$ARCH" = "i486" ]; then
>   SLKCFLAGS="-O2 -march=i486 -mtune=i686"
>   LIBDIRSUFFIX=""
> elif [ "$ARCH" = "i686" ]; then
>   SLKCFLAGS="-O2 -march=i686 -mtune=i686"
>   LIBDIRSUFFIX=""
> elif [ "$ARCH" = "x86_64" ]; then
>   SLKCFLAGS="-O2 -fPIC"
>   LIBDIRSUFFIX="64"
> fi
> ....
> ....
> python setup.py install --prefix=/usr
> --install-lib=/usr/lib${LIBDIRSUFFIX}/python2.6/site-packages/ --root=$PKG
> ....
>

Maybe like this:
ARCH=noarch
LIBDIRSUFFIX=${LIBDIRSUFFIX:-32}

there is no sense to use i486 or x86_64 as ARCH in noarch package just
to set directory right.

regards,
ds


More information about the SlackBuilds-users mailing list