From c5b354ea2852d3869a9bf43e586e482b2b41ef78 Mon Sep 17 00:00:00 2001 From: cr6git Date: Fri, 17 Nov 2017 15:17:24 +0100 Subject: [PATCH] New package: ddcutil-0.8.5 Closes #9286. --- common/shlibs | 1 + srcpkgs/ddcutil/patches/musl.patch | 48 ++++++++++++++++++++++++++++++ srcpkgs/ddcutil/template | 18 +++++++++++ 3 files changed, 67 insertions(+) create mode 100644 srcpkgs/ddcutil/patches/musl.patch create mode 100644 srcpkgs/ddcutil/template diff --git a/common/shlibs b/common/shlibs index 34d4a899ce8..cca48f9eb14 100644 --- a/common/shlibs +++ b/common/shlibs @@ -2890,6 +2890,7 @@ libtracker-miner-2.0.so.0 libtracker-2.0.1_1 libtacacs.so.1 tacacs-4.0.4.28_1 libffms2.so.4 libffms2-2.23.1_1 libduktape.so.201 duktape-2.1.1_1 +libddcutil.so.0 ddcutil-0.8.5_1 liblsmash.so.2 liblsmash-2.9.1_1 libgiac.so.0 libgiac-1.4.9r17_1 libgnustep-base.so.1.25 gnustep-base-1.25.0_1 diff --git a/srcpkgs/ddcutil/patches/musl.patch b/srcpkgs/ddcutil/patches/musl.patch new file mode 100644 index 00000000000..1b6b93bf321 --- /dev/null +++ b/srcpkgs/ddcutil/patches/musl.patch @@ -0,0 +1,48 @@ +--- src/util/debug_util.c.orig 2017-11-16 07:13:16.000000000 +0100 ++++ src/util/debug_util.c 2017-11-18 21:39:20.788717791 +0100 +@@ -26,7 +26,10 @@ + */ + + /** \cond */ ++#include ++#ifdef __GLIBC__ + #include ++#endif + #include + #include + #include +@@ -89,16 +92,22 @@ + if (debug) + printf("(%s) Starting. stack_adjust = %d\n", __func__, stack_adjust); + +- int j, nptrs; ++ int j, nptrs = 0; ++#ifdef __GLIBC__ + const int MAX_ADDRS = 100; + void *buffer[MAX_ADDRS]; +- char **strings; ++#endif ++ char **strings = NULL; + ++#ifdef __GLIBC__ + nptrs = backtrace(buffer, MAX_ADDRS); ++#endif + if (debug) + printf("(%s) backtrace() returned %d addresses\n", __func__, nptrs); + ++#ifdef __GLIBC__ + strings = backtrace_symbols(buffer, nptrs); ++#endif + if (strings == NULL) { + perror("backtrace_symbols unavailable"); + } +--- src/util/edid.h.orig 2017-11-16 07:13:16.000000000 +0100 ++++ src/util/edid.h 2017-11-17 21:29:05.725854175 +0100 +@@ -36,6 +36,7 @@ + #include + #include + #include ++#include + /** \endcond */ + + #include "coredefs.h" diff --git a/srcpkgs/ddcutil/template b/srcpkgs/ddcutil/template new file mode 100644 index 00000000000..36f4f05f675 --- /dev/null +++ b/srcpkgs/ddcutil/template @@ -0,0 +1,18 @@ +# Template file for 'ddcutil' +pkgname=ddcutil +version=0.8.5 +revision=1 +build_style=gnu-configure +hostmakedepends="automake libtool pkg-config" +makedepends="libdrm-devel libgudev-devel libusb-devel libXrandr-devel" +depends="i2c-tools" +short_desc="Query and change monitor settings using DDC/CI and USB" +maintainer="cr6git " +homepage="http://www.ddcutil.com" +license="GPL-2" +distfiles="https://github.com/rockowitz/ddcutil/archive/v${version}.tar.gz" +checksum=cb67719967ce813161a0f8a55fae1499e7d9d4c418820ad0930ef028e0fa66d5 + +pre_configure() { + NOCONFIGURE=1 ./autogen.sh +}