summaryrefslogtreecommitdiffstats
path: root/package/systemd
Commit message (Collapse)AuthorAgeFilesLines
* systemd: convert to pkg-meson infraEric Le Bihan2018-05-301-29/+3
| | | | | Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* systemd: fix -Dlibidn2 option when libidn2 is not availableThomas Petazzoni2018-05-231-1/+1
| | | | | | | | | | Commit 4ded5d6af4f0198036183f00de190569d7578bc3 ("systemd: add optional dependency on libidn2") contained a mistake: -Dlibidn2=true was passed even when neither libidn nor libidn2 are available. Obviously it should be -Dlibidn2=false. Reported-by: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* systemd: add optional dependency on libidn2Fabrice Fontaine2018-05-201-3/+7
| | | | | | Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Thomas: simplify ifeq/else/endif sequence.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* systemd: add compatibility symlink for 'shutdown'Anssi Hannula2018-04-151-0/+1
| | | | | | | | | In addition to the 'halt', 'poweroff', 'reboot' symlinks pointing to systemctl, add 'shutdown'. Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/systemd: add upstream build fix #8456Stefan Becker2018-04-031-0/+201
| | | | | | Signed-off-by: Stefan Becker <chemobejk@gmail.com> Tested-by: Joseph Kogut <joseph.kogut@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/*/Config.in: fix attributes orderRicardo Martincoski2018-04-011-2/+2
| | | | | | | ... to follow the convention: type, default, depends on, select, help. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/systemd: add upstream build fixStefan Becker2018-03-261-0/+75
| | | | | | | | | | | Fixes: http://autobuild.buildroot.org/results/4c439ee000354f90b4e59ee4006530f77263db47/ Signed-off-by: Stefan Becker <chemobejk@gmail.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* systemd: do not use host system-uid/gid rangesAnssi Hannula2018-03-091-0/+2
| | | | | | | | | | | | | | systemd meson.build uses values from host /etc/login.defs if system-uid-max and system-gid-max build options are not explicitly specified. Avoid that by setting system-uid-max and system-gid-max to 999 which is the systemd default if SYSTEM_UID_MAX and SYSTEM_GID_MAX are not set in /etc/login.defs. Signed-off-by: Anssi Hannula <anssi.hannula@bitwise.fi> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Merge branch 'next'Peter Korsgaard2018-03-052-0/+14
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * systemd: allow to build with uClibc toolchainsWaldemar Brodkorb2018-02-142-0/+14
| | | | | | | | | | | | | | | | | | | | | | We need to disable any systemd parts using either IDN, NSS or gshadow. IDN is only disabled in C library function call to getnameinfo(), it does not effect libidn/libidn2 usage in systemd. Tested with qemu-system-arm. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | package/systemd: needs any UTF-8 localeYann E. MORIN2018-03-042-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not all distributions have the language-agnostic C.UTF-8 locale (Gentoo, I'm frowning at you!). Instead, use any UTF-8 locale provided by the system. Reported-by: Christian Stewart <kidovate@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Julius Kriukas <julius@kriukas.lt> Cc: Christian Stewart <kidovate@gmail.com> Cc: Trent Piepho <tpiepho@impinj.com> Cc: Adam Duskett <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | package/systemd: create groups required for udevdYann E. MORIN2018-03-041-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | udevd needs extra groups for its bundled rules: Mar 03 12:21:30 buildroot systemd-udevd[732]: Specified group 'render' unknown Mar 03 12:21:30 buildroot systemd-udevd[732]: Specified group 'kvm' unknown Add those missing groups. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Julius Kriukas <julius@kriukas.lt> Cc: Trent Piepho <tpiepho@impinj.com> Cc: Adam Duskett <aduskett@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | systemd: switch to C.UTF-8 locale when buildingJulius Kriukas2018-03-022-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When BR2_REPRODUCIBLE is enabled or host uses non UTF-8 capable locale building systemd fails with an error: [1/1080] Generating systemd.bg.catalog with a meson_exe.py custom command. FAILED: catalog/systemd.bg.catalog /buildroot/output/host/bin/python3 /buildroot/output/host/bin/meson --internal exe /buildroot/output/build/systemd-236/build/meson-private/meson_exe_sed_232a0623cc7ce2cd67ec72ed784b76307102ed76.dat Warning: You are using 'ANSI_X3.4-1968' which is not a Unicode-compatible locale. You might see errors if you use UTF-8 strings as filenames, as strings, or as file contents. Please switch to a UTF-8 locale for your platform. ... UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 1079: ordinal not in range(128) package/pkg-generic.mk:247: recipe for target '/buildroot/output/build/systemd-236/.stamp_built' failed make: *** [/buildroot/output/build/systemd-236/.stamp_built] Error 1 This patch changes default host system locale from C to C.UTF-8 when building systemd package to fix this issue. It also introduces BR2_NEEDS_HOST_C_UTF8_LOCALE flag that checks if this locale is available on the host system. If locale is not available error message is show and build process is stopped. Signed-off-by: Julius Kriukas <julius@kriukas.lt> [Thomas: use C.UTF-8 instead of en_US.UTF-8.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | systemd: correct README hash after bump to version 237Peter Korsgaard2018-03-011-1/+1
| | | | | | | | | | | | | | systemd-237 slightly changed the README, but the hash was not updated leading to legal-info failing. Fix it. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | systemd: Fix relative ln add-wants wrapperTrent Piepho2018-02-271-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch to allow systemd to work with old "ln" versions that don't support --relative didn't work properly in the the meson-add-wants.sh script. This results in all the links in systemd's "*.wants" directories being broken, e.g. /usr/lib/systemd/system/multi-user.target.wants/getty.target -> ../../../../usr/lib/systemd/system/getty.target There is one too few ".." in that relative link. The problem is that the script is called with the link name being either a file or an existing directory. In the latter case, ln creates the link in the directory using the name of the target. This means the link is one level deeper than the relative link making code thinks. The solution used is to only dirname the link, moving up a level, if it's not a directory, to mimic ln's logic in how it creates links. Signed-off-by: Trent Piepho <tpiepho@impinj.com> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* | systemd: resolved was renamed to resolve in meson buildWaldemar Brodkorb2018-02-131-2/+2
|/ | | | | | | | While the conversion to meson, this seems to be missed. Found while trying to build systemd with uClibc toolchain. Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* systemd: update to v237Adam Duskett2018-02-035-160/+10
| | | | | | | | Also refresh patches and remove 0004-add-false-option-for-tests.patch as it has been added upstream. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/systemd: fix build with fallback hostnameStefan Becker2018-01-291-1/+1
| | | | | | | | | | Commit aebabb2780da4c5f85fec00b56f4690feb646073 used an automoake configuration option. Replace it with the meson version. Fixes #10716 Signed-off-by: Stefan Becker <chemobejk@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/systemd: Set fallback hostnameChris Lesiak2018-01-281-0/+5
| | | | | | | | | | When BR2_TARGET_GENERIC_HOSTNAME is set, use the config option --with-fallback-hostname to specify the fallback hostname to use if none is configured in /etc/hostname. This is useful in a pristine installation with an empty /etc. Signed-off-by: Chris Lesiak <chris.lesiak@licor.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* systemd: bump to 236, convert to mesonAdam Duskett2018-01-175-224/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd is no longer an autotools package, as such, it has now been converted over to meson. Even though systemd234 has meson support, it is broken with gcc7, as such the revision bump and conversion to meson must be in a single patch. Changes include: - Change systemd from an autotools package to a generic package - Changing all the options from --enable/disable to -Doption=true/false - Remove --without-python (no longer an option) - Remove all of the ac_cv_path_ variables, and move them into CONF_OPTS with the prefix -Doption-path=/path. - Add sha256sum's for the license files. - Remove 0002-build-check-for-ln-relative.patch and add 0002-install-dont-use-ln-relative.patch in its place, the old patch relied on autotools and is no longer relevant. - Add 0004-add-false-option-for-tests.patch. With the conversion to meson, systemd no longer has the option to disable unit tests from being built. This patch re-adds the functionality. This prevents 381 files from being built, and prevents gcrypt from becoming a dependency. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Tested-by: Jérémy Rosen <jeremy.rosen@smile.fr> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: gitlab-ci https://gitlab.com/ymorin/buildroot-ci/pipelines/15857672/builds Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/*/Config.in: fix help text check-package warningsThomas Petazzoni2017-12-181-26/+28
| | | | | | | | | | | | | This commit fixes the warnings reported by check-package on the help text of all package Config.in files, related to the formatting of the help text: should start with a tab, then 2 spaces, then at most 62 characters. The vast majority of warnings fixed were caused by too long lines. A few warnings were related to spaces being used instead of a tab to indent the help text. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: bump version to 234Adam Duskett2017-08-029-175/+82
| | | | | | | | | | | | | | | | | | | | Other changes: - Removed the following patches due to being merged upstream: - resolved-bugfix-of-null-pointer-p-question-dereferencing.patch - resolved-simplify-alloc-size-calculation.patch - resolved-do-not-allocate-packets-with-minimum-size.patch - Updated the following patches to work with 234: - fix-getty-unit.patch - build-check-for-ln-relative.patch - fix-am-path-libgcrypt-no-found.patch - Updated ordering of remaining patches. - Reformatted remaining patches as git style patches. - Updated Upstream-Status comment in "build-check-for-ln-relative.patch" to "Denied [No desire to support building on old distributions]" Signed-off-by: Adam Duskett <aduskett@gmail.com> Tested-by: Marcus Hoffmann <m.hoffmann@caretelsol.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/binArnout Vandecappelle2017-07-051-1/+1
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/ifupdown-scripts: new packageYann E. MORIN2017-07-042-29/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | The ifupdown scripts can be used independently of the init system, be it sysv, busybox or systemd; they could even be used when there is no init system (i.e. the user is providing his own). Currently, those ifupdown scripts are bundled in the skeleton. But we soon will have a skeleton specific to systemd, so we would be missing those scripts (when systemd-networkd is not enabled). So, move those scripts to their own package. To keep the current behaviour (before it is changed in future commits), we make that package default to y, but depend on the default skeleton. Instead of being a target-finalize hook, the scripts are installed as any other package are, with a package install-target command. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> [Thomas: drop empty IFUPDOWN_SCRIPTS_SOURCE] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: needs timezone infoYann E. MORIN2017-07-041-0/+1
| | | | | | | | | | systemd does not like being booted without any timezone info (especially on a R/O filesystem), so we forcibly enable that. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> [Thomas: fix alphabetic ordering.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: don't download patches from GithubThomas Petazzoni2017-07-038-8/+127
| | | | | | | | Patches downloaded from Github are not stable, so bring them in the tree. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* systemd: add security fixBaruch Siach2017-06-282-1/+5
| | | | | | | | | | | | | | | | | Add a fix for CVE-2017-9445: In systemd through 233, certain sizes passed to dns_packet_new in systemd-resolved can cause it to allocate a buffer that's too small. A malicious DNS server can exploit this via a response with a specially crafted TCP payload to trick systemd-resolved into allocating a buffer that's too small, and subsequently write arbitrary data beyond the end of it. The other patch fixes an issue with the security fix. [Peter: use CVE description from MITRE] Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/systemd: fix paths to runtime utilitiesYann E. MORIN2017-06-101-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | systemd's configure is looking in $PATH to find utilities that will be needed at runtime. Usually, those utilties, when installed on the host, will be found in the same path they would be present on the target. For example, /usr/bin/mount on the host would also be /usr/bin/mount on the target, and all is find. Except when we need to install a host variant of util-linux, which will install mount in $(HOST_DIR), in which case systemd's configure would find that one. Of course, it is also very well possible that those utilities are not installed on the host in the same location they would be on the target, in case a user has manually installed some of those (e.g. in /usr/local/ or in /opt/) Forcibly set the path to those utilities, as they are expected to be on the target. For kexec, we can set it even though we do not depend on it (yet). systemd will appropriately test it at runtime. For quota, we point to non-existing files, so as to catch errors at runtime. It is to be noted that quotacheck is optional, while quotaon does not seem to be (a service file is always installed, that uses it). Note: utilties listed in the order they appear in configure.ac Reported-by: Adam Duskett <aduskett@gmail.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Cc: Adam Duskett <aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: add upstream security fixBaruch Siach2017-06-052-0/+4
| | | | | | | | | Fixes CVE-2017-9217: remote DoS (daemon crash) via a crafted DNS response with an empty question section. Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package makefiles: clean up backslash spacing.Adam Duskett2017-04-221-1/+1
| | | | | | | | | | The check-package script when ran gave warnings on only using one space before backslashes on all of these makefiles. This patch cleans up all warnings related to the one space before backslashes rule in the make files in the package directory. Signed-off-by: Adam Duskett <aduskett@codeblue.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: select fsck wrapper from util-linuxCarlos Santos2017-04-121-0/+6
| | | | | | | | | | Select the fsck required by systemd provided by util-linux. This prevents ending up with fsck from busybox, which is incompatible with systemd. Signed-off-by: Carlos Santos <casantos@datacom.ind.br> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: better patch to avoid ln --relativeYann E. MORIN2017-04-033-112/+96
| | | | | | | | | | | | | | We currently have two patches that address the ln --relative issue differently. The first one changes the behaviour to generate absolute symlinks, which is incorrect; the second provides an ad-hoc solution for a single case. Replace both of them with a single patch that mimics ln --relative when the host ln does not support it. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, package: use SPDX short identifier for LGPLv2.1/LGPLv2.1+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license string as much as possible. SPDX short identifier for LGPLv2.1/LGPLv2.1+ is LGPL-2.1/LGPL-2.1+. This change is done using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/LGPLv2.1(\+)?/LGPL-2.1\1/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot, linux, package: use SPDX short identifier for GPLv2/GPLv2+Rahul Bedarkar2017-04-011-1/+1
| | | | | | | | | | | We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: fix build on not-recent distrosYann E. MORIN2017-04-011-0/+40
| | | | | | | | | | | | | | | | | systemd is at it again, using ln --relative once more, which is not available but on the most recent distros. Patch it out with a bit of sed magic. Fixes: http://autobuild.buildroot.org/results/48e/48ecf31eca9b22339a770abd3f9abdf1ae41cfd3/ http://autobuild.buildroot.org/results/c62/c6297c61d8c2d3ab9be77b9d398598adacdb33b3/ http://autobuild.buildroot.org/results/22f/22ff106a4626c84422d9a3e69aa9c8fe7c76938c/ ... Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: bump version to 233Vicente Olivert Riera2017-03-223-13/+2
| | | | | | | --disable-kdbus no longer exists, so remove everything related to it. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: enable optional PAM supportJames Balean2017-02-271-1/+7
| | | | | | | | | This commit enables PAM support in systemd if BR2_PACKAGE_LINUX_PAM is set. Some essential config files are not installed without the --enable-pam option. Signed-off-by: James Balean <james@balean.com.au> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: add missing dhcp.network fileThomas Petazzoni2017-02-061-0/+4
| | | | | | | | This file was missing from commit 84d997d6890f1d045c4d6084148fd9b2d674a6c7 ("system(d): allow auto net configuration with networkd") Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* system(d): allow auto net configuration with networkdEric Le Bihan2017-02-061-0/+9
| | | | | | | | | | | | | | | Allow automatic network configuration via systemd-networkd if selected. If systemd-networkd is enabled and $BR2_SYSTEM_DHCP is set, then create a .network file to configure the selected network interface via DHCP. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> [Thomas: - merge the two patches from Eric into just one - instead of generating the dhcp.network file completely from the .mk file, use a template file, and "sed" it with the right network interface] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package: fix reverse dependencies of util-linuxRahul Bedarkar2017-01-281-1/+0
| | | | | | | | | | | | | | | Commit 006a328ad6be ("util-linux: fix build with ncurses") removed dependency on BR2_USE_WCHAR, but failed to update the reverse dependencies of util-linux. This commit fixes all such reverse dependencies by removing dependency on BR2_USE_WCHAR as it is not required by package itself. Fixes: 006a328ad6be ("util-linux: fix build with ncurses") Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: enable selinux if libselinux is enabledAdam Duskett2016-12-171-1/+7
| | | | | | | | | | systemd currently has selinux disabled unconditionally. This prevents /sys/fs/selinux from being mounted automatically at boot which causes audit to no longer function. This patch fixes the problem by checking if libselinux is enabled and enabling support for selinux in systemd if so. Signed-off-by: Adam Duskett <Adamduskett@outlook.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: don't build systemd-firstboot by defaultFrank Hunleth2016-12-081-1/+0
| | | | | | | | | | | | | | systemd-firstboot is never invoked since systemd's first boot detection logic checks whether /etc/machine-id exists. Since the file is created automatically by systemd.mk, systemd will never detect first boot and therefore the systemd-firstboot.service unit file will never get run. Additionally, if /etc/machine-id is removed to allow systemd-firstboot to run, it interactively prompts for the system locale. This makes it seem unlikely that an embedded system would want to use it. Signed-off-by: Frank Hunleth <fhunleth@troodon-software.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* systemd: bump version to 232Vicente Olivert Riera2016-11-056-172/+9
| | | | | | | | | | | - 0002 patch tweaked. There is a hunk that has been removed upstream by this commit: https://github.com/systemd/systemd/commit/082210c7a837063fd8b520b18c221b42059d7eff - Patches 0004, 0005 and 0006 were backported from upstream and now they are included in this release, so drop them. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: fix build with old toolchainsYann E. MORIN2016-09-183-0/+159
| | | | | | | | | | | | | | | | | | | | | | | | Toolchains using glibc-2.18 or older do not define O_TMPFILE, which causes build failures on some archs. systemd has a definition for O_TMPFILE if it is missing, but only defines it for i386 or x86_64. Furthermore, the header defining it is not included everywhere O_TMPFILE is used. Fix that with three patches backported from upstream: - include the needed header where it is needed (he!), - define O_TMPFILE for all archs, according to linux-4.8rc3, - no longer guard against undefined O_TMPFILE in fileio. Upstream merge commit: https://github.com/systemd/systemd/commit/4a13100c6a5a0a4b793e90bd43d21c3696c42d46 Fixes: http://autobuild.buildroot.net/results/b0067e72ffcbbe1db9ef49ab297cece951345aeb/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: bump versionMaxime Hadjinlian2016-07-283-37/+29
| | | | | | | | | | | Bump to version v231. Along that, refresh a patch that did not apply anymore. For reference, here is the changelog: https://lists.freedesktop.org/archives/systemd-devel/2016-July/037220.html Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/libgpg-error: bump to version 1.23Jörg Krause2016-07-041-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is based on a patch sent by Vicente Olivert Riera and commented by Arnout Vandecappelle [1]. - Bump version to 1.23 - Add a hook to fix cross-compilation - Fix license and license files - Remove patch applied upstream - Add a BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS variable - Propagate the dependencies using that variable: * package/cppcms * package/crda * package/gnupg2 - package/gcr - package/midori * package/kodi * package/libaacs * package/libassuan * package/libgcrypt * package/libgpgme * package/libksba * package/libmicrohttpd - package/janus-gateway - package/kodi - package/ola - package/systemd * package/libssh * package/libssh2 - package/php-ssh2 * package/netatalk * package/network-manager * package/ntfs-3g * package/opkg * package/php-gnupg * package/rng-tools * package/strongswan * package/vpnc [1] http://patchwork.ozlabs.org/patch/416427/ Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> [Thomas: - rebase on master - changing systemd no longer needed, as it no longer selects libgcrypt.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Maxime: - rebase on master - bump to new version - propagate dependencies to missing packages] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: Romain Naour <romain.naour@gmail.com> [Thomas: - fix hash file. - change the way to handle the various arch so that it works properly for uClibc. - add nios2 arch support. - Maxime Hadjinlian learned some basic Emacs-fu to do the final fixups of this commit.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: Sort menuconfig alphabeticallyMaxime Hadjinlian2016-07-021-131/+131
| | | | | Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: Remove systemd-bootchartMaxime Hadjinlian2016-07-022-16/+0
| | | | | | | | | Since systemd v230, bootchart has been removed from the source of systemd and now lives in its own repository. A new package will be added in the next commit. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: Remove SYSTEMD_COMPAT optionMaxime Hadjinlian2016-07-022-19/+0
| | | | | | | | | | Since v230 of systemd, the compat libraries have been fully removed. https://github.com/systemd/systemd/commit/4de282cf9324ab13d17ac334244d0d7cae2df37d Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> [Thomas: rewrap Config.in help text in Config.in.legacy and put the option at the right place.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* package/systemd: Default yes for networkdMaxime Hadjinlian2016-07-021-0/+1
| | | | | | | | It seems logical to enable a few options along with systemd when it's the init system. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
OpenPOWER on IntegriCloud