SHA256
1
0
forked from pool/dtc

Compare commits

...

6 Commits

Author SHA256 Message Date
Ana Guerrero
8c3988b396 Accepting request 1244773 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1244773
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dtc?expand=0&rev=43
2025-02-11 20:20:59 +00:00
6478d815ce - Update to 1.7.2:
* pylibfdt: Don't emit warnings from swig generate C code
  * fdtoverlay: provide better error message for missing /__symbols__
  * pylibfdt/libfdt.i: Use SWIG_AppendOutput
  * Escape spaces in depfile with backslashes.
  * libfdt.h: whitespace consistency fixups
  * libfdt.h: typo and consistency fixes
- Revert previous commit and use upstream fix for glibc 2.41:
  * ce1d858.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=67
2025-02-10 13:51:21 +00:00
Ana Guerrero
fadfa430b8 Accepting request 1243432 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1243432
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dtc?expand=0&rev=42
2025-02-06 21:02:01 +00:00
3f51328c39 - Mark assembler output as noexecstack
OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=65
2025-02-05 15:51:14 +00:00
Ana Guerrero
203a7dfda3 Accepting request 1217247 from Base:System
OBS-URL: https://build.opensuse.org/request/show/1217247
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dtc?expand=0&rev=41
2024-10-23 19:07:59 +00:00
79c22d6dbf - Update to 1.7.1:
* dtc
    * Fix check for 10-bit I2C addresses
    * Improve documentation of -@ option
    * Update to libyaml >= 0.2.3
    * Improvements & fixes for device graph checks
    * Add -L / --local-fixups option
    * Add check for length of interrupt-map properties
  * libfdt
    * Add fdt_path_getprop_namelen()
    * Add fdt_get_symbol() and fdt_get_symbol_namelen()
    * Correct documentation of fdt_path_offset()
    * Correct documentation of fdt_appendprop_addrrange()
    * Validate aliases is fdt_get_alias_namelen()
    * Don't overwrite phandles when applying overlays
    * Require Python 3
  * pylibfdt
    * Support boolean properties
    * Fixes for current Python versions
  * General
    * Assorted bugfixes
    * Assorted build improvements
    * Assorted typo fixes in docs
    * Some additional testcases
    * Move to GitHub Actions based CI

OBS-URL: https://build.opensuse.org/package/show/Base:System/dtc?expand=0&rev=63
2024-10-23 08:38:16 +00:00
7 changed files with 107 additions and 23 deletions

36
ce1d858.patch Normal file
View File

