New upstream release including udev merge

This commit is contained in:
Kay Sievers 2012-05-24 22:42:11 +02:00
parent 22472eafdf
commit 973c8d4ab5
2 changed files with 101 additions and 76 deletions

View File

@ -1,44 +0,0 @@
From 7264278fbbdc1dc6c30fedc902d1337594aa6ff6 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 21 Mar 2012 22:47:44 +0000
Subject: journal: PAGE_SIZE is not known on ppc and other archs
Let's use NAME_MAX, as suggested by Dan Walsh
---
diff --git a/src/journal/journald.c b/src/journal/journald.c
index d27cb60..87390bd 100644
--- a/src/journal/journald.c
+++ b/src/journal/journald.c
@@ -29,7 +29,6 @@
#include <sys/ioctl.h>
#include <linux/sockios.h>
#include <sys/statvfs.h>
-#include <sys/user.h>
#include <systemd/sd-journal.h>
#include <systemd/sd-login.h>
@@ -2149,10 +2148,20 @@ static int process_event(Server *s, struct epoll_event *ev) {
size_t label_len = 0;
union {
struct cmsghdr cmsghdr;
+
+ /* We use NAME_MAX space for the
+ * SELinux label here. The kernel
+ * currently enforces no limit, but
+ * according to suggestions from the
+ * SELinux people this will change and
+ * it will probably be identical to
+ * NAME_MAX. For now we use that, but
+ * this should be updated one day when
+ * the final limit is known.*/
uint8_t buf[CMSG_SPACE(sizeof(struct ucred)) +
CMSG_SPACE(sizeof(struct timeval)) +
- CMSG_SPACE(sizeof(int)) +
- CMSG_SPACE(PAGE_SIZE)]; /* selinux label */
+ CMSG_SPACE(sizeof(int)) + /* fd */
+ CMSG_SPACE(NAME_MAX)]; /* selinux label */
} control;
ssize_t n;
int v;
--
cgit v0.9.0.2-2-gbebe

View File

