Bug 578054

Summary: incomplete CMake library destination specification for Perl binding
Product: [openSUSE] openSUSE 11.3 Reporter: Markus Elfring <Markus.Elfring>
Component: libzyppAssignee: E-mail List <zypp-maintainers>
Status: RESOLVED INVALID QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: ma
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.2   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Markus Elfring 2010-02-08 19:36:07 UTC
I try to complete some dependencies to enable further software development.

I have cloned the contents from "git://gitorious.org/opensuse/sat-solver.git" to my system. I get the following unpleasant messages at the moment.

elfring@Sonne:~/Projekte/YaST/sat-solver/lokal> cmake -G KDevelop3
...
-- Perl core dir: /usr/local/lib/perl/5.10.0/x86_64-linux-thread-multi-ld/CORE
-- Perl vendor arch dir:
CMake Error at bindings/perl/CMakeLists.txt:57 (INSTALL):
  install TARGETS given no LIBRARY DESTINATION for shared library target
  "satsolver_perl".


CMake Error at bindings/perl/CMakeLists.txt:59 (INSTALL):
  install FILES given no DESTINATION!


-- version: 0.14.14
-- Writing spec file...
-- Configuring incomplete, errors occurred!


Am I still missing a specific setting for a working configuration?
Comment 1 Michael Andres 2010-02-11 15:05:41 UTC
(In reply to comment #0)
> -- Perl core dir: /usr/local/lib/perl/5.10.0/x86_64-linux-thread-multi-ld/CORE
                    ^^^^^^^^^^?

Looks like you're using using some non-standard perl setup. It's configuration seems to incomplete or broken.

The CMake file at at bindings/perl/CMakeLists.txt is looking for the values of

 #! /bin/bash
 perl <<<"use Config;print \$Config{installvendorarch}"
 perl <<<"use Config;print \$Config{installvendorlib}"

They seem to be empty in your configuration.
Comment 2 Markus Elfring 2010-02-12 16:46:48 UTC
(In reply to comment #1)

I admit that I do not know so far which step from the Perl configuration will set the "installvendor..." variables. It would be nice if the CMake script could work without them.

Otherwise, I imagine that the build process needs to be "convinced" to use the command "/usr/bin/perl" instead of the self-compiled version from the directory "/usr/local/bin".