Sage is in 'pending' and I had thought that the previous maintainer had
worked this out.  My script-fu is still young so comments are welcome.

OPTIONALSPKG="database_gap" ./sage.SlackBuild

fails with

Error: could not find a package matching
database_gap............................4.8.6
       Try 'sage --package list' to see the available packages
       There is no package similar to
database_gap............................4.8.6
You can find further packages at http://files.sagemath.org/spkg/

./sage -optainal
./sage --package list

both show that 'database_gap' exists. Manually running

cd /tmp/SBo/sage-8.0
./sage -i database_gap

downloads and builds 'database_gap' as expected.  The slackbuild stanza

# install optional packages as defined by the OPTIONALSPKG flag
OPTIONALSPKG=${OPTIONALSPKG:-no}
if [ "$OPTIONALSPKG" != "no" ]; then
    for i in ${OPTIONALSPKG}; do
        ./sage -i $(./sage -optional | grep ${i})
    done
fi

looks goofy since

# ./sage -optional | grep database_gap
database_gap............................4.8.6 (4.8.6)

which does not exist (extra characters)!

We could use

# ./sage -package list | grep database_gap
database_gap

but isn't that overly complex when simply

./sage -i ${i}

is sufficient?

-Ed




Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
SlackBuilds-users mailing list
SlackBuilds-users@slackbuilds.org
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/

Reply via email to