[Pkg-libvirt-commits] [libvirt] 03/05: Drop Add-check-aclperms.pl.patch

Guido Guenther agx at alioth.debian.org
Tue Oct 1 13:02:23 UTC 2013


This is an automated email from the git hooks/post-receive script.

agx pushed a commit to annotated tag debian/1.1.3-1
in repository libvirt.

commit 372138055686cf605489fa260ee694101fde4ba9
Author: Guido Günther <agx at sigxcpu.org>
Date:   Tue Oct 1 13:21:48 2013 +0200

    Drop Add-check-aclperms.pl.patch
    
    applied upstream
---
 debian/patches/Add-check-aclperms.pl.patch |   89 ----------------------------
 debian/patches/series                      |    1 -
 debian/rules                               |    1 -
 3 files changed, 91 deletions(-)

diff --git a/debian/patches/Add-check-aclperms.pl.patch b/debian/patches/Add-check-aclperms.pl.patch
deleted file mode 100644
index 4632826..0000000
--- a/debian/patches/Add-check-aclperms.pl.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx at sigxcpu.org>
-Date: Thu, 26 Sep 2013 13:29:54 +0200
-Subject: Add check-aclperms.pl
-
-missing from the dist tarball
----
- src/check-aclperms.pl | 73 +++++++++++++++++++++++++++++++++++++++++++++++++++
- 1 file changed, 73 insertions(+)
- create mode 100755 src/check-aclperms.pl
-
-diff --git a/src/check-aclperms.pl b/src/check-aclperms.pl
-new file mode 100755
-index 0000000..5b1b4db
---- /dev/null
-+++ b/src/check-aclperms.pl
-@@ -0,0 +1,73 @@
-+#!/usr/bin/perl
-+#
-+# Copyright (C) 2013 Red Hat, Inc.
-+#
-+# This library is free software; you can redistribute it and/or
-+# modify it under the terms of the GNU Lesser General Public
-+# License as published by the Free Software Foundation; either
-+# version 2.1 of the License, or (at your option) any later version.
-+#
-+# This library is distributed in the hope that it will be useful,
-+# but WITHOUT ANY WARRANTY; without even the implied warranty of
-+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-+# Lesser General Public License for more details.
-+#
-+# You should have received a copy of the GNU Lesser General Public
-+# License along with this library.  If not, see
-+# <http://www.gnu.org/licenses/>.
-+#
-+# This script just validates that the stringified version of
-+# a virAccessPerm enum matches the enum constant name. We do
-+# a lot of auto-generation of code, so when these don't match
-+# problems occur, preventing auth from succeeding at all.
-+
-+my $hdr = shift;
-+my $impl = shift;
-+
-+my %perms;
-+
-+my @perms;
-+
-+open HDR, $hdr or die "cannot read $hdr: $!";
-+
-+while (<HDR>) {
-+    if (/^\s+VIR_ACCESS_PERM_([_A-Z]+)(,?|\s|$)/) {
-+        my $perm = $1;
-+
-+        $perms{$perm} = 1 unless ($perm =~ /_LAST$/);
-+    }
-+}
-+
-+close HDR;
-+
-+
-+open IMPL, $impl or die "cannot read $impl: $!";
-+
-+my $group;
-+my $warned = 0;
-+
-+while (defined (my $line = <IMPL>)) {
-+    if ($line =~ /VIR_ACCESS_PERM_([_A-Z]+)_LAST/) {
-+        $group = $1;
-+    } elsif ($line =~ /"[_a-z]+"/) {
-+        my @bits = split /,/, $line;
-+        foreach my $bit (@bits) {
-+            if ($bit =~ /"([_a-z]+)"/) {
-+                my $perm = uc($group . "_" . $1);
-+                if (!exists $perms{$perm}) {
-+                    print STDERR "Unknown perm string $1 for group $group\n";
-+                    $warned = 1;
-+                }
-+                delete $perms{$perm};
-+            }
-+        }
-+    }
-+}
-+close IMPL;
-+
-+foreach my $perm (keys %perms) {
-+    print STDERR "Perm $perm had not string form\n";
-+    $warned = 1;
-+}
-+
-+exit $warned;
diff --git a/debian/patches/series b/debian/patches/series
index 12043d7..6148614 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -10,4 +10,3 @@ Don-t-fail-if-we-can-t-setup-avahi.patch
 Reduce-udevadm-settle-timeout-to-10-seconds.patch
 debian/Debianize-systemd-service-files.patch
 Allow-xen-toolstack-to-find-it-s-binaries.patch
-Add-check-aclperms.pl.patch
diff --git a/debian/rules b/debian/rules
index 296c0d7..dfb58cf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -105,7 +105,6 @@ EXAMPLES_DIR = $(CURDIR)/debian/libvirt-doc/usr/share/doc/libvirt-doc/examples/
 override_dh_auto_configure:
 	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_ARGS)
 	DEB_BUILDDIR=$(DEB_BUILDDIR) make -f debian/python.mk configure
-	chmod a+x src/check-aclperms.pl
 
 override_dh_auto_install:
 	dh_auto_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libvirt.git



More information about the Pkg-libvirt-commits mailing list