@ -2,13 +2,11 @@
Name: systemd Name: systemd
Url: http://www.freedesktop.org/wiki/Software/systemd Url: http://www.freedesktop.org/wiki/Software/systemd
Version: 44 Version: 183
Release: 4%{?gitcommit:.git%{gitcommit}}%{?dist} Release: 1%{?gitcommit:.git%{gitcommit}}%{?dist}
License: GPLv2+ License: GPLv2+
Group: System Environment/Base Group: System Environment/Base
Summary: A System and Service Manager Summary: A System and Service Manager
BuildRequires: udev >= 179-2
BuildRequires: libudev-devel >= 179-2
BuildRequires: libcap-devel BuildRequires: libcap-devel
BuildRequires: tcp_wrappers-devel BuildRequires: tcp_wrappers-devel
BuildRequires: pam-devel BuildRequires: pam-devel
@ -20,10 +18,17 @@ BuildRequires: libxslt
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: libacl-devel BuildRequires: libacl-devel
BuildRequires: pciutils-devel
BuildRequires: glib2-devel
BuildRequires: hwdata
BuildRequires: gobject-introspection-devel >= 0.6.2
BuildRequires: usbutils >= 0.82
BuildRequires: libblkid-devel >= 2.20
BuildRequires: intltool >= 0.40.0 BuildRequires: intltool >= 0.40.0
BuildRequires: gperf BuildRequires: gperf
BuildRequires: xz-devel BuildRequires: xz-devel
BuildRequires: kmod-devel >= 5 BuildRequires: kmod-devel >= 5
BuildRequires: gtk-doc
%if %{defined gitcommit} %if %{defined gitcommit}
BuildRequires: automake BuildRequires: automake
BuildRequires: autoconf BuildRequires: autoconf
@ -32,13 +37,11 @@ BuildRequires: libtool
Requires(post): authconfig Requires(post): authconfig
Requires(post): coreutils Requires(post): coreutils
Requires(post): gawk Requires(post): gawk
Requires: dbus >= 1.4.6-3.fc15 Requires(pre): fileutils
Requires: udev >= 179-2 Requires(pre): /usr/bin/getent /usr/sbin/groupadd
Requires: libudev >= 179-2 Requires: dbus
Requires: initscripts >= 9.28 Requires: hwdata
Requires: filesystem >= 3 Requires: filesystem >= 3
Conflicts: selinux-policy < 3.9.16-12.fc15
Conflicts: kernel < 2.6.35.2-9.fc14
Requires: nss-myhostname Requires: nss-myhostname
%if %{defined gitcommit} %if %{defined gitcommit}
# Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit] # Snapshot tarball can be created using: ./make-git-shapshot.sh [gitcommit]
@ -53,9 +56,7 @@ Source2: systemd-sysv-convert
Source3: udlfb.conf Source3: udlfb.conf
# Stop-gap, just to ensure things work fine with rsyslog without having to change the package right-away # Stop-gap, just to ensure things work fine with rsyslog without having to change the package right-away
Source4: listen.conf Source4: listen.conf
Patch0: systemd-PAGE_SIZE.patch
# For sysvinit tools
Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24 Obsoletes: SysVinit < 2.86-24, sysvinit < 2.86-24
Provides: SysVinit = 2.86-24, sysvinit = 2.86-24 Provides: SysVinit = 2.86-24, sysvinit = 2.86-24
Provides: sysvinit-userspace Provides: sysvinit-userspace
@ -70,8 +71,8 @@ Provides: /bin/systemctl
Provides: /sbin/shutdown Provides: /sbin/shutdown
Obsoletes: systemd-units < 38-5 Obsoletes: systemd-units < 38-5
Provides: systemd-units = %{version}-%{release} Provides: systemd-units = %{version}-%{release}
# for the systemd-analyze split: Provides: udev = 183
Obsoletes: systemd < 38-5 Obsoletes: udev < 183
%description %description
systemd is a system and service manager for Linux, compatible with systemd is a system and service manager for Linux, compatible with
@ -87,6 +88,8 @@ work as a drop-in replacement for sysvinit.
Group: System Environment/Base Group: System Environment/Base
Summary: Development headers for systemd Summary: Development headers for systemd
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Provides: libudev-devel = 183
Obsoletes: libudev-devel < 183
%description devel %description devel
Development headers and auxiliary files for developing applications for systemd. Development headers and auxiliary files for developing applications for systemd.
@ -114,22 +117,47 @@ initialization at boot.
'systemd-analyze plot' renders an SVG visualizing the parallel start of units 'systemd-analyze plot' renders an SVG visualizing the parallel start of units
at boot. at boot.
%package -n libgudev1
Summary: Libraries for adding libudev support to applications that use glib
Group: Development/Libraries
Conflicts: filesystem < 3
License: LGPLv2+
%description -n libgudev1
This package contains the libraries that make it easier to use libudev
functionality from applications that use glib.
%package -n libgudev1-devel
Summary: Header files for adding libudev support to applications that use glib
Group: Development/Libraries
Requires: libgudev1 = %{version}-%{release}
License: LGPLv2+
%description -n libgudev1-devel
This package contains the header and pkg-config files for developing
glib-based applications using libudev functionality.
%prep %prep
%setup -q %{?gitcommit:-n %{name}-git%{gitcommit}} %setup -q %{?gitcommit:-n %{name}-git%{gitcommit}}
%patch0 -p1
%build %build
%{?gitcommit: ./autogen.sh } %{?gitcommit: ./autogen.sh }
%configure --with-distro=fedora --disable-static %configure \
--with-distro=fedora \
--libexecdir=%{_prefix}/lib \
--enable-gtk-doc \
--disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make DESTDIR=%{buildroot} install make DESTDIR=%{buildroot} install
find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \; find %{buildroot} \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
mkdir -p %{buildroot}/%{_sbindir}
ln -sf ../bin/udevadm %{buildroot}%{_sbindir}/udevadm
mkdir -p %{buildroot}%{_prefix}/lib/firmware/updates
# Create SysV compatibility symlinks. systemctl/systemd are smart # Create SysV compatibility symlinks. systemctl/systemd are smart
# enough to detect in which way they are called. # enough to detect in which way they are called.
mkdir -p %{buildroot}/%{_sbindir}
ln -s ../lib/systemd/systemd %{buildroot}%{_sbindir}/init ln -s ../lib/systemd/systemd %{buildroot}%{_sbindir}/init
ln -s ../lib/systemd/systemd %{buildroot}%{_bindir}/systemd ln -s ../lib/systemd/systemd %{buildroot}%{_bindir}/systemd
ln -s ../bin/systemctl %{buildroot}%{_sbindir}/reboot ln -s ../bin/systemctl %{buildroot}%{_sbindir}/reboot
@ -191,21 +219,21 @@ install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/rsyslog.d/
rm -f %{buildroot}%{_prefix}/lib/sysctl.d/coredump.conf rm -f %{buildroot}%{_prefix}/lib/sysctl.d/coredump.conf
# Let rsyslog read from /proc/kmsg for now # Let rsyslog read from /proc/kmsg for now
sed -i -e 's/\#ImportKernel=yes/ImportKernel=no/' %{buildroot}%{_sysconfdir}/systemd/systemd-journald.conf sed -i -e 's/\#ImportKernel=yes/ImportKernel=no/' %{buildroot}%{_sysconfdir}/systemd/journald.conf
%pre
getent group cdrom >/dev/null || /usr/sbin/groupadd -g 11 cdrom || :
getent group tape >/dev/null || /usr/sbin/groupadd -g 33 tape || :
getent group dialout >/dev/null || /usr/sbin/groupadd -g 18 dialout || :
getent group floppy >/dev/null || /usr/sbin/groupadd -g 19 floppy || :
systemctl stop systemd-udev.service systemd-udev-control.socket systemd-udev-kernel.socket >/dev/null 2>&1 || :
%post %post
/sbin/ldconfig /sbin/ldconfig
/usr/bin/systemd-machine-id-setup > /dev/null 2>&1 || : /usr/bin/systemd-machine-id-setup > /dev/null 2>&1 || :
/usr/lib/systemd/systemd-random-seed save > /dev/null 2>&1 || : /usr/lib/systemd/systemd-random-seed save > /dev/null 2>&1 || :
/bin/systemctl daemon-reexec > /dev/null 2>&1 || : /bin/systemctl daemon-reexec > /dev/null 2>&1 || :
/bin/systemctl start systemd-udev.service >/dev/null 2>&1 || :
# Make sure pam_systemd is enabled
if ! /bin/grep -q pam_systemd /etc/pam.d/system-auth-ac >/dev/null 2>&1 || ! [ -h /etc/pam.d/system-auth ] ; then
/usr/sbin/authconfig --update --nostart >/dev/null 2>&1 || :
# Try harder
/bin/grep -q pam_systemd /etc/pam.d/system-auth-ac >/dev/null 2>&1 || /usr/sbin/authconfig --updateall --nostart >/dev/null 2>&1 || :
fi
# Stop-gap until rsyslog.rpm does this on its own. (This is supposed # Stop-gap until rsyslog.rpm does this on its own. (This is supposed
# to fail when the link already exists) # to fail when the link already exists)
@ -264,7 +292,11 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
systemd-readahead-replay.service \ systemd-readahead-replay.service \
systemd-readahead-collect.service systemd-readahead-collect.service
%post -n libgudev1 -p /sbin/ldconfig
%postun -n libgudev1 -p /sbin/ldconfig
%files %files
%doc NEWS README src/udev/keymap/README.keymap.txt
%doc %{_docdir}/systemd %doc %{_docdir}/systemd
%dir %{_sysconfdir}/systemd %dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system %dir %{_sysconfdir}/systemd/system
@ -290,8 +322,11 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.timedate1.conf
%config(noreplace) %{_sysconfdir}/systemd/system.conf %config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/user.conf %config(noreplace) %{_sysconfdir}/systemd/user.conf
%config(noreplace) %{_sysconfdir}/systemd/systemd-logind.conf %config(noreplace) %{_sysconfdir}/systemd/logind.conf
%config(noreplace) %{_sysconfdir}/systemd/systemd-journald.conf %config(noreplace) %{_sysconfdir}/systemd/journald.conf
%config(noreplace) %{_sysconfdir}/udev/udev.conf
%dir %{_sysconfdir}/udev/
%dir %{_sysconfdir}/udev/rules.d/
%{_sysconfdir}/bash_completion.d/systemd-bash-completion.sh %{_sysconfdir}/bash_completion.d/systemd-bash-completion.sh
%{_sysconfdir}/rpm/macros.systemd %{_sysconfdir}/rpm/macros.systemd
%{_sysconfdir}/xdg/systemd %{_sysconfdir}/xdg/systemd
@ -314,26 +349,33 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%{_bindir}/systemd-ask-password %{_bindir}/systemd-ask-password
%{_bindir}/systemd-tty-ask-password-agent %{_bindir}/systemd-tty-ask-password-agent
%{_bindir}/systemd-machine-id-setup %{_bindir}/systemd-machine-id-setup
%{_bindir}/systemd-loginctl %{_bindir}/loginctl
%{_bindir}/systemd-journalctl %{_bindir}/journalctl
%{_bindir}/systemd-tmpfiles %{_bindir}/systemd-tmpfiles
%{_bindir}/systemd-nspawn %{_bindir}/systemd-nspawn
%{_bindir}/systemd-stdio-bridge %{_bindir}/systemd-stdio-bridge
%{_bindir}/systemd-cat %{_bindir}/systemd-cat
%{_bindir}/systemd-cgls %{_bindir}/systemd-cgls
%{_bindir}/systemd-cgtop %{_bindir}/systemd-cgtop
%{_bindir}/systemd-delta
%{_bindir}/systemd-detect-virt
%{_bindir}/systemd-inhibit
%{_bindir}/udevadm
%{_prefix}/lib/systemd/system %{_prefix}/lib/systemd/system
%{_prefix}/lib/systemd/user %{_prefix}/lib/systemd/user
%{_prefix}/lib/systemd/systemd-* %{_prefix}/lib/systemd/systemd-*
%{_prefix}/lib/udev/rules.d/*.rules %{_prefix}/lib/udev
%{_prefix}/lib/systemd/system-generators/systemd-cryptsetup-generator %{_prefix}/lib/systemd/system-generators/systemd-cryptsetup-generator
%{_prefix}/lib/systemd/system-generators/systemd-getty-generator %{_prefix}/lib/systemd/system-generators/systemd-getty-generator
%{_prefix}/lib/systemd/system-generators/systemd-rc-local-generator %{_prefix}/lib/systemd/system-generators/systemd-rc-local-generator
%{_prefix}/lib/systemd/system-generators/systemd-fstab-generator
%{_prefix}/lib/systemd/system-generators/systemd-system-update-generator
%{_libdir}/security/pam_systemd.so %{_libdir}/security/pam_systemd.so
%{_libdir}/libsystemd-daemon.so.* %{_libdir}/libsystemd-daemon.so.*
%{_libdir}/libsystemd-login.so.* %{_libdir}/libsystemd-login.so.*
%{_libdir}/libsystemd-journal.so.* %{_libdir}/libsystemd-journal.so.*
%{_libdir}/libsystemd-id128.so.* %{_libdir}/libsystemd-id128.so.*
%{_libdir}/libudev.so.*
%{_sbindir}/init %{_sbindir}/init
%{_sbindir}/reboot %{_sbindir}/reboot
%{_sbindir}/halt %{_sbindir}/halt
@ -341,8 +383,8 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%{_sbindir}/shutdown %{_sbindir}/shutdown
%{_sbindir}/telinit %{_sbindir}/telinit
%{_sbindir}/runlevel %{_sbindir}/runlevel
%{_sbindir}/udevadm
%{_mandir}/man1/* %{_mandir}/man1/*
%exclude %{_mandir}/man1/systemadm.*
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man7/* %{_mandir}/man7/*
%{_mandir}/man8/* %{_mandir}/man8/*
@ -363,7 +405,10 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy %{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy %{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
%{_datadir}/pkgconfig/systemd.pc %{_datadir}/pkgconfig/systemd.pc
%{_datadir}/pkgconfig/udev.pc
%config(noreplace) %{_sysconfdir}/modprobe.d/udlfb.conf %config(noreplace) %{_sysconfdir}/modprobe.d/udlfb.conf
%dir %{_prefix}/lib/firmware
%dir %{_prefix}/lib/firmware/updates
# Make sure we don't remove runlevel targets from F14 alpha installs, # Make sure we don't remove runlevel targets from F14 alpha installs,
# but make sure we don't create then anew. # but make sure we don't create then anew.
@ -377,16 +422,23 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%{_libdir}/libsystemd-login.so %{_libdir}/libsystemd-login.so
%{_libdir}/libsystemd-journal.so %{_libdir}/libsystemd-journal.so
%{_libdir}/libsystemd-id128.so %{_libdir}/libsystemd-id128.so
%{_libdir}/libudev.so
%{_includedir}/systemd/sd-daemon.h %{_includedir}/systemd/sd-daemon.h
%{_includedir}/systemd/sd-login.h %{_includedir}/systemd/sd-login.h
%{_includedir}/systemd/sd-journal.h %{_includedir}/systemd/sd-journal.h
%{_includedir}/systemd/sd-id128.h %{_includedir}/systemd/sd-id128.h
%{_includedir}/systemd/sd-messages.h %{_includedir}/systemd/sd-messages.h
%{_includedir}/systemd/sd-readahead.h
%{_includedir}/systemd/sd-shutdown.h
%{_includedir}/libudev.h
%{_libdir}/pkgconfig/libsystemd-daemon.pc %{_libdir}/pkgconfig/libsystemd-daemon.pc
%{_libdir}/pkgconfig/libsystemd-login.pc %{_libdir}/pkgconfig/libsystemd-login.pc
%{_libdir}/pkgconfig/libsystemd-journal.pc %{_libdir}/pkgconfig/libsystemd-journal.pc
%{_libdir}/pkgconfig/libsystemd-id128.pc %{_libdir}/pkgconfig/libsystemd-id128.pc
%{_libdir}/pkgconfig/libudev.pc
%{_mandir}/man3/* %{_mandir}/man3/*
%dir %{_datadir}/gtk-doc/html/libudev
%attr(0644,root,root) %{_datadir}/gtk-doc/html/libudev/*
%files sysv %files sysv
%{_bindir}/systemd-sysv-convert %{_bindir}/systemd-sysv-convert
@ -394,7 +446,24 @@ mv /etc/systemd/system/default.target.save /etc/systemd/system/default.target >/
%files analyze %files analyze
%{_bindir}/systemd-analyze %{_bindir}/systemd-analyze
%files -n libgudev1
%attr(0755,root,root) %{_libdir}/libgudev-1.0.so.*
%attr(0644,root,root) %{_libdir}/girepository-1.0/GUdev-1.0.typelib
%files -n libgudev1-devel
%attr(0755,root,root) %{_libdir}/libgudev-1.0.so
%dir %attr(0755,root,root) %{_includedir}/gudev-1.0
%dir %attr(0755,root,root) %{_includedir}/gudev-1.0/gudev
%attr(0644,root,root) %{_includedir}/gudev-1.0/gudev/*.h
%attr(0644,root,root) %{_datadir}/gir-1.0/GUdev-1.0.gir
%dir %{_datadir}/gtk-doc/html/gudev
%attr(0644,root,root) %{_datadir}/gtk-doc/html/gudev/*
%attr(0644,root,root) %{_libdir}/pkgconfig/gudev-1.0*
%changelog %changelog
* Thu May 24 2012 Kay Sievers <kay@redhat.com> - 183-1
- New upstream release including udev merge.
* Wed Mar 28 2012 Michal Schmidt <mschmidt@redhat.com> - 44-4 * Wed Mar 28 2012 Michal Schmidt <mschmidt@redhat.com> - 44-4
- Add triggers from Bill Nottingham to correct the damage done by - Add triggers from Bill Nottingham to correct the damage done by
the obsoleted systemd-units's preun scriptlet (#807457). the obsoleted systemd-units's preun scriptlet (#807457).