[arch-commits] Commit in dtc/repos/community-staging-x86_64 (3 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Thu Dec 2 00:31:04 UTC 2021


    Date: Thursday, December 2, 2021 @ 00:31:03
  Author: foutrelis
Revision: 1061532

archrelease: copy trunk to community-staging-x86_64

Added:
  dtc/repos/community-staging-x86_64/PKGBUILD
    (from rev 1061531, dtc/trunk/PKGBUILD)
  dtc/repos/community-staging-x86_64/python310.patch
    (from rev 1061531, dtc/trunk/python310.patch)
Deleted:
  dtc/repos/community-staging-x86_64/PKGBUILD

-----------------+
 PKGBUILD        |   71 ++++++++++++++++++++++++++++--------------------------
 python310.patch |   28 +++++++++++++++++++++
 2 files changed, 65 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-12-02 00:30:54 UTC (rev 1061531)
+++ PKGBUILD	2021-12-02 00:31:03 UTC (rev 1061532)
@@ -1,34 +0,0 @@
-# Maintainer: Anatol Pomozov
-# Contributor: Frederic Bezies <fredbezies at gmail dot com>
-
-pkgname=dtc
-pkgver=1.6.1
-pkgrel=2
-pkgdesc='Device Tree Compiler'
-url='https://www.devicetree.org/'
-arch=(x86_64)
-license=(GPL2)
-makedepends=(swig python)
-checkdepends=(valgrind)
-source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
-sha256sums=('65cec529893659a49a89740bb362f507a3b94fc8cd791e76a8d6a2b6f3203473')
-
-prepare() {
-  cd dtc-$pkgver
-  sed -i 's/-Werror//' Makefile
-}
-
-build() {
-  cd dtc-$pkgver
-  make
-}
-
-check() {
-  cd dtc-$pkgver
-  make check
-}
-
-package() {
-  cd dtc-$pkgver
-  DESTDIR="$pkgdir" make SETUP_PREFIX="$pkgdir/usr" PREFIX="$pkgdir/usr" install
-}

Copied: dtc/repos/community-staging-x86_64/PKGBUILD (from rev 1061531, dtc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-12-02 00:31:03 UTC (rev 1061532)
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov
+# Contributor: Frederic Bezies <fredbezies at gmail dot com>
+
+pkgname=dtc
+pkgver=1.6.1
+pkgrel=3
+pkgdesc='Device Tree Compiler'
+url='https://www.devicetree.org/'
+arch=(x86_64)
+license=(GPL2)
+makedepends=(swig python)
+checkdepends=(valgrind)
+source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz
+        python310.patch)
+sha256sums=('65cec529893659a49a89740bb362f507a3b94fc8cd791e76a8d6a2b6f3203473'
+            '767b6931887018a1dd7d41bfebebd16ab78a35de06a5689f530e376ab8c6b037')
+
+prepare() {
+  cd dtc-$pkgver
+  patch -Np1 -i ../python310.patch
+  sed -i 's/-Werror//' Makefile
+}
+
+build() {
+  cd dtc-$pkgver
+  make
+}
+
+check() {
+  cd dtc-$pkgver
+  make check
+}
+
+package() {
+  cd dtc-$pkgver
+  DESTDIR="$pkgdir" make SETUP_PREFIX="$pkgdir/usr" PREFIX="$pkgdir/usr" install
+}

Copied: dtc/repos/community-staging-x86_64/python310.patch (from rev 1061531, dtc/trunk/python310.patch)
===================================================================
--- python310.patch	                        (rev 0)
+++ python310.patch	2021-12-02 00:31:03 UTC (rev 1061532)
@@ -0,0 +1,28 @@
+# Backported from https://github.com/dgibson/dtc/commit/383e148b70a4
+
+diff -upr dtc-1.6.1.orig/pylibfdt/libfdt.i dtc-1.6.1/pylibfdt/libfdt.i
+--- dtc-1.6.1.orig/pylibfdt/libfdt.i	2021-06-08 10:00:49.000000000 +0300
++++ dtc-1.6.1/pylibfdt/libfdt.i	2021-12-02 02:27:27.747063911 +0200
+@@ -1044,9 +1044,9 @@ typedef uint32_t fdt32_t;
+ 		$result = Py_None;
+ 	else
+         %#if PY_VERSION_HEX >= 0x03000000
+-            $result = Py_BuildValue("y#", $1, *arg4);
++            $result = Py_BuildValue("y#", $1, (Py_ssize_t)*arg4);
+         %#else
+-            $result = Py_BuildValue("s#", $1, *arg4);
++            $result = Py_BuildValue("s#", $1, (Py_ssize_t)*arg4);
+         %#endif
+ }
+ 
+diff -upr dtc-1.6.1.orig/pylibfdt/setup.py dtc-1.6.1/pylibfdt/setup.py
+--- dtc-1.6.1.orig/pylibfdt/setup.py	2021-06-08 10:00:49.000000000 +0300
++++ dtc-1.6.1/pylibfdt/setup.py	2021-12-02 02:28:05.914736698 +0200
+@@ -42,6 +42,7 @@ def get_version():
+ libfdt_module = Extension(
+     '_libfdt',
+     sources=[os.path.join(srcdir, 'libfdt.i')],
++    define_macros=[('PY_SSIZE_T_CLEAN', None)],
+     include_dirs=[os.path.join(srcdir, '../libfdt')],
+     libraries=['fdt'],
+     library_dirs=[os.path.join(top_builddir, 'libfdt')],



More information about the arch-commits mailing list