-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
systemd: 239.20190219 -> 241.20190221 #56184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -14,11 +14,8 @@ | |||||
| , withKexectools ? lib.any (lib.meta.platformMatch stdenv.hostPlatform) kexectools.meta.platforms, kexectools | ||||||
| }: | ||||||
|
|
||||||
| let | ||||||
| pythonLxmlEnv = buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ]); | ||||||
|
|
||||||
| in stdenv.mkDerivation rec { | ||||||
| version = "239.20190219"; | ||||||
| stdenv.mkDerivation rec { | ||||||
| version = "241.20190221"; | ||||||
| name = "systemd-${version}"; | ||||||
|
|
||||||
| # When updating, use https://github.com/systemd/systemd-stable tree, not the development one! | ||||||
|
|
@@ -27,25 +24,9 @@ in stdenv.mkDerivation rec { | |||||
| owner = "NixOS"; | ||||||
| repo = "systemd"; | ||||||
| rev = "nixos-v${version}"; | ||||||
| sha256 = "0aczg25ih2gfjq810x8rw6rnpr6sw1lz6z0lvlyw2qphyih68b4x"; | ||||||
| sha256 = "0grcf0x793k1jx4bx7p63h3f3cd8w262824mzf8iwdsy6y9wzylr"; | ||||||
| }; | ||||||
|
|
||||||
| prePatch = let | ||||||
| # Upstream's maintenance branches are still too intrusive: | ||||||
| # https://github.com/systemd/systemd-stable/tree/v239-stable | ||||||
| patches-deb = fetchurl { | ||||||
| # When the URL disappears, it typically means that Debian has new patches | ||||||
| # (probably security) and updating to new tarball will apply them as well. | ||||||
| name = "systemd-debian-patches.tar.xz"; | ||||||
| url = mirror://debian/pool/main/s/systemd/systemd_239-12~bpo9+1.debian.tar.xz; | ||||||
| sha256 = "0v9f62gyfiw5icdrdlcvjcipsqrsm49w6n8bqp9nb8s2ih6rsfhg"; | ||||||
| }; | ||||||
| # Note that we skip debian-specific patches, i.e. ./debian/patches/debian/* | ||||||
| in '' | ||||||
| tar xf ${patches-deb} | ||||||
| patches="$patches $(cat debian/patches/series | grep -v '^debian/' | sed 's|^|debian/patches/|')" | ||||||
| ''; | ||||||
|
|
||||||
| outputs = [ "out" "lib" "man" "dev" ]; | ||||||
|
|
||||||
| nativeBuildInputs = | ||||||
|
|
@@ -54,6 +35,8 @@ in stdenv.mkDerivation rec { | |||||
| coreutils # meson calls date, stat etc. | ||||||
| glibcLocales | ||||||
| patchelf getent m4 | ||||||
|
|
||||||
| (buildPackages.python3Packages.python.withPackages ( ps: with ps; [ python3Packages.lxml ])) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Or just |
||||||
| ]; | ||||||
| buildInputs = | ||||||
| [ linuxHeaders libcap kmod xz pam acl | ||||||
|
|
@@ -63,13 +46,19 @@ in stdenv.mkDerivation rec { | |||||
| stdenv.lib.optional withLibseccomp libseccomp ++ | ||||||
| [ libffi audit lz4 bzip2 libapparmor | ||||||
| iptables gnu-efi | ||||||
| # This is actually native, but we already pull it from buildPackages | ||||||
| pythonLxmlEnv | ||||||
| ] ++ stdenv.lib.optional withSelinux libselinux; | ||||||
|
|
||||||
| #dontAddPrefix = true; | ||||||
|
|
||||||
| mesonFlags = [ | ||||||
| "-Ddbuspolicydir=${placeholder "out"}/etc/dbus-1/system.d" | ||||||
| "-Ddbussessionservicedir=${placeholder "out"}/share/dbus-1/services" | ||||||
| "-Ddbussystemservicedir=${placeholder "out"}/share/dbus-1/system-services" | ||||||
| "-Dpamconfdir=${placeholder "out"}/etc/pam.d" | ||||||
| "-Drootprefix=${placeholder "out"}" | ||||||
| "-Drootlibdir=${placeholder "lib"}/lib" | ||||||
| "-Dpkgconfiglibdir=${placeholder "dev"}/lib/pkgconfig" | ||||||
| "-Dpkgconfigdatadir=${placeholder "dev"}/share/pkgconfig" | ||||||
| "-Dloadkeys-path=${kbd}/bin/loadkeys" | ||||||
| "-Dsetfont-path=${kbd}/bin/setfont" | ||||||
| "-Dtty-gid=3" # tty in NixOS has gid 3 | ||||||
|
|
@@ -90,6 +79,7 @@ in stdenv.mkDerivation rec { | |||||
| "-Dquotacheck=false" | ||||||
| "-Dldconfig=false" | ||||||
| "-Dsmack=true" | ||||||
| "-Db_pie=true" | ||||||
| "-Dsystem-uid-max=499" #TODO: debug why awking around in /etc/login.defs doesn't work | ||||||
| "-Dsystem-gid-max=499" | ||||||
| # "-Dtime-epoch=1" | ||||||
|
|
@@ -111,15 +101,6 @@ in stdenv.mkDerivation rec { | |||||
|
|
||||||
| preConfigure = '' | ||||||
| mesonFlagsArray+=(-Dntp-servers="0.nixos.pool.ntp.org 1.nixos.pool.ntp.org 2.nixos.pool.ntp.org 3.nixos.pool.ntp.org") | ||||||
| mesonFlagsArray+=(-Ddbuspolicydir=$out/etc/dbus-1/system.d) | ||||||
| mesonFlagsArray+=(-Ddbussessionservicedir=$out/share/dbus-1/services) | ||||||
| mesonFlagsArray+=(-Ddbussystemservicedir=$out/share/dbus-1/system-services) | ||||||
| mesonFlagsArray+=(-Dpamconfdir=$out/etc/pam.d) | ||||||
| mesonFlagsArray+=(-Drootprefix=$out) | ||||||
| mesonFlagsArray+=(-Drootlibdir=$lib/lib) | ||||||
| mesonFlagsArray+=(-Dpkgconfiglibdir=$dev/lib/pkgconfig) | ||||||
| mesonFlagsArray+=(-Dpkgconfigdatadir=$dev/share/pkgconfig) | ||||||
|
|
||||||
| export LC_ALL="en_US.UTF-8"; | ||||||
| # FIXME: patch this in systemd properly (and send upstream). | ||||||
| # already fixed in f00929ad622c978f8ad83590a15a765b4beecac9: (u)mount | ||||||
|
|
@@ -137,14 +118,8 @@ in stdenv.mkDerivation rec { | |||||
| --replace /bin/plymouth /run/current-system/sw/bin/plymouth # To avoid dependency | ||||||
| done | ||||||
|
|
||||||
| for i in tools/xml_helper.py tools/make-directive-index.py tools/make-man-index.py test/sys-script.py; do | ||||||
| substituteInPlace $i \ | ||||||
| --replace "#!/usr/bin/env python" "#!${pythonLxmlEnv}/bin/python" | ||||||
| done | ||||||
|
|
||||||
| for i in src/basic/generate-gperfs.py src/resolve/generate-dns_type-gperf.py src/test/generate-sym-test.py ; do | ||||||
| substituteInPlace $i \ | ||||||
| --replace "#!/usr/bin/env python" "#!${buildPackages.python3Packages.python}/bin/python" | ||||||
| for dir in tools src/resolve test src/test; do | ||||||
| patchShebangs $dir | ||||||
| done | ||||||
|
|
||||||
| substituteInPlace src/journal/catalog.c \ | ||||||
|
|
||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is new in v240: https://github.com/systemd/systemd/blob/f2ccf8320ac5d121cc8f50622ae3c9af1d0bfea2/NEWS#L369