Bug 30230 - add a --libdir option so we can install to the correct arch
Summary: add a --libdir option so we can install to the correct arch
Status: RESOLVED FIXED
Alias: None
Product: pycairo
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Steve Chaplin
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-16 11:11 UTC by John (J5) Palmieri
Modified: 2010-09-21 20:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description John (J5) Palmieri 2010-09-16 11:11:11 UTC
on a Fedora x86_64 box we need to install all platform dependent files under /usr/lib64.  Our packages have the ability to specify the correct libdir but the waf build in the latest pycairo does not seem to give this option.  Right now I check if our libdir exists in the buildroot and move usr/lib to usr/lib64 if not.  This is not an ideal solution.

Please add a --libdir waf option to your wafscripts which install the pkgconfig and module files to the correct locations.  Thanks.
Comment 1 Steve Chaplin 2010-09-17 13:33:58 UTC
Fixed in the git repo.
Use
./waf configure --prefix=/usr --libdir=/usr/lib64
Comment 2 John (J5) Palmieri 2010-09-21 09:44:50 UTC
Sorry to reopen this but I notices that the commit only applied to py2cairo.  It should also be ported to pycairo.  Thanks.
Comment 3 John (J5) Palmieri 2010-09-21 09:59:24 UTC
Also noticed this line is wrong:

  obj.install_path = os.path.join(ctx.env['PREFIX'], 'lib', 'pkgconfig')

it should be:

  obj.install_path = os.path.join(ctx.env['LIBDIR'], 'pkgconfig')

I'm in the process of porting the patch to PyCairo and will post it here
Comment 4 John (J5) Palmieri 2010-09-21 10:16:32 UTC
Ah, sorry, the description in the changeset was unclear so I missed it (shows up as "Add support for").

py2cairo still has the error as noted in comment 3.  pycairo's patch is correct.
Comment 5 Steve Chaplin 2010-09-21 20:34:25 UTC
Should now be fixed: pycairo and py2cairo both support 'waf configure --libdir'.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.