[Slackbuilds-users] [slackbuilds-users] sage-8.0 OPTIONALSPKG fails to find optional packages

King Beowulf kingbeowulf at gmail.com
Mon Aug 7 05:26:20 UTC 2017


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




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20170806/a077850f/attachment.asc>


More information about the SlackBuilds-users mailing list