Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 03 Sep 2013 00:47:02 +0200
From: John Spencer <maillist-owl@...fooze.de>
To: owl-users@...ts.openwall.com
Subject: Re: MySQL w/cmake: anyone tried packaging for Owl?

On 09/02/2013 04:34 PM, Solar Designer wrote:
> On Mon, Sep 02, 2013 at 05:11:19PM +0400, croco@...nwall.com wrote:
>> So, I tried and even succeeded with rpm'ing cmake for Owl (the version is
>> 2.8.11.2).  However, this didn't help.  After I created a mysql.spec file
>> for cmake-driven build, it worked up to the point of '%install', where
>> rpmbuild fails trying to copy a file into its final system location instead
>> of local directory for packing.  The Makefile which cmake generates, seems
>> to ignore the 'DESTDIR=...' argument completely, and here is where I gave
>> up after a ten or so hopeless attempts to fix something.  Well, I could
>> agree to pack cmake, but I feel absolutely unprepared to waste my time
>> _learning_ it as to be able to patch MySQL's build configuration files.
>> This is way too much.
>
> I did not test this with MySQL/MariaDB specifically, but in general:
>
> cmake -DCMAKE_INSTALL_PREFIX=/desired/target/dir
>
> Alexander
>

quoting https://github.com/rofl0r/sabotage/blob/master/pkg/mysql

SEGMENTS="Client Server IniFiles ManPages SharedLibraries"
SEGMENTS="$SEGMENTS Development Documentation Info Readme"

# FIXME: the cmake crap doesnt know how to install into DESTDIR

for segment in $SEGMENTS; do
    cmake DESTDIR=$butch_install_dir -DCMAKE_INSTALL_COMPONENT=$segment 
-P cmake_install.cmake
done

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.