Re: [systemd-devel] Cross-building systemd?

2013-10-07 Thread Henrik Grindal Bakken
Warpme war...@o2.pl writes:

 Hi,
 I want to build sytemd in cross-build environment.  One from many
 needed dependencies is libcap which is really old and isn't
 cross-build friendly.  It looks like libcap-ng is kind of successor
 and I can build this lib in my cross-build environment.  Is there
 any way to build systemd with libcap-ng ?  Or maybe there is
 possibility to build systemd without libcap?  Thx in advance!

We cross-compile libcap and systemd, and it works fine.  My rules for
building libcap are:

make CC=cross-cc BUILD_CC=gcc LIBATTR=no PAM_CAP=no
make CC=cross-cc BUILD_CC=gcc LIBATTR=no PAM_CAP=no DESTDIR=somewhere 
prefix= install

We also set quite a few variables (CROSS_COMPILE, LD, AR, CFLAGS,
whatever) in our build system, so you might need some of those.  They
are all set in a pretty standard way.

We build libcap from the latest in git (056ffb0bd2).

-- 
Henrik Grindal Bakken h...@ifi.uio.no
PGP ID: 8D436E52
Fingerprint: 131D 9590 F0CF 47EF 7963  02AF 9236 D25A 8D43 6E52

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] Cross-building systemd?

2013-10-04 Thread Warpme

Hi,
I want to build sytemd in cross-build environment.
One from many needed dependencies is libcap which is really old and 
isn't cross-build friendly.
It looks like libcap-ng is kind of successor and I can build this lib in 
my cross-build environment.

Is there any way to build systemd with libcap-ng ?
Or maybe there is possibility to build systemd without libcap?
Thx in advance!

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Cross-building systemd?

2013-10-04 Thread Lennart Poettering
On Fri, 04.10.13 17:12, Warpme (war...@o2.pl) wrote:

 Hi,
 I want to build sytemd in cross-build environment.
 One from many needed dependencies is libcap which is really old and
 isn't cross-build friendly.
 It looks like libcap-ng is kind of successor and I can build this
 lib in my cross-build environment.
 Is there any way to build systemd with libcap-ng ?
 Or maybe there is possibility to build systemd without libcap?
 Thx in advance!

libcap-ng exposes a very different API from libcap. You cannot use them
interchangably. 

I think libcap-ng's API is not a good design (implicit state...), hence
we are unlikely to support it.

The libcap dependency is not optional and unlikely to become optional.

libcap is something so low level and ubiquitious that I am sure some
people made it cross-buildable. In particular I am aware that systemd is
available in some embedded distros, which must have done the work.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Cross-building systemd?

2013-10-04 Thread Stephan Raue

if you need a receipt to crosscompile libcap see:

https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/devel/libcap/build

basically you must compile _makenames first with the hosttools:

  make CC=$HOST_CC -C libcap _makenames

as a second step you crosscompile libcap like:

  make CC=$TARGET_CC CFLAGS=$TARGET_CFLAGS lib=/lib -C libcap libcap.a

greetings

Stephan

Am 04.10.2013 17:12, schrieb Warpme:

Hi,
I want to build sytemd in cross-build environment.
One from many needed dependencies is libcap which is really old and 
isn't cross-build friendly.
It looks like libcap-ng is kind of successor and I can build this lib 
in my cross-build environment.

Is there any way to build systemd with libcap-ng ?
Or maybe there is possibility to build systemd without libcap?
Thx in advance!

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Cross-building systemd?

2013-10-04 Thread Warpme

On 10/4/13 6:38 PM, Stephan Raue wrote:

if you need a receipt to crosscompile libcap see:

https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/devel/libcap/build 



basically you must compile _makenames first with the hosttools:

  make CC=$HOST_CC -C libcap _makenames

as a second step you crosscompile libcap like:

  make CC=$TARGET_CC CFLAGS=$TARGET_CFLAGS lib=/lib -C libcap libcap.a

greetings

Stephan

Am 04.10.2013 17:12, schrieb Warpme:

Hi,
I want to build sytemd in cross-build environment.
One from many needed dependencies is libcap which is really old and 
isn't cross-build friendly.
It looks like libcap-ng is kind of successor and I can build this lib 
in my cross-build environment.

Is there any way to build systemd with libcap-ng ?
Or maybe there is possibility to build systemd without libcap?
Thx in advance!

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel




Stephan, Lennart

Thx for so quick replay!
I'll go with Stephan recommendations.
Thx again.

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel