From 09501dafe08169673d0ea5d31dc5136cb211b96d Mon Sep 17 00:00:00 2001 From: John Date: Wed, 13 Feb 2019 15:01:41 +0100 Subject: [PATCH] wayfire: fix build on musl --- srcpkgs/wayfire/patches/ulong.patch | 22 ++++++++++++++++++++++ srcpkgs/wayfire/template | 4 ++-- 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/wayfire/patches/ulong.patch diff --git a/srcpkgs/wayfire/patches/ulong.patch b/srcpkgs/wayfire/patches/ulong.patch new file mode 100644 index 0000000000..e7ba060856 --- /dev/null +++ b/srcpkgs/wayfire/patches/ulong.patch @@ -0,0 +1,22 @@ +--- src/api/img.hpp 2019-02-05 15:46:42.000000000 +0100 ++++ - 2019-02-13 14:59:35.302813580 +0100 +@@ -5,8 +5,6 @@ + #include + #include + +-#define ulong unsigned long +- + namespace image_io + { + /* Load the image from the given file, binding it to the given GL texture target +--- src/core/img.cpp 2019-02-05 15:46:42.000000000 +0100 ++++ - 2019-02-13 14:59:57.760169039 +0100 +@@ -19,7 +19,7 @@ + + namespace image_io { + using Loader = std::function; +- using Writer = std::function; ++ using Writer = std::function; + namespace { + std::unordered_map loaders; + std::unordered_map writers; diff --git a/srcpkgs/wayfire/template b/srcpkgs/wayfire/template index 407d88d8ed..d96647f822 100644 --- a/srcpkgs/wayfire/template +++ b/srcpkgs/wayfire/template @@ -12,8 +12,8 @@ homepage="https://wayfire.org" distfiles="https://github.com/WayfireWM/wayfire/archive/v${version}.tar.gz" checksum=ce6ed0ba62296992f4a0c05b92d05b33911d1d192346611df845414ffd9a18b8 -case "$XBPS_TARGET_MACHINE" in - *-musl) broken="execinfo.h" ;; +case $XBPS_TARGET_MACHINE in + *-musl) makedepends+=" libexecinfo-devel" esac post_install() {