Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-08-2014, 05:37 AM
|
#1
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Rep:
|
py3cairo slackbuild fails
Hi,
trying to build py3cairo from SlackBuilds on Slackware 14.1 fails with the following message:
Code:
pycairo-1.10.0/test/isurface_get_data.py
pycairo-1.10.0/test/pygame-test1.py
pycairo-1.10.0/test/pygame-test2.py
pycairo-1.10.0/test/surface_create_for_stream.py
pycairo-1.10.0/test/surface_write_to_png.py
pycairo-1.10.0/waf
pycairo-1.10.0/wscript
./options()
Setting top to : /tmp/SBo/pycairo-1.10.0
Setting out to : /tmp/SBo/pycairo-1.10.0/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python3
Checking for python version : (3, 4, 0, 'final', 0)
Checking for library python3.4 in LIBDIR : not found
Checking for library python3.4 in python_LIBPL : not found
Checking for library python3.4 in $prefix/libs : not found
Checking for library python3.4m in LIBDIR : yes
Checking for program python3.4-config : /usr/bin/python3.4-config
command ['/usr/bin/python3', '/usr/bin/python3.4-config', '--includes'] returned 1
Any ideas how I can get it built?
Last edited by slacksam; 05-08-2014 at 09:19 AM.
Reason: Solved
|
|
|
05-08-2014, 06:39 AM
|
#2
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,887
|
do you have python3 installed?
|
|
|
05-08-2014, 06:39 AM
|
#3
|
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,414
Rep: 
|
Did you install python3? If yes, I'd suggest you contact the slackbuild's maintainer.
|
|
|
05-08-2014, 06:54 AM
|
#4
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
Hi Willy and Didier,
thanks for your replies.
Python 3 is installed, works and was found by the build script:
Code:
...
Checking for program python : /usr/bin/python3
Checking for python version : (3, 4, 0, 'final', 0)
...
I will try to contact the maintainer. Thanks.
|
|
|
05-08-2014, 07:14 AM
|
#5
|
Member
Registered: Aug 2012
Location: Ryomgård, Danmark
Distribution: Slackware64
Posts: 146
Rep: 
|
It's needed to patch py3cairo to build it with python 3.4.0
Here you get patches and howto:
http://www.linuxfromscratch.org/blfs...s.html#pycairo
If you also want to build pygobject, only the newest one (version 3.12.1) builds with python 3.4.0.
With older versions You get this error:
"SystemError: Parent module '' not loaded, cannot perform relative import"
Also needed for building pygobject is:
* glib2 >= 2.38.0 and
* gobject-introspection-1.0 >= 1.38.0
... and probably also very new gtk3 stuff
But enjoy :-)
Last edited by ml4711; 05-08-2014 at 07:16 AM.
|
|
1 members found this post helpful.
|
05-08-2014, 09:18 AM
|
#6
|
Member
Registered: Oct 2012
Location: Germany
Distribution: Slackware, Salix, slarm64
Posts: 212
Original Poster
Rep:
|
@ml4711: Cool, it worked!
Saving the patch files into the slackbuild directory and changing py3cairo.SlackBuild, the lines
Code:
...
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
PYTHON="/usr/bin/python3" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
...
to
Code:
...
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2
cd $SRCNAM-$VERSION
cp $CWD/*.patch .
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
patch -Np1 -i pycairo-1.10.0-waf_unpack-1.patch
wafdir=$(python3 ./waf unpack)
pushd $wafdir
patch -Np1 -i ../pycairo-1.10.0-waf_python_3_4-1.patch
popd
unset wafdir
PYTHON="/usr/bin/python3" \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
...
did the job.
Very cool!
Now I will try to build pygobject.
Thank you very much!
|
|
|
05-08-2014, 09:54 AM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,887
|
Thanks
it's now fixed on my branch ( http://slackbuilds.org/cgit/slackbuilds/log/?h=willysr) and it will be part of the next public update
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 05:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|