[arch-commits] Commit in dtc/repos (3 files)
Anatol Pomozov
anatolik at gemini.archlinux.org
Wed Feb 16 16:53:27 UTC 2022
Date: Wednesday, February 16, 2022 @ 16:53:27
Author: anatolik
Revision: 1133487
archrelease: copy trunk to community-testing-x86_64
Added:
dtc/repos/community-testing-x86_64/
dtc/repos/community-testing-x86_64/PKGBUILD
(from rev 1133486, dtc/trunk/PKGBUILD)
dtc/repos/community-testing-x86_64/python310.patch
(from rev 1133486, dtc/trunk/python310.patch)
-----------------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
python310.patch | 28 ++++++++++++++++++++++++++++
2 files changed, 66 insertions(+)
Copied: dtc/repos/community-testing-x86_64/PKGBUILD (from rev 1133486, dtc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2022-02-16 16:53:27 UTC (rev 1133487)
@@ -0,0 +1,38 @@
+# Maintainer: Anatol Pomozov
+# Contributor: Frederic Bezies <fredbezies at gmail dot com>
+
+pkgname=dtc
+pkgver=1.6.1
+pkgrel=4
+pkgdesc='Device Tree Compiler'
+url='https://www.devicetree.org/'
+arch=(x86_64)
+license=(GPL2)
+depends=(libyaml)
+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-testing-x86_64/python310.patch (from rev 1133486, dtc/trunk/python310.patch)
===================================================================
--- community-testing-x86_64/python310.patch (rev 0)
+++ community-testing-x86_64/python310.patch 2022-02-16 16:53:27 UTC (rev 1133487)
@@ -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