@ -0,0 +1,36 @@
From ce1d8588880aecd7af264e422a16a8b33617cef7 Mon Sep 17 00:00:00 2001
From: David Gibson <david@gibson.dropbear.id.au>
Date: Wed, 5 Feb 2025 13:39:43 +1100
Subject: [PATCH] tests: When building .so from -O asm output mark as
non-executable stack
For certain tests, we take the output from dtc -O asm and build it into
a .so shared library which we then dlopen() for further tests. Because we
don't mark it otherwise, it's treated as requiring an executable stack,
which dlopen() refuses to open as of glibc-2.41.
Of course, the library is pure data, no code, so it certainly doesn't need
an executable stack. Add the -znoexecstack linker option to avoid the
error.
Fixes: https://github.com/dgibson/dtc/issues/163
Reported-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: David Gibson <david@gibson.dropbear.id.a>
---
tests/run_tests.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/run_tests.sh b/tests/run_tests.sh
index 937b1288..f0b51c04 100755
--- a/tests/run_tests.sh
+++ b/tests/run_tests.sh
@@ -201,7 +201,7 @@ run_dtc_test () {
}
asm_to_so () {
- $CC -shared -o $1.test.so "$SRCDIR/data.S" $1.test.s
+ $CC -shared -Wl,-znoexecstack -o $1.test.so "$SRCDIR/data.S" $1.test.s
}
asm_to_so_test () {

BIN
dtc-1.7.0.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,16 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmP7EOQACgkQzQJF27ox
2GcU3RAAixXFsHnx8a2CENeoa/prw3qI7pUpw3YVqEHRAZHsHy3GCQr3cxL8hZOq
W21ZfqI6vueVloRI/+qP4yv7aozzv/40jLGAvHY+Mh83BOjjBkxyHeQxRPo/LfV8
CMfh157Cvt/2lWF39csqVoid5P+qF8RahaZiRObiMpuillrFCxS20N2WZW4PmbO+
fSwW1FWnlWGgPK17K15m2YKJaxIy0UijlW/gAVVHWU4tEQjGvvkOlEyB2brJbUO8
ObjfoczMCNdDbsb0aFw019J878BfgKLBqEe2q96k+E77O3PDDJ8zag15JWFC7rYK
tKhy0KFHoV3DNBupViGuTzn5hAs4OUZmTfmiaW7+dum+EUY5KGJDdDP4gjbOTl8N
a27I2Q9ycP9+YXlcFzEHnrSR2k04Wcmx3LSlSo2/qZZo8Z2wy/sCLwodFg6EWRNw
nBEW5SfBQZGVjdO9EX3/YmEhIJqR74+QeHSj4JnlesIIpdcoXK0305S0VgolDLTV
63TDrXTlBAkW0nS4JGv+hKJYMdL9TcxL61CchAYXxxO2xRPw9iiXawa4AdIESllq
fzs0ytyF3nbyNBrrlt9H2YveDvGaJBoAIp8phZqYkdeZJKLS+JtgWz3SA9rLGTQO
M7ZPCJe1s4lDIXq9MqOdBFUx1t9WN6Xld39bjNKCZNVv2pruBy8=
=Kv5g
-----END PGP SIGNATURE-----

3
dtc-1.7.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f200e5ebd7afd20d4b3804a3085af0870fcf3c194f8d7f0f6985cf8bbb4ac0f4
size 215315

16
dtc-1.7.2.tar.sign Normal file
View File

@ -0,0 +1,16 @@
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEO+dNsU4E3yXUXRK2zQJF27ox2GcFAmcq3jgACgkQzQJF27ox
2GcmdQ/7Btlr2522CggQiswiZN6ua+L5a8i1m6kI+TTE9dh6pkfMpZH86pn9ykVt
5P0RfEfFOlL90lSBuQ9smTXWGvYoVRQM7o6ZetTCHtDNexdamUFUSmQF68ENfBSc
7UOKzjw1S7A1Fin3CD5SiJxw1D4/3/XcOznGyPZ8Yy8I8JtWexzcAKg913jGxIV5
DAbIzf4YAADJtI/d98p0OjPEpNyzaFGbZTMi63KnnZlhZf4X8HAhhHOyK0hY/VkL
MklHYhFWEjTHWF9UGH78o057mpdEImP5RSjHOd3FBZO2Uc4SW9K9QPUB2DsXeB91
fNMmEnk6mfQRfpqoCruTTdVR8XffQz7KEUfwiszV20YJPPC7DBM9CzEH7lE0gS+b
8t94AcAwfKnSZjpPc49P9gh3eujrGdGWJWO8qakwrtScsNTzZPld5R6az7icJNVh
f3ZCPaBRR5vFXXHYEt2Ny30KkR+hYm1MI1yLhwSd4jHceVwDmd/POkbXKUG65ePY
0awl3jgWq8HUDscLhKjwD/Nsgc39GoaaS4zlSq7MZOx3L7vK3eMYKQvs19ykUwO1
C+3ys6hBBZdK6fUHzIJmQhShNl5ID7nmfNl59ZfBWeb+SCil9jsLBtDD4gUzNZuZ
SVNrJJawF5/t4tLNzXetn6l78vwpQfX/5HofpNUG2tH2AUcF57o=
=mhgH
-----END PGP SIGNATURE-----

View File

@ -1,3 +1,50 @@
-------------------------------------------------------------------
Fri Feb 7 15:24:23 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 1.7.2:
* pylibfdt: Don't emit warnings from swig generate C code
* fdtoverlay: provide better error message for missing /__symbols__
* pylibfdt/libfdt.i: Use SWIG_AppendOutput
* Escape spaces in depfile with backslashes.
* libfdt.h: whitespace consistency fixups
* libfdt.h: typo and consistency fixes
- Revert previous commit and use upstream fix for glibc 2.41:
* ce1d858.patch
-------------------------------------------------------------------
Tue Feb 4 12:27:13 UTC 2025 - Andreas Schwab <schwab@suse.de>
- Mark assembler output as noexecstack
-------------------------------------------------------------------
Tue Oct 22 07:24:23 UTC 2024 - Guillaume GARDET <guillaume.gardet@opensuse.org>
- Update to 1.7.1:
* dtc
* Fix check for 10-bit I2C addresses
* Improve documentation of -@ option
* Update to libyaml >= 0.2.3
* Improvements & fixes for device graph checks
* Add -L / --local-fixups option
* Add check for length of interrupt-map properties
* libfdt
* Add fdt_path_getprop_namelen()
* Add fdt_get_symbol() and fdt_get_symbol_namelen()
* Correct documentation of fdt_path_offset()
* Correct documentation of fdt_appendprop_addrrange()
* Validate aliases is fdt_get_alias_namelen()
* Don't overwrite phandles when applying overlays
* Require Python 3
* pylibfdt
* Support boolean properties
* Fixes for current Python versions
* General
* Assorted bugfixes
* Assorted build improvements
* Assorted typo fixes in docs
* Some additional testcases
* Move to GitHub Actions based CI
-------------------------------------------------------------------
Tue Apr 25 08:42:48 UTC 2023 - Guillaume GARDET <guillaume.gardet@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package dtc
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,7 +18,7 @@
%define sover 1
Name: dtc
Version: 1.7.0
Version: 1.7.2
Release: 0
Summary: Device-tree compiler
License: GPL-2.0-or-later
@ -28,6 +28,8 @@ Source1: https://mirrors.edge.kernel.org/pub/software/utils/dtc/dtc-%{ver
Source20: baselibs.conf
# From http://gibson.dropbear.id.au/
Source21: dtc.keyring
# PATCH-FIX-UPSTREAM - https://github.com/dgibson/dtc/commit/ce1d858
Patch1: ce1d858.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: libyaml-devel
@ -59,7 +61,7 @@ Obsoletes: libfdt1-devel < %{version}-%{release}
This package provides development files for libfdt
%prep
%setup -q
%autosetup -p1
%build
%make_build EXTRA_CFLAGS="%{optflags} -pie" LDFLAGS="%{optflags}"
@ -89,7 +91,6 @@ export EXTRA_CFLAGS="%{optflags}"
%postun -n libfdt%{sover} -p /sbin/ldconfig
%files -n libfdt%{sover}
%{_libdir}/libfdt-%{version}.so
%{_libdir}/libfdt.so.*
%files -n libfdt-devel