public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ddccontrol] f45: Fixed build
@ 2026-11-02 14:59
0 siblings, 0 replies; only message in thread
From: @ 2026-11-02 14:59 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ddccontrol
Branch : f45
Commit : cf65bcdeb6e6e8bea832e307758373c14772d0bf
Author : Jaroslav Škarvada <jskarvad@redhat.com>
Date : 2026-10-05T21:39:25+02:00
Stats : +105/-5 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/ddccontrol/c/cf65bcdeb6e6e8bea832e307758373c14772d0bf?branch=f45
Log:
Fixed build
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
---
diff --git a/ddccontrol-3.4.0-relax-deps.patch b/ddccontrol-3.4.0-relax-deps.patch
new file mode 100644
index 0000000..8bb56f3
--- /dev/null
+++ b/ddccontrol-3.4.0-relax-deps.patch
@@ -0,0 +1,84 @@
+diff --git a/crates/ddccontrol-db-format/Cargo.toml b/crates/ddccontrol-db-format/Cargo.toml
+index 08dec84..4a3822b 100644
+--- a/crates/ddccontrol-db-format/Cargo.toml
++++ b/crates/ddccontrol-db-format/Cargo.toml
+@@ -9,5 +9,5 @@ description = "Portable CBOR database contract shared by ddccontrol readers and
+
+ [dependencies]
+ ciborium = "0.2.2"
+-sha2 = "0.10"
++sha2 = ">=0.10"
+ encoding_rs = "0.8"
+diff --git a/crates/ddccontrol-db/Cargo.toml b/crates/ddccontrol-db/Cargo.toml
+index 1ca900e..43c5ffb 100644
+--- a/crates/ddccontrol-db/Cargo.toml
++++ b/crates/ddccontrol-db/Cargo.toml
+@@ -22,7 +22,7 @@ ddccontrol-monitorlist = { path = "../ddccontrol-monitorlist" }
+ ddccontrol-profile = { path = "../ddccontrol-profile" }
+ ddccontrol-protocol = { path = "../ddccontrol-protocol" }
+ libc = "0.2"
+-roxmltree = "0.20"
++roxmltree = ">=0.20"
+
+ [dev-dependencies]
+ ciborium = "0.2.2"
+diff --git a/crates/ddccontrol-db/tests/frozen-v1/Cargo.toml b/crates/ddccontrol-db/tests/frozen-v1/Cargo.toml
+index 0eaa510..400fbfa 100644
+--- a/crates/ddccontrol-db/tests/frozen-v1/Cargo.toml
++++ b/crates/ddccontrol-db/tests/frozen-v1/Cargo.toml
+@@ -15,11 +15,11 @@ gettext = []
+
+ [dependencies]
+ ciborium = "0.2.2"
+-sha2 = "0.10"
++sha2 = ">=0.10"
+ ddccontrol-caps = { path = "caps" }
+ ddccontrol-edid = { path = "../../../ddccontrol-edid" }
+ ddccontrol-profile = { path = "../../../ddccontrol-profile" }
+ ddccontrol-protocol = { path = "../../../ddccontrol-protocol" }
+ encoding_rs = "0.8"
+ libc = "0.2"
+-roxmltree = "0.20"
++roxmltree = ">=0.20"
+diff --git a/crates/ddccontrol-dbgen/Cargo.toml b/crates/ddccontrol-dbgen/Cargo.toml
+index 7cacb23..1423ff7 100644
+--- a/crates/ddccontrol-dbgen/Cargo.toml
++++ b/crates/ddccontrol-dbgen/Cargo.toml
+@@ -10,5 +10,5 @@ description = "Deterministic offline XML to CBOR producer for ddccontrol-db"
+ [dependencies]
+ ddccontrol-db-format = { path = "../ddccontrol-db-format" }
+ ddccontrol-xml = { path = "../ddccontrol-xml" }
+-roxmltree = "0.20"
+-sha2 = "0.10"
++roxmltree = ">=0.20"
++sha2 = ">=0.10"
+diff --git a/crates/ddccontrol-monitorlist/Cargo.toml b/crates/ddccontrol-monitorlist/Cargo.toml
+index 3169525..5d07038 100644
+--- a/crates/ddccontrol-monitorlist/Cargo.toml
++++ b/crates/ddccontrol-monitorlist/Cargo.toml
+@@ -10,4 +10,4 @@ description = "Parser and serializer for ddccontrol cached monitor lists"
+ [dependencies]
+ ddccontrol-xml = { path = "../ddccontrol-xml" }
+ encoding_rs = "0.8"
+-roxmltree = "0.20"
++roxmltree = ">=0.20"
+diff --git a/crates/ddccontrol-profile/Cargo.toml b/crates/ddccontrol-profile/Cargo.toml
+index 7821a28..99601d0 100644
+--- a/crates/ddccontrol-profile/Cargo.toml
++++ b/crates/ddccontrol-profile/Cargo.toml
+@@ -13,4 +13,4 @@ crate-type = ["rlib"]
+ [dependencies]
+ ddccontrol-xml = { path = "../ddccontrol-xml" }
+ encoding_rs = "0.8"
+-roxmltree = "0.20"
++roxmltree = ">=0.20"
+diff --git a/crates/ddccontrol-scanmonitor/Cargo.toml b/crates/ddccontrol-scanmonitor/Cargo.toml
+index 3850b20..7551dea 100644
+--- a/crates/ddccontrol-scanmonitor/Cargo.toml
++++ b/crates/ddccontrol-scanmonitor/Cargo.toml
+@@ -16,4 +16,4 @@ ddccontrol-protocol = { path = "../ddccontrol-protocol" }
+ libc = "0.2"
+
+ [dev-dependencies]
+-roxmltree = "0.20"
++roxmltree = ">=0.20"
diff --git a/ddccontrol.spec b/ddccontrol.spec
index 325f930..c3887d2 100644
--- a/ddccontrol.spec
+++ b/ddccontrol.spec
@@ -5,11 +5,13 @@ Release: 1%{?dist}
# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
BuildRequires: cargo
+BuildRequires: cargo-rpm-macros
BuildRequires: rust-ciborium-devel
BuildRequires: rust-sha2-devel
BuildRequires: rust-roxmltree-devel
BuildRequires: rust-encoding_rs-devel
BuildRequires: rust-libc-devel
+BuildRequires: rust-const-oid-devel
BuildRequires: gcc
BuildRequires: gtk3-devel
BuildRequires: pkgconfig
@@ -26,6 +28,7 @@ BuildRequires: docbook-style-xsl
BuildRequires: gettext-devel
BuildRequires: intltool
BuildRequires: make
+BuildRequires: libtool
BuildRequires: systemd
BuildRequires: systemd-rpm-macros
Requires: ddccontrol-db
@@ -38,6 +41,8 @@ Source0: https://github.com/ddccontrol/%{name}/archive/%{version}/%{nam
#Source0: %%{url}/releases/download/%%{version}/%%{name}-%%{version}.tar.gz
# no monitors on s390(x)
ExcludeArch: s390 s390x
+# https://github.com/ddccontrol/ddccontrol/issues/344
+Patch: ddccontrol-3.4.0-relax-deps.patch
%description
DDCcontrol is a program to control monitor parameters, like brightness and
@@ -69,19 +74,21 @@ Development files for ddccontrol.
%prep
%autosetup -p1
+
mkdir -p .cargo
cat > .cargo/config.toml <<'EOF'
[source.crates-io]
-replace-with = "vendored-sources"
+replace-with = "local-registry"
-[source.vendored-sources]
-directory = "vendor"
+[source.local-registry]
+directory = "/usr/share/cargo/registry"
[net]
offline = true
EOF
%build
+autoreconf -fi
%configure --enable-doc --disable-rpath
# kill rpaths
@@ -91,10 +98,16 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
# use as-needed to remove unused-direct-shlib-dependency
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
-make %{?_smp_mflags}
+# rebuild the lock file to update version references
+rm -f Cargo.lock
+cargo update --offline
+
+%make_build
+
+cargo build --release -p ddccontrol-dbgen
%install
-make install DESTDIR=%{buildroot} libdir=%{_libdir}
+%make_install
desktop-file-validate %{buildroot}%{_datadir}/applications/gddccontrol.desktop
@@ -114,6 +127,8 @@ rm -f %{buildroot}%{_libdir}/{*.a,*.la}
# remove Bluecurve icon (duplicate of the hicolor one)
rm -rf %{buildroot}%{_datadir}/icons/Bluecurve
+install -p -m 0755 target/release/ddccontrol-dbgen %{buildroot}%{_bindir}/ddccontrol-dbgen
+
%find_lang %{name}
%post
@@ -142,6 +157,7 @@ rm -rf %{buildroot}%{_datadir}/icons/Bluecurve
%{_datadir}/dbus-1/system-services/ddccontrol.DDCControl.service
%{_datadir}/%{name}/90-nvidia-i2c.conf
%{_mandir}/man1/ddccontrol.1*
+%{_mandir}/man1/ddccontrol-scanmonitor.1*
%{_unitdir}/%{name}.service
%files gtk
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-02 14:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02 14:59 [rpms/ddccontrol] f45: Fixed build
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox