Re: [systemd-devel] Building systemd

2019-06-10 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jun 09, 2019 at 05:58:16PM -0300, Leonardo Akel Daher wrote:
> Hi,
> 
> I am trying to make a Pull Request for systemd, but I am struggling running
> the tests locally (before making any code changes). I get the error of the
> attached image when running "ninja -C build/ test".

Hi,

please don't attach error logs as messages. Just copy & paste the error
text into your mail.

You are hitting a bug in meson. Since you installed meson using pip, you
have a very new meson, which you are using with a rather old python.
It's likely that this combination is not tested very well.
But it *should* work. Maybe you can get more help from Ubuntu users.

> I then decided to try using mkosi to create an image, but then I get this
> other error (attached on this other image). I currently use Ubuntu, so
> should I change the file mkosi.default so it includes Ubuntu's file instead
> of Fedora's?

You are using an old mkosi version that doesn't know about newer Fedora.
Either update, or switch to Ubuntu images as you say.

> Another problem I faced, but have already fixed was while installing Meson.
> In Ubuntu's package manager, the latest Meson version is < 0.46, so when
> running "meson build", it renders an error stating that my Meson version
> should be >= 0.46. I fixed this by installing Meson through Python's
> package manager, pip. But, I think this would be a problem when trying to
> build the Ubuntu image with mkosi. How would I install the pip's version of
> Meson instead of Ubuntu package manager's?

You can run arbitrary scripts during image creation, so in principle you
could do 'pip install' then. But it quickly becomes very messy and complicated.

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

Re: [systemd-devel] Building systemd from git

2014-03-20 Thread Kevin Wilson
Thanks, Zbyszek.

 --prefix etc.

I assume you mean:
--prefix /etc
and not
prefix /etc

is it so ?

KW





On Wed, Mar 19, 2014 at 10:44 PM, Zbigniew Jędrzejewski-Szmek
zbys...@in.waw.pl wrote:
 On Wed, Mar 19, 2014 at 10:25:30PM +0200, Kevin Wilson wrote:
 Hello,

 When I build systemd from git using the usual procedure of configure,
 without setting special parameters, it installs folder under
 /usr/etc/systemd/ (like /usr/etc/systemd/system and its children,
 /usr/etc/systemd/network/, and more).
 That's the usual GNU style.

 Is there a way to run configure so that, instead of
 /usr/etc/systemd/, it will use /etc/systemd/ ?
 In Fedora, for example, the rpm uses the /etc/systemd and not
 /usr/etc/systemd/, which does not exist.
 Use --prefix etc.

 Look ./autogen.sh for some nice default options.

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


Re: [systemd-devel] Building systemd from git

2014-03-20 Thread Reindl Harald


Am 20.03.2014 15:02, schrieb Kevin Wilson:
 --prefix etc.
 
 I assume you mean:
 --prefix /etc
 and not
 prefix /etc
 
 is it so ?
 KW

no: http://en.wikipedia.org/wiki/Et_cetera
you don't want your binary tree in /etc

 On Wed, Mar 19, 2014 at 10:44 PM, Zbigniew Jędrzejewski-Szmek
 zbys...@in.waw.pl wrote:
 On Wed, Mar 19, 2014 at 10:25:30PM +0200, Kevin Wilson wrote:
 Hello,

 When I build systemd from git using the usual procedure of configure,
 without setting special parameters, it installs folder under
 /usr/etc/systemd/ (like /usr/etc/systemd/system and its children,
 /usr/etc/systemd/network/, and more).
 That's the usual GNU style.

 Is there a way to run configure so that, instead of
 /usr/etc/systemd/, it will use /etc/systemd/ ?
 In Fedora, for example, the rpm uses the /etc/systemd and not
 /usr/etc/systemd/, which does not exist.
 Use --prefix etc.

 Look ./autogen.sh for some nice default options



signature.asc
Description: OpenPGP digital signature
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] Building systemd from git

2014-03-20 Thread Kay Sievers
On Thu, Mar 20, 2014 at 3:02 PM, Kevin Wilson wkev...@gmail.com wrote:
 Thanks, Zbyszek.

 --prefix etc.

 I assume you mean:
 --prefix /etc
 and not
 prefix /etc

 is it so ?

