[arch-commits] Commit in namcap/repos/extra-any (7 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Sun Dec 15 18:51:03 UTC 2019


    Date: Sunday, December 15, 2019 @ 18:51:02
  Author: svenstaro
Revision: 371533

archrelease: copy trunk to extra-any

Added:
  namcap/repos/extra-any/PKGBUILD
    (from rev 371532, namcap/trunk/PKGBUILD)
  namcap/repos/extra-any/missing-desktop-file-utils.patch
    (from rev 371532, namcap/trunk/missing-desktop-file-utils.patch)
  namcap/repos/extra-any/namcap-ignore-so-no-pie.patch
    (from rev 371532, namcap/trunk/namcap-ignore-so-no-pie.patch)
Deleted:
  namcap/repos/extra-any/PKGBUILD
  namcap/repos/extra-any/missing-desktop-file-utils.patch
  namcap/repos/extra-any/namcap-fix-full-relro.patch
  namcap/repos/extra-any/namcap-ignore-so-no-pie.patch

----------------------------------+
 PKGBUILD                         |   89 +++++++++++++++++--------------------
 missing-desktop-file-utils.patch |   22 ++++-----
 namcap-fix-full-relro.patch      |   38 ---------------
 namcap-ignore-so-no-pie.patch    |   52 ++++++++++-----------
 4 files changed, 80 insertions(+), 121 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-15 18:50:53 UTC (rev 371532)
+++ PKGBUILD	2019-12-15 18:51:02 UTC (rev 371533)
@@ -1,46 +0,0 @@
-# Maintainer : Rémy Oudompheng <remy at archlinux.org>
-# Contributor: Hugo Doria <hugo at archlinux.org>
-
-pkgname=namcap
-pkgver=3.2.8
-pkgrel=5
-pkgdesc="A Pacman package analyzer"
-arch=('any')
-url="https://projects.archlinux.org/namcap.git/"
-license=('GPL')
-depends=('python' 'pyalpm>=0.5' 'licenses'
-         'binutils' 'elfutils' 'python-pyelftools')
-makedepends=('python-setuptools')
-source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz
-        namcap-fix-full-relro.patch
-        namcap-ignore-so-no-pie.patch
-        missing-desktop-file-utils.patch)
-sha512sums=('504b8294a86fdcc15946098fa57a4b6ca3bea0daf9ec51e7eab62078225b2102f527e123a9aeee33b8c4151adb8a59c5a682e25fd0330bd576d3da737f2a7d81'
-            '2ca2bebef6c2307b73081b424c1a6cc34f0087726c48bac7808b35d88ddab6d8668b09ebf964a46f48fde4ce2c2ab8b5fdcc5120864d412d24d66d623bd47b6c'
-            'df8a8c389aa9d619650d6e472409e4480095e09d5ea60b232a865e1a654dd9440e2228f1f098302b529d6db89f9cd0d8d066881da2bc3ca9ec07b17368efd2cf'
-            '74efb1939053f41129cd811cf84abef8ff84ca4673cb62c3115b9d56830a57a48fed021b9807a74299c4c4cf3ec1880733f91dd5d06f4b9ac294fc78a9b5498e')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  patch -Np1 -i "${srcdir}/missing-desktop-file-utils.patch"
-  patch -Np1 -i "${srcdir}/namcap-fix-full-relro.patch"
-  patch -Np1 -i "${srcdir}/namcap-ignore-so-no-pie.patch"
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  python setup.py build
-}
-
-check() {
-  cd ${pkgname}-${pkgver}
-  env PARSE_PKGBUILD_PATH="${srcdir}/${pkgname}-${pkgver}" \
-      PATH="${srcdir}/${pkgname}-${pkgver}:$PATH" \
-      python setup.py test
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  python setup.py install --root="${pkgdir}"
-}
-

