Systemd/src/libsystemd-network
Zbigniew Jędrzejewski-Szmek 5c23128dab meson: build systemd using meson
It's crucial that we can build systemd using VS2010!

... er, wait, no, that's not the official reason. We need to shed old systems
by requring python 3! Oh, no, it's something else. Maybe we need to throw out
345 years of knowlege accumulated in autotools? Whatever, this new thing is
cool and shiny, let's use it.

This is not complete, I'm throwing it out here for your amusement and critique.

- rules for sd-boot are missing. Those might be quite complicated.

- rules for tests are missing too. Those are probably quite simple and
  repetitive, but there's lots of them.

- it's likely that I didn't get all the conditions right, I only tested "full"
  compilation where most deps are provided and nothing is disabled.

- busname.target and all .busname units are skipped on purpose.

  Otherwise, installation into $DESTDIR has the same list of files and the
  autoconf install, except for .la files.

It'd be great if people had a careful look at all the library linking options.
I added stuff until things compiled, and in the end there's much less linking
then in the old system. But it seems that there's still a lot of unnecessary
deps.

meson has a `shared_module` statement, which sounds like something appropriate
for our nss and pam modules. Unfortunately, I couldn't get it to work. For the
nss modules, we need an .so version of '2', but `shared_module` disallows the
version argument. For the pam module, it also didn't work, I forgot the reason.

The handling of .m4 and .in and .m4.in files is rather awkward. It's likely
that this could be simplified. If make support is ever dropped, I think it'd
make sense to switch to a different templating system so that two different
languages and not required, which would make everything simpler yet.

v2:
- use get_pkgconfig_variable
- use sh not bash
- use add_project_arguments

v3:
- drop required:true and fix progs/prog typo

v4:
- use find_library('bz2')
- add TTY_GID definition
- define __SANE_USERSPACE_TYPES__
- use join_paths(prefix, ...) is used on all paths to make them all absolute

v5:
- replace all declare_dependency's with []
- add more conf.get guards around optional components

v6:
- drop -pipe, -Wall which are the default in meson
- use compiler.has_function() and compiler.has_header_symbol instead of the
  hand-rolled checks.
- fix duplication in 'liblibsystemd' library name
- use the right .sym file for pam_systemd
- rename 'compiler' to 'cc': shorter, and more idiomatic.

v7:
- use ENABLE_ENVIRONMENT_D not HAVE_ENVIRONMENT_D
- rename prefix to prefixdir, rootprefix to rootprefixdir
  ("prefix" is too common of a name and too easy to overwrite by mistake)
- wrap more stuff with conf.get('ENABLE...') == 1
- use rootprefix=='/' and rootbindir as install_dir, to fix paths under
  split-usr==true.

v8:
- use .split() also for src/coredump. Now everything is consistent ;)
- add rootlibdir option and use it on the libraries that require it

v9:
- indentation

v10:
- fix check for qrencode and libaudit

v11:
- unify handling of executable paths, provide options for all progs

  This makes the meson build behave slightly differently than the
  autoconf-based one, because we always first try to find the executable in the
  filesystem, and fall back to the default. I think different handling of
  loadkeys, setfont, and telinit was just a historical accident.

  In addition to checking in $PATH, also check /usr/sbin/, /sbin for programs.
  In Fedora $PATH includes /usr/sbin, (and /sbin is is a symlink to /usr/sbin),
  but in Debian, those directories are not included in the path.

  C.f. https://github.com/mesonbuild/meson/issues/1576.

