parent
855e865379
commit
c5b354ea28
|
@ -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
|
||||
|
|
|
@ -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 <features.h>
|
||||
+#ifdef __GLIBC__
|
||||
#include <execinfo.h>
|
||||
+#endif
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -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 <stdint.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <sys/types.h>
|
||||
/** \endcond */
|
||||
|
||||
#include "coredefs.h"
|
|
@ -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 <quark6@protonmail.com>"
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue