diff options
Diffstat (limited to 'source/l/v4l-utils')
-rwxr-xr-x | source/l/v4l-utils/v4l-utils.SlackBuild | 4 | ||||
-rw-r--r-- | source/l/v4l-utils/v4l-utils.glibc228.diff | 32 |
2 files changed, 35 insertions, 1 deletions
diff --git a/source/l/v4l-utils/v4l-utils.SlackBuild b/source/l/v4l-utils/v4l-utils.SlackBuild index 936732617..5a21c7203 100755 --- a/source/l/v4l-utils/v4l-utils.SlackBuild +++ b/source/l/v4l-utils/v4l-utils.SlackBuild @@ -27,7 +27,7 @@ PKGNAM=v4l-utils VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} BUILD=${BUILD:-2} -NUMJOBS=${NUMJOBS:--j6} +NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} # Automatically determine the architecture we're building on: if [ -z "$ARCH" ]; then @@ -71,6 +71,8 @@ rm -rf $PKGNAM-$VERSION tar xvf $CWD/$PKGNAM-$VERSION.tar.?z || exit 1 cd $PKGNAM-$VERSION || exit 1 +zcat $CWD/v4l-utils.glibc228.diff.gz | patch -p1 --verbose || exit 1 + # Make sure ownerships and permissions are sane: chown -R root:root . find . \ diff --git a/source/l/v4l-utils/v4l-utils.glibc228.diff b/source/l/v4l-utils/v4l-utils.glibc228.diff new file mode 100644 index 000000000..d072af747 --- /dev/null +++ b/source/l/v4l-utils/v4l-utils.glibc228.diff @@ -0,0 +1,32 @@ +--- ./lib/libv4lconvert/control/libv4lcontrol.c.orig 2017-12-27 08:33:07.000000000 -0600 ++++ ./lib/libv4lconvert/control/libv4lcontrol.c 2018-09-18 19:07:39.598074096 -0500 +@@ -20,9 +20,7 @@ + */ + + #include <sys/types.h> +-#if defined(MAJOR_IN_SYSMACROS) + #include <sys/sysmacros.h> +-#endif + #include <sys/mman.h> + #include <fcntl.h> + #include <sys/stat.h> +--- ./lib/libv4l2/libv4l2.c.orig 2017-12-27 07:50:55.000000000 -0600 ++++ ./lib/libv4l2/libv4l2.c 2018-09-18 19:07:39.596074096 -0500 +@@ -70,6 +70,7 @@ + #include <sys/types.h> + #include <sys/mman.h> + #include <sys/stat.h> ++#include <sys/sysmacros.h> + #include "libv4l2.h" + #include "libv4l2-priv.h" + #include "libv4l-plugin.h" +--- ./utils/v4l2-ctl/v4l2-ctl.cpp.orig 2017-12-27 07:50:55.000000000 -0600 ++++ ./utils/v4l2-ctl/v4l2-ctl.cpp 2018-09-18 19:07:39.599074096 -0500 +@@ -33,6 +33,7 @@ + #include <errno.h> + #include <sys/ioctl.h> + #include <sys/time.h> ++#include <sys/sysmacros.h> + #include <dirent.h> + #include <math.h> + |