Copied: namcap/repos/extra-any/PKGBUILD (from rev 371532, namcap/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-15 18:51:02 UTC (rev 371533)
@@ -0,0 +1,43 @@
+# Maintainer : Rémy Oudompheng <remy at archlinux.org>
+# Contributor: Hugo Doria <hugo at archlinux.org>
+
+pkgname=namcap
+pkgver=3.2.10
+pkgrel=1
+pkgdesc="A Pacman package analyzer"
+arch=('any')
+url="https://projects.archlinux.org/namcap.git/"
+license=('GPL')
+depends=('python' 'pyalpm>=0.5' 'licenses'
+         'binutils' 'elfutils' 'python-pyelftools')
+makedepends=('python-setuptools')
+source=(https://sources.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.gz
+        namcap-ignore-so-no-pie.patch
+        missing-desktop-file-utils.patch)
+sha512sums=('bdcca39cff873cc1ac7138bc2f218e808019424c1ff414b98f183400c08879a94fe7318049b1912dd094c1fced14b095a467465b04cd78cb9d1725cdbe2be821'
+            'df8a8c389aa9d619650d6e472409e4480095e09d5ea60b232a865e1a654dd9440e2228f1f098302b529d6db89f9cd0d8d066881da2bc3ca9ec07b17368efd2cf'
+            '74efb1939053f41129cd811cf84abef8ff84ca4673cb62c3115b9d56830a57a48fed021b9807a74299c4c4cf3ec1880733f91dd5d06f4b9ac294fc78a9b5498e')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  patch -Np1 -i "${srcdir}/missing-desktop-file-utils.patch"
+  patch -Np1 -i "${srcdir}/namcap-ignore-so-no-pie.patch"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  env PARSE_PKGBUILD_PATH="${srcdir}/${pkgname}-${pkgver}" \
+      PATH="${srcdir}/${pkgname}-${pkgver}:$PATH" \
+      python setup.py test
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python setup.py install --root="${pkgdir}"
+}
+

Deleted: missing-desktop-file-utils.patch
===================================================================
--- missing-desktop-file-utils.patch	2019-12-15 18:50:53 UTC (rev 371532)
+++ missing-desktop-file-utils.patch	2019-12-15 18:51:02 UTC (rev 371533)
@@ -1,11 +0,0 @@
-diff -aur namcap-3.2.8/namcap-tags namcap-3.2.8.new/namcap-tags
---- namcap-3.2.8/namcap-tags	2018-07-07 03:52:57.000000000 +0200
-+++ namcap-3.2.8.new/namcap-tags	2018-08-04 17:43:17.776311307 +0200
-@@ -98,6 +98,7 @@
- dconf-needed-for-glib-schemas :: needed for glib schemas
- glib2-needed-for-gio-modules :: needed for GIO modules
- hicolor-icon-theme-needed-for-hicolor-dir :: needed for hicolor theme hierarchy
-+desktop-file-utils-needed :: needed for update-desktop-database
- kdebase-runtime-needed %s :: needed for programs %s
- java-runtime-needed %s :: found class files %s
- libraries-needed %s %s :: libraries %s needed in files %s

Copied: namcap/repos/extra-any/missing-desktop-file-utils.patch (from rev 371532, namcap/trunk/missing-desktop-file-utils.patch)
===================================================================
--- missing-desktop-file-utils.patch	                        (rev 0)
+++ missing-desktop-file-utils.patch	2019-12-15 18:51:02 UTC (rev 371533)
@@ -0,0 +1,11 @@
+diff -aur namcap-3.2.8/namcap-tags namcap-3.2.8.new/namcap-tags
+--- namcap-3.2.8/namcap-tags	2018-07-07 03:52:57.000000000 +0200
++++ namcap-3.2.8.new/namcap-tags	2018-08-04 17:43:17.776311307 +0200
+@@ -98,6 +98,7 @@
+ dconf-needed-for-glib-schemas :: needed for glib schemas
+ glib2-needed-for-gio-modules :: needed for GIO modules
+ hicolor-icon-theme-needed-for-hicolor-dir :: needed for hicolor theme hierarchy
++desktop-file-utils-needed :: needed for update-desktop-database
+ kdebase-runtime-needed %s :: needed for programs %s
+ java-runtime-needed %s :: found class files %s
+ libraries-needed %s %s :: libraries %s needed in files %s