No.

Just check out git and run ./autogen.sh, it will tell you what to do.

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


Re: [systemd-devel] Building systemd from git

2014-03-20 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Mar 20, 2014 at 04:02:37PM +0200, Kevin Wilson wrote:
 Thanks, Zbyszek.
 
  --prefix etc.
 
 I assume you mean:
 --prefix /etc
 and not
 prefix /etc
 
 is it so ?
No, I meant --prefix as in the command line option to ./configure,
e.g. --prefix=/usr, and etc as in et cetera, not the directory.
Something like ./configure --prefix=/usr --sysconfdir=/etc 
--localstatedir=/var.
Generally, it is best to use the same flags that you distribution uses.
Then you'll overwrite existing files instead writing them to a different
directory and potentially causing confusion.

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


Re: [systemd-devel] Building systemd from git

2014-03-20 Thread Kevin Wilson
Hi all,
Thanks for the quick response from all responders; I was afraid that
etc here was indeed in a different context than a path

regards,
KW

On Thu, Mar 20, 2014 at 4:08 PM, Zbigniew Jędrzejewski-Szmek
zbys...@in.waw.pl wrote:
 On Thu, Mar 20, 2014 at 04:02:37PM +0200, Kevin Wilson wrote:
 Thanks, Zbyszek.

  --prefix etc.

 I assume you mean:
 --prefix /etc
 and not
 prefix /etc

 is it so ?
 No, I meant --prefix as in the command line option to ./configure,
 e.g. --prefix=/usr, and etc as in et cetera, not the directory.
 Something like ./configure --prefix=/usr --sysconfdir=/etc 
 --localstatedir=/var.
 Generally, it is best to use the same flags that you distribution uses.
 Then you'll overwrite existing files instead writing them to a different
 directory and potentially causing confusion.

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


[systemd-devel] Building systemd from git

2014-03-19 Thread Kevin Wilson
Hello,

When I build systemd from git using the usual procedure of configure,
without setting special parameters, it installs folder under
/usr/etc/systemd/ (like /usr/etc/systemd/system and its children,
/usr/etc/systemd/network/, and more).

Is there a way to run configure so that, instead of
/usr/etc/systemd/, it will use /etc/systemd/ ?
In Fedora, for example, the rpm uses the /etc/systemd and not
/usr/etc/systemd/, which does not exist.

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


Re: [systemd-devel] Building systemd from git

2014-03-19 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Mar 19, 2014 at 10:25:30PM +0200, Kevin Wilson wrote:
 Hello,
 
 When I build systemd from git using the usual procedure of configure,
 without setting special parameters, it installs folder under
 /usr/etc/systemd/ (like /usr/etc/systemd/system and its children,
 /usr/etc/systemd/network/, and more).
That's the usual GNU style.

 Is there a way to run configure so that, instead of
 /usr/etc/systemd/, it will use /etc/systemd/ ?
 In Fedora, for example, the rpm uses the /etc/systemd and not
 /usr/etc/systemd/, which does not exist.
Use --prefix etc.

Look ./autogen.sh for some nice default options.

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


Re: [systemd-devel] Building systemd from git

2014-03-19 Thread Lennart Poettering
On Wed, 19.03.14 22:25, Kevin Wilson (wkev...@gmail.com) wrote:

 Hello,
 
 When I build systemd from git using the usual procedure of configure,
 without setting special parameters, it installs folder under
 /usr/etc/systemd/ (like /usr/etc/systemd/system and its children,
 /usr/etc/systemd/network/, and more).
 
 Is there a way to run configure so that, instead of
 /usr/etc/systemd/, it will use /etc/systemd/ ?
 In Fedora, for example, the rpm uses the /etc/systemd and not
 /usr/etc/systemd/, which does not exist.

This works like for any other autoconf/automake package. If you want to
override the GNU defaults use --sysconfdir= for example.

If you are a developer, and now what you do the best way to build and
install systemd is via ./autogen.sh c  make -j8  sudo make
install. However, do understand that this voids your warranty because
it will install systemd into /usr which is package manager territory.

Lennart

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