Package Details: systemd-sysvcompat-selinux 239.300-1

Git Clone URL: https://aur.archlinux.org/systemd-selinux.git (read-only)
Package Base: systemd-selinux
Description: sysvinit compat for systemd with SELinux support
Upstream URL: https://www.github.com/systemd/systemd
Keywords: selinux
Licenses: GPL2
Groups: selinux
Conflicts: selinux-systemd-sysvcompat, systemd-sysvcompat, sysvinit
Provides: selinux-systemd-sysvcompat=239.300-1, systemd-sysvcompat=239.300-1
Submitter: Siosm
Maintainer: IooNag
Last Packager: IooNag
Votes: 14
Popularity: 0.003907
First Submitted: 2013-11-03 20:05
Last Updated: 2018-11-11 23:41

Required by (8)

Sources (20)

Latest Comments

1 2 3 Next › Last »

NobodyDBG commented on 2018-08-20 15:21

Thank you. It works now.

IooNag commented on 2018-08-19 13:05

Thanks for the report! This issue was caused by glibc 2.28, which introduced "struct statx" in its headers (this structure is now defined both in /usr/include/linux/stat.h and /usr/include/bits/statx.h). systemd developers fixed this issue in https://github.com/systemd/systemd/commit/75720bff62a84896e9a0654afc7cf9408cf89a38 and I have updated systemd-selinux in order to backport this commit. Does it work better?

NobodyDBG commented on 2018-08-19 12:22