Deleted: namcap-fix-full-relro.patch
===================================================================
--- namcap-fix-full-relro.patch	2019-12-15 18:50:53 UTC (rev 371532)
+++ namcap-fix-full-relro.patch	2019-12-15 18:51:02 UTC (rev 371533)
@@ -1,38 +0,0 @@
-From 4bf61fa3c5ecb928b2aaa526f8f56f3b5284d25f Mon Sep 17 00:00:00 2001
-From: Chih-Hsuan Yen <yan12125 at gmail.com>
-Date: Tue, 11 Sep 2018 22:28:37 +0800
-Subject: elffiles: also check DF_BIND_NOW when checking FULL RELRO
-
-Looks like DF_BIND_NOW has the same function as DT_BIND_NOW.
-
-Signed-off-by: Kyle Keen <keenerd at gmail.com>
----
- Namcap/rules/elffiles.py | 9 +++++++--
- 1 file changed, 7 insertions(+), 2 deletions(-)
-
-diff --git a/Namcap/rules/elffiles.py b/Namcap/rules/elffiles.py
-index d707a58..6cef680 100644
---- a/Namcap/rules/elffiles.py
-+++ b/Namcap/rules/elffiles.py
-@@ -140,11 +140,16 @@ class ELFGnuRelroRule(TarballRule):
- 	description = "Check for FULL RELRO in ELF files."
- 
- 	def has_bind_now(self, elffile):
-+		DF_BIND_NOW = 0x08
-+
- 		for section in elffile.iter_sections():
- 			if not isinstance(section, DynamicSection):
- 				continue
--			if any(tag.entry.d_tag == 'DT_BIND_NOW' for tag in section.iter_tags()):
--				return True
-+			for tag in section.iter_tags():
-+				if tag.entry.d_tag == 'DT_BIND_NOW':
-+					return True
-+				if tag.entry.d_tag == 'DT_FLAGS' and tag.entry.d_val & DF_BIND_NOW:
-+					return True
- 		return False
- 
- 	def analyze(self, pkginfo, tar):
--- 
-cgit v1.2.1-1-g437b
-

Deleted: namcap-ignore-so-no-pie.patch
===================================================================
--- namcap-ignore-so-no-pie.patch	2019-12-15 18:50:53 UTC (rev 371532)
+++ namcap-ignore-so-no-pie.patch	2019-12-15 18:51:02 UTC (rev 371533)
@@ -1,26 +0,0 @@
-From 4ece4901d13b9fa590a538cc2133374d3c17df6f Mon Sep 17 00:00:00 2001
-From: Jelle van der Waa <jelle at vdwaa.nl>
-Date: Tue, 11 Sep 2018 18:21:39 +0200
-Subject: Ignore .so for no PIE check
-
-Signed-off-by: Kyle Keen <keenerd at gmail.com>
----
- Namcap/rules/elffiles.py | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/Namcap/rules/elffiles.py b/Namcap/rules/elffiles.py
-index 6cef680..4ad1e66 100644
---- a/Namcap/rules/elffiles.py
-+++ b/Namcap/rules/elffiles.py
-@@ -228,6 +228,8 @@ class NoPIERule(TarballRule):
- 		for entry in tar:
- 			if not entry.isfile():
- 				continue
-+			if '.so' in entry.name:
-+				continue
- 			fp = tar.extractfile(entry)
- 			if not is_elf(fp):
- 				continue
--- 
-cgit v1.2.1-1-g437b
-

Copied: namcap/repos/extra-any/namcap-ignore-so-no-pie.patch (from rev 371532, namcap/trunk/namcap-ignore-so-no-pie.patch)
===================================================================
--- namcap-ignore-so-no-pie.patch	                        (rev 0)
+++ namcap-ignore-so-no-pie.patch	2019-12-15 18:51:02 UTC (rev 371533)
@@ -0,0 +1,26 @@
+From 4ece4901d13b9fa590a538cc2133374d3c17df6f Mon Sep 17 00:00:00 2001
+From: Jelle van der Waa <jelle at vdwaa.nl>
+Date: Tue, 11 Sep 2018 18:21:39 +0200
+Subject: Ignore .so for no PIE check
+
+Signed-off-by: Kyle Keen <keenerd at gmail.com>
+---
+ Namcap/rules/elffiles.py | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/Namcap/rules/elffiles.py b/Namcap/rules/elffiles.py
+index 6cef680..4ad1e66 100644
+--- a/Namcap/rules/elffiles.py
++++ b/Namcap/rules/elffiles.py
+@@ -228,6 +228,8 @@ class NoPIERule(TarballRule):
+ 		for entry in tar:
+ 			if not entry.isfile():
+ 				continue
++			if '.so' in entry.name:
++				continue
+ 			fp = tar.extractfile(entry)
+ 			if not is_elf(fp):
+ 				continue
+-- 
+cgit v1.2.1-1-g437b
+


More information about the arch-commits mailing list