Date: Tuesday, April 25, 2023 @ 17:17:24
Author: anatolik
Revision: 1448692
archrelease: copy trunk to community-staging-x86_64
Added:
dtc/repos/community-staging-x86_64/PKGBUILD
(from rev 1448691, dtc/trunk/PKGBUILD)
Deleted:
dtc/repos/community-staging-x86_64/PKGBUILD
dtc/repos/community-staging-x86_64/python310.patch
-----------------+
PKGBUILD | 75 ++++++++++++++++++++++++++----------------------------
python310.patch | 28 --------------------
2 files changed, 37 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-25 17:10:24 UTC (rev 1448691)
+++ PKGBUILD 2023-04-25 17:17:24 UTC (rev 1448692)
@@ -1,38 +0,0 @@
-# Maintainer: Anatol Pomozov
-# Contributor: Frederic Bezies <fredbezies at gmail dot com>
-
-pkgname=dtc
-pkgver=1.6.1
-pkgrel=5
-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-staging-x86_64/PKGBUILD (from rev 1448691,
dtc/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-25 17:17:24 UTC (rev 1448692)
@@ -0,0 +1,37 @@
+# Maintainer: Anatol Pomozov
+# Contributor: Frederic Bezies <fredbezies at gmail dot com>
+
+pkgname=dtc
+pkgver=1.7.0
+pkgrel=1
+pkgdesc='Device Tree Compiler'
+url='https://www.devicetree.org/'
+arch=(x86_64)
+license=(GPL2)
+depends=(libyaml)
+makedepends=(swig)
+checkdepends=(valgrind)
+source=(https://www.kernel.org/pub/software/utils/dtc/dtc-$pkgver.tar.xz)
+sha256sums=('29edce3d302a15563d8663198bbc398c5a0554765c83830d0d4c0409d21a16c4')
+
+prepare() {
+ cd dtc-$pkgver
+ sed -i 's/-Werror//' Makefile
+}
+
+build() {
+ cd dtc-$pkgver
+ # python build fails as it requires a lot of extra dependencies.
+ # someone with more python experience needs to look at the proper way to
build the python extension.
+ NO_PYTHON=1 make
+}
+
+check() {
+ cd dtc-$pkgver
+ NO_PYTHON=1 make check
+}
+
+package() {
+ cd dtc-$pkgver
+ NO_PYTHON=1 DESTDIR="$pkgdir" make SETUP_PREFIX="$pkgdir/usr"
PREFIX="$pkgdir/usr" install
+}
Deleted: python310.patch
===================================================================
--- python310.patch 2023-04-25 17:10:24 UTC (rev 1448691)
+++ python310.patch 2023-04-25 17:17:24 UTC (rev 1448692)
@@ -1,28 +0,0 @@
-# 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')],