- call all the options 'xxx-path' for clarity.
- sort man/rules/meson.build properly so it's stable
2017-04-23 21:47:26 -04:00
..
Makefile sd-network: add new library 2014-02-28 01:01:13 +01:00
arp-util.c Fix missing space in comments (#5439) 2017-02-24 18:14:02 +01:00
arp-util.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp-identifier.c dhcp-identifier: un-inline dhcp_validate_duid_len 2016-05-03 12:09:38 -04:00
dhcp-identifier.h network: get rid of DUID_TYPE_RAW 2016-05-03 12:26:43 -04:00
dhcp-internal.h dhcp: bind udp sockets to interfaces (#4822) 2016-12-07 02:00:05 +01:00
dhcp-lease-internal.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp-network.c dhcp: bind udp sockets to interfaces (#4822) 2016-12-07 02:00:05 +01:00
dhcp-option.c tree-wide: make ++/-- usage consistent WRT spacing 2016-02-22 20:32:04 -08:00
dhcp-packet.c networkd: support setting dhcp client listen port (#4631) 2016-11-10 18:34:19 -05:00
dhcp-protocol.h dhcp: fix operator precedence issue with macro 2016-05-26 15:34:42 +02:00
dhcp-server-internal.h networkd: Add EmitRouter= option for DHCP Server (#3251) 2016-05-17 19:34:25 -04:00
dhcp6-internal.h sd-dhcp6-client: add log_errno macro and improve debug messages a bit 2016-05-15 19:57:00 -04:00
dhcp6-lease-internal.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
dhcp6-network.c sd-dhcp6-client: bind to link-local address 2015-11-17 14:17:41 +01:00
dhcp6-option.c sd-network: fix memleak in dhcp6_option_parse_domainname (#5114) 2017-01-23 21:11:59 -05:00
dhcp6-protocol.h DHCP DUID, IAID configuration options 2016-03-30 16:33:55 -07:00
icmp6-util.c network: beef up ipv6 RA support considerably 2016-06-06 20:11:38 +02:00
icmp6-util.h tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
lldp-internal.h lldp: add proper ref counting to sd_lldp object and a separate call for setting the ifindex 2016-06-06 19:59:07 +02:00
lldp-neighbor.c Various fixes for typos found by lintian (#3705) 2016-07-12 12:52:11 +02:00
lldp-neighbor.h lldp: rename TLV accessor pseudo-macros 2016-06-06 19:59:08 +02:00
lldp-network.c networkd: add multicast membership to lldp socket (#5282) 2017-02-09 10:36:13 +01:00
lldp-network.h tree-wide: place #pragma once at the same place everywhere 2016-02-20 22:42:29 +01:00
meson.build meson: build systemd using meson 2017-04-23 21:47:26 -04:00
ndisc-internal.h network: beef up ipv6 RA support considerably 2016-06-06 20:11:38 +02:00
ndisc-router.c ndisc: ignore invalid SLAAC prefix lengths (#4923) 2016-12-20 20:27:06 +01:00
ndisc-router.h network: beef up ipv6 RA support considerably 2016-06-06 20:11:38 +02:00
network-internal.c network: fix const qualifier (#4849) 2016-12-07 16:42:17 -05:00
network-internal.h tree-wide: port more code to use ifname_valid() 2016-05-09 15:45:31 +02:00
sd-dhcp-client.c Include 'vendor class identifier option' into DHCPREQUEST message (#5380) 2017-02-20 10:15:58 +01:00
sd-dhcp-lease.c dhcp4: filter bogus DNS/NTP server addresses silently 2016-11-21 22:58:26 +01:00
sd-dhcp-server.c dhcp-server: add two missing OOM checks 2017-02-09 16:12:03 +01:00
sd-dhcp6-client.c tree-wide: adjust fall through comments so that gcc is happy 2017-01-31 14:04:55 -05:00
sd-dhcp6-lease.c sd-network: fix memleak in dhcp6_lease_set_domains (#5113) 2017-01-23 21:12:58 -05:00
sd-ipv4acd.c libsystemd-network: ipv4ll probe conflict counter (#5361) 2017-02-16 11:14:38 +01:00
sd-ipv4ll.c libsystemd-network: sd-ipv4ll: Wrapper to restart address aquisition after conflict 2017-03-31 15:29:00 -05:00
sd-lldp.c fix includes 2017-03-15 13:21:10 +01:00
sd-ndisc.c tree-wide: use mfree more 2016-10-16 23:35:39 -04:00
test-acd.c sd-network: rename "index" field of the various clients to "ifindex" 2016-05-26 15:34:42 +02:00
test-dhcp-client.c dhcp: bind udp sockets to interfaces (#4822) 2016-12-07 02:00:05 +01:00
test-dhcp-option.c Merge pull request #2589 from keszybz/resolve-tool-2 2016-02-13 11:15:41 +01:00
test-dhcp-server.c tree-wide: remove Emacs lines from all files 2016-02-10 13:41:57 +01:00
test-dhcp6-client.c sd-network: rename "index" field of the various clients to "ifindex" 2016-05-26 15:34:42 +02:00
test-ipv4ll-manual.c sd-network: rename "index" field of the various clients to "ifindex" 2016-05-26 15:34:42 +02:00
test-ipv4ll.c ipv4ll: change "seed" parameter to be uint64_t 2016-05-26 15:34:43 +02:00
test-lldp.c Fix missing space in comments (#5439) 2017-02-24 18:14:02 +01:00
test-ndisc-rs.c network: beef up ipv6 RA support considerably 2016-06-06 20:11:38 +02:00