[Slackbuilds-users] pygame slackbuild

Eric Hameleers eha at sox.homeip.net
Wed Sep 24 07:43:07 UTC 2008


On Tue, 23 Sep 2008, Andrea Maccis wrote:

> Hi,
> (I already sent a mail to the mantainer, but I only received "delivery status 
> notifications (delay)".)
> I tried to package pygame (with sbopkg), and configuration failed (python 
> config.py) because some dependencies were missing.
> I tried to re-compile it (by hand) and I got this warning message by 
> config.py:
>
> Warning, some of the pygame dependencies were not found. Pygame can still
>
> compile and install, but games that depend on those missing dependencies
>
> will not run. Would you like to continue the configuration? [Y/n]
>
>
> so I forced configuration without dependecies (numeric was missing) and 
> packaging was successfull.
> I think it would be better if pygame configuration works also without 
> dependencies, because if a dependency is mandatory, compiling will fail so 
> you can handle this error, and if it is optional maybe you don't need it.
> I think something like this could work
>
> python config.py
>
> if [ "${?}" -ne "0" ]; then
>
> echo "##############################################################";
>
> echo "Warning, some of the pygame dependencies were not found. ";
>
> echo "Pygame can still compile and install, but games that depend on";
>
> echo "those missing dependencies will not run.";
>
> echo "##############################################################";
>
> echo "Y" | python config.py
>
> fi
>
> Anyway, this is only a suggestion, I don't know if it is really a good choice 
> :-)
> Best regards,
>
> Andrea Maccis

Actually, this is exactly what I do in my own pygame.SlackBuild ...:

# smpeg and numeric will probably be missing (they are optionals),
# and config.py complains about those so we silence it using the echo:
echo "" | python config.py

So yes, good idea :-)
If you are unable to get response from the current maintainer, even after 
this publicly stated question, feel free to contact us and take over 
maintainership if you want to.

Cheers, Eric

-- 
Eric Hameleers
Email: alien at slackware.com
Jabber: alien at jabber.xs4all.nl
Gpg fingerprint: F2CE 1B92 EE1F 2C0C E97E  581E 5E56 AAAF A75C BDA0


More information about the SlackBuilds-users mailing list