Date: Thursday, October 30, 2014 @ 00:30:40 Author: dreisner Revision: 225458
archrelease: copy trunk to testing-i686, testing-x86_64 Added: kmod/repos/testing-i686/ kmod/repos/testing-i686/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (from rev 225457, kmod/trunk/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) kmod/repos/testing-i686/PKGBUILD (from rev 225457, kmod/trunk/PKGBUILD) kmod/repos/testing-i686/depmod-search.conf (from rev 225457, kmod/trunk/depmod-search.conf) kmod/repos/testing-x86_64/ kmod/repos/testing-x86_64/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (from rev 225457, kmod/trunk/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) kmod/repos/testing-x86_64/PKGBUILD (from rev 225457, kmod/trunk/PKGBUILD) kmod/repos/testing-x86_64/depmod-search.conf (from rev 225457, kmod/trunk/depmod-search.conf) --------------------------------------------------------------------------------+ testing-i686/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch | 36 ++++++ testing-i686/PKGBUILD | 60 ++++++++++ testing-i686/depmod-search.conf | 5 testing-x86_64/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch | 36 ++++++ testing-x86_64/PKGBUILD | 60 ++++++++++ testing-x86_64/depmod-search.conf | 5 6 files changed, 202 insertions(+) Copied: kmod/repos/testing-i686/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (from rev 225457, kmod/trunk/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) =================================================================== --- testing-i686/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (rev 0) +++ testing-i686/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,36 @@ +From 27eceb2e4ecbf2e31940b67cee682a6935f61e6c Mon Sep 17 00:00:00 2001 +From: Tom Gundersen <t...@jklm.no> +Date: Mon, 27 Oct 2014 17:55:03 +0100 +Subject: [PATCH] static-nodes: indicate that creation of static nodes should + only happen at boot + +udev will only manage static nodes that exist at the time udev is started, so +creating static nodes later on will likely not behave as expected. In +particular, recreating the static nodes at run-time will reset any permissions +udev may have applied to the nodes at boot. + +See <https://bugzilla.redhat.com/show_bug.cgi?id=1147248> and the discussion +following <http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/23795>. + +Note that this requires (the yet to be released) systemd v217 or a backport +of systemd patch 8c94052ee543c3598a3c7b0c46688150aa2c6168. +--- + tools/static-nodes.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/static-nodes.c b/tools/static-nodes.c +index d1e3b6e..8d2356d 100644 +--- a/tools/static-nodes.c ++++ b/tools/static-nodes.c +@@ -96,7 +96,7 @@ static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, + return EXIT_FAILURE; + } + +- ret = fprintf(out, "%c /dev/%s 0600 - - - %u:%u\n", ++ ret = fprintf(out, "%c! /dev/%s 0600 - - - %u:%u\n", + type, devname, maj, min); + if (ret < 0) + return EXIT_FAILURE; +-- +2.1.2 + Copied: kmod/repos/testing-i686/PKGBUILD (from rev 225457, kmod/trunk/PKGBUILD) =================================================================== --- testing-i686/PKGBUILD (rev 0) +++ testing-i686/PKGBUILD 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Dave Reisner <dreis...@archlinux.org> + +pkgname=kmod +pkgver=18 +pkgrel=2 +pkgdesc="Linux kernel module handling" +arch=('i686' 'x86_64') +url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary' +license=('GPL2') +depends=('glibc' 'zlib') +makedepends=('gtk-doc') +options=('strip' 'debug') +provides=('module-init-tools=3.16' 'libkmod.so') +conflicts=('module-init-tools') +replaces=('module-init-tools') +source=("ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$pkgver.tar.xz" + "depmod-search.conf" + 0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) +md5sums=('82835c7f01983634e06ca72b4ee30cc6' + 'dd62cbf62bd8f212f51ef8c43bec9a77' + 'e9ffb25ec5759523875f0eb13c525bab') + + +prepare() { + cd "$pkgname-$pkgver" + + patch -Np1 <../0001-static-nodes-indicate-that-creation-of-static-nodes-.patch +} + +build() { + cd "$pkgname-$pkgver" + + ./configure \ + --sysconfdir=/etc \ + --enable-gtk-doc \ + --with-zlib + + make +} + +check() { + make -C "$pkgname-$pkgver" check +} + +package() { + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install + + # extra directories + install -dm755 "$pkgdir"/{etc,usr/lib}/{depmod,modprobe}.d + + for tool in {ins,ls,rm,dep}mod mod{probe,info}; do + ln -s kmod "$pkgdir/usr/bin/$tool" + done + + # install depmod.d file for search/ dir + install -Dm644 "$srcdir/depmod-search.conf" "$pkgdir/usr/lib/depmod.d/search.conf" +} + +# vim: ft=sh syn=sh et Copied: kmod/repos/testing-i686/depmod-search.conf (from rev 225457, kmod/trunk/depmod-search.conf) =================================================================== --- testing-i686/depmod-search.conf (rev 0) +++ testing-i686/depmod-search.conf 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,5 @@ +# +# /usr/lib/depmod.d/search.conf +# + +search updates extramodules built-in Copied: kmod/repos/testing-x86_64/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (from rev 225457, kmod/trunk/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) =================================================================== --- testing-x86_64/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch (rev 0) +++ testing-x86_64/0001-static-nodes-indicate-that-creation-of-static-nodes-.patch 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,36 @@ +From 27eceb2e4ecbf2e31940b67cee682a6935f61e6c Mon Sep 17 00:00:00 2001 +From: Tom Gundersen <t...@jklm.no> +Date: Mon, 27 Oct 2014 17:55:03 +0100 +Subject: [PATCH] static-nodes: indicate that creation of static nodes should + only happen at boot + +udev will only manage static nodes that exist at the time udev is started, so +creating static nodes later on will likely not behave as expected. In +particular, recreating the static nodes at run-time will reset any permissions +udev may have applied to the nodes at boot. + +See <https://bugzilla.redhat.com/show_bug.cgi?id=1147248> and the discussion +following <http://permalink.gmane.org/gmane.comp.sysutils.systemd.devel/23795>. + +Note that this requires (the yet to be released) systemd v217 or a backport +of systemd patch 8c94052ee543c3598a3c7b0c46688150aa2c6168. +--- + tools/static-nodes.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/static-nodes.c b/tools/static-nodes.c +index d1e3b6e..8d2356d 100644 +--- a/tools/static-nodes.c ++++ b/tools/static-nodes.c +@@ -96,7 +96,7 @@ static int write_tmpfiles(FILE *out, char modname[], char devname[], char type, + return EXIT_FAILURE; + } + +- ret = fprintf(out, "%c /dev/%s 0600 - - - %u:%u\n", ++ ret = fprintf(out, "%c! /dev/%s 0600 - - - %u:%u\n", + type, devname, maj, min); + if (ret < 0) + return EXIT_FAILURE; +-- +2.1.2 + Copied: kmod/repos/testing-x86_64/PKGBUILD (from rev 225457, kmod/trunk/PKGBUILD) =================================================================== --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,60 @@ +# $Id$ +# Maintainer: Dave Reisner <dreis...@archlinux.org> + +pkgname=kmod +pkgver=18 +pkgrel=2 +pkgdesc="Linux kernel module handling" +arch=('i686' 'x86_64') +url='http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary' +license=('GPL2') +depends=('glibc' 'zlib') +makedepends=('gtk-doc') +options=('strip' 'debug') +provides=('module-init-tools=3.16' 'libkmod.so') +conflicts=('module-init-tools') +replaces=('module-init-tools') +source=("ftp://ftp.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$pkgver.tar.xz" + "depmod-search.conf" + 0001-static-nodes-indicate-that-creation-of-static-nodes-.patch) +md5sums=('82835c7f01983634e06ca72b4ee30cc6' + 'dd62cbf62bd8f212f51ef8c43bec9a77' + 'e9ffb25ec5759523875f0eb13c525bab') + + +prepare() { + cd "$pkgname-$pkgver" + + patch -Np1 <../0001-static-nodes-indicate-that-creation-of-static-nodes-.patch +} + +build() { + cd "$pkgname-$pkgver" + + ./configure \ + --sysconfdir=/etc \ + --enable-gtk-doc \ + --with-zlib + + make +} + +check() { + make -C "$pkgname-$pkgver" check +} + +package() { + make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install + + # extra directories + install -dm755 "$pkgdir"/{etc,usr/lib}/{depmod,modprobe}.d + + for tool in {ins,ls,rm,dep}mod mod{probe,info}; do + ln -s kmod "$pkgdir/usr/bin/$tool" + done + + # install depmod.d file for search/ dir + install -Dm644 "$srcdir/depmod-search.conf" "$pkgdir/usr/lib/depmod.d/search.conf" +} + +# vim: ft=sh syn=sh et Copied: kmod/repos/testing-x86_64/depmod-search.conf (from rev 225457, kmod/trunk/depmod-search.conf) =================================================================== --- testing-x86_64/depmod-search.conf (rev 0) +++ testing-x86_64/depmod-search.conf 2014-10-29 23:30:40 UTC (rev 225458) @@ -0,0 +1,5 @@ +# +# /usr/lib/depmod.d/search.conf +# + +search updates extramodules built-in