In file included from ../systemd-stable/src/basic/missing.h:18, from ../systemd-stable/src/basic/util.h:28, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/linux/stat.h:56:8: Fehler: Redefinition von »struct statx_timestamp« struct statx_timestamp { ^~~~~~~~~~~~~~~ In file included from /usr/include/sys/stat.h:446, from ../systemd-stable/src/basic/util.h:19, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/bits/statx.h:25:8: Anmerkung: ursprünglich hier definiert struct statx_timestamp ^~~~~~~~~~~~~~~ In file included from ../systemd-stable/src/basic/missing.h:18, from ../systemd-stable/src/basic/util.h:28, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/linux/stat.h:99:8: Fehler: Redefinition von »struct statx« struct statx { ^~~~~ In file included from /usr/include/sys/stat.h:446, from ../systemd-stable/src/basic/util.h:19, from ../systemd-stable/src/basic/hashmap.h:11, from ../systemd-stable/src/libsystemd/sd-bus/bus-match.h:9, from ../systemd-stable/src/libsystemd/sd-bus/bus-internal.h:14, from ../systemd-stable/src/libsystemd/sd-bus/bus-convenience.c:5: /usr/include/bits/statx.h:36:8: Anmerkung: ursprünglich hier definiert struct statx ^~~~~ [23/1574] Generating af-from-name.gperf with a meson_exe.py custom command. ninja: build stopped: subcommand failed. ==> FEHLER: Ein Fehler geschah in build(). Breche ab... ==> FEHLER:Makepkg konnte systemd-selinux nicht erstelle

IooNag commented on 2018-07-15 10:06

For information, there is small issue with systemd's NSSwitch component in the next release (v239) which leads to spurious error messages in semanage (cf. https://marc.info/?l=selinux&m=153116776608062&w=2 , glibc bug https://sourceware.org/bugzilla/show_bug.cgi?id=23410 and systemd bug https://github.com/systemd/systemd/issues/9585). This is why this package has not been updated.

KenoCooper1810 commented on 2017-11-28 07:01

A combination of using -C with makepkg and remounting my /tmp partition as exec for the duration of the compile solved my problem, are the values that were needed for a successful compile (such as FIB_RULE_UID_RANGE and SIZEOF_*_T) searched out by something in the tmp directory? Thank you for pointing me in the direction I needed.

IooNag commented on 2017-11-27 23:40

@KenoCooper1810: I did not succeed to reproduce your issue (linux-hardened 4.13.16.a-1, linux-api-headers 4.12.7-1). I have struct fib_rule_uid_range in /usr/include/linux/fib_rules.h and src/systemd/src/basic/missing.h, and I also have in src/systemd/build/config.h:
#define HAVE_STRUCT_FIB_RULE_UID_RANGE 1

Did you try to remove the src/systemd/build/ directory before building (or even the whole src directory with "makepkg -C")?

KenoCooper1810 commented on 2017-11-26 17:25

This will not build on an Arch install running the hardened kernel with the latest version of linux-api-headers. Whether using 'configure && make' or 'makepkg -ALcs' the naming conflict is the same:

ninja -C build
ninja: Entering directory `build'
[158/1853] Compiling C object 'src/libsystemd/systemd@sta/sd-netlink_netlink-types.c.o'.
FAILED: src/libsystemd/systemd@sta/sd-netlink_netlink-types.c.o
cc -Isrc/libsystemd/systemd@sta -Isrc/libsystemd -I../src/libsystemd -I. -I../ -Isrc/libsystemd-network -I../src/libsystemd-network -I../src/libsystemd/sd-network -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-device -I../src/libsystemd/sd-bus -Isrc/core -I../src/core -Isrc/libudev -I../src/libudev -Isrc/udev -I../src/udev -Isrc/login -I../src/login -Isrc/timesync -I../src/timesync -Isrc/resolve -I../src/resolve -Isrc/journal -I../src/journal -Isrc/systemd -I../src/systemd -Isrc/shared -I../src/shared -Isrc/basic -I../src/basic -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu99 -O0 -g -Wextra -Werror=undef -Wlogical-op -Wmissing-include-dirs -Wold-style-definition -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wsuggest-attribute=noreturn -Werror=missing-prototypes -Werror=implicit-function-declaration -Werror=missing-declarations -Werror=return-type -Werror=incompatible-pointer-types -Werror=format=2 -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wstrict-aliasing=2 -Wwrite-strings -Werror=overflow -Wdate-time -Wnested-externs -ffast-math -fno-common -fdiagnostics-show-option -fno-strict-aliasing -fvisibility=hidden -fstack-protector -fstack-protector-strong -fPIE --param=ssp-buffer-size=4 -Wno-unused-parameter -Wno-missing-field-initializers -Wno-unused-result -Wno-format-signedness -Wno-error=nonnull -Werror=shadow -include config.h -fPIC -pthread -MMD -MQ 'src/libsystemd/systemd@sta/sd-netlink_netlink-types.c.o' -MF 'src/libsystemd/systemd@sta/sd-netlink_netlink-types.c.o.d' -o 'src/libsystemd/systemd@sta/sd-netlink_netlink-types.c.o' -c ../src/libsystemd/sd-netlink/netlink-types.c
In file included from ../src/libsystemd/sd-netlink/netlink-types.c:40:0:
../src/basic/missing.h:1252:8: Error: ‘struct fib_rule_uid_range’ is redefined
struct fib_rule_uid_range {
^~~~~~~~~~~~~~~~~~
In file included from ../src/libsystemd/sd-netlink/netlink-types.c:25:0:
/usr/include/linux/fib_rules.h:32:8: Error : this is the location of the previous definition
struct fib_rule_uid_range {
^~~~~~~~~~~~~~~~~~
[163/1853] Compiling C object 'src/libsystemd/systemd@sta/sd-network_sd-network.c.o'.
ninja: build stopped: subcommand failed.

IooNag commented on 2017-02-04 08:51

Done. Thanks for reporting this packaging issue!

RemoteAdmin commented on 2017-02-03 05:32

@IooNag

Please remove "replaces=("${pkgname/-selinux}")" as it results to "Replace systemd-sysvcompat with aur-archlinux/systemd-sysvcompat-selinux? [Y/n]"
using "pacman -Syu" with an AUR-Repo.

As side fact - the replaces array isn't set on your other selinux packages

IooNag commented on 2016-12-19 17:49

@ashaman-crypto: I changed the source URL in order to make the git clone work in networking environments where only a few protocols are allowed (HTTP, HTTPS, FTP) but where other services like "git://" (which uses its own TCP port) are filtered. When updating you need to either remove the systemd/ git clone from your source directory, or issue this command in it:
git remote set-url origin https://github.com/systemd/systemd.git

You also need to download the GPG key which fingerprint is given by validpgpkeys variable (63CDA1E5D3FC22B998D20DD6327F26951A015CC4) in order to validate the authenticity of the git tag in prepare(). This validation has been introduced in systemd package in https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/systemd&id=0644d26ab7e2ea8eb09e3566cff0d197890c8d47