sane: unbreak musl build (take 1, by yours truly).
This commit is contained in:
parent
2339b36a5e
commit
4aa7270b58
2 changed files with 16 additions and 1 deletions
10
srcpkgs/sane/patches/musl.patch
Normal file
10
srcpkgs/sane/patches/musl.patch
Normal file
|
@ -0,0 +1,10 @@
|
|||
--- backend/kvs40xx.h.orig 2015-05-08 20:15:52.134639959 +0200
|
||||
+++ backend/kvs40xx.h 2015-05-08 20:16:00.189632027 +0200
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef __KVS40XX_H
|
||||
#define __KVS40XX_H
|
||||
|
||||
+#include <pthread.h>
|
||||
/*
|
||||
Copyright (C) 2009, Panasonic Russia Ltd.
|
||||
*/
|
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'sane'.
|
||||
pkgname=sane
|
||||
version=1.0.24
|
||||
revision=9
|
||||
revision=10
|
||||
wrksrc="sane-backends-${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-locking --enable-avahi --disable-latex --enable-ipv6
|
||||
|
@ -100,6 +100,11 @@ if [ "$build_option_systemd" ]; then
|
|||
systemd_services="saned.socket on"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
for f in $(find $wrksrc -type f -name *.[ch]); do
|
||||
sed -e 's,u_char ,unsigned char ,g' -e 's,u_long,unsigned long ,g' -i $f
|
||||
done
|
||||
}
|
||||
post_install() {
|
||||
# fix hp officejets
|
||||
echo "#hpaio" >> ${DESTDIR}/etc/sane.d/dll.conf
|
||||
|
|
Loading…
Add table
Reference in a new issue