diff --git a/srcpkgs/xwmfs/patches/musl_strerr_types.patch b/srcpkgs/xwmfs/patches/musl_strerr_types.patch new file mode 100644 index 00000000000..3c5bdac45f5 --- /dev/null +++ b/srcpkgs/xwmfs/patches/musl_strerr_types.patch @@ -0,0 +1,27 @@ +--- src/common/Exception.cxx ++++ src/common/Exception.cxx +@@ -39,8 +39,13 @@ SystemException::SystemException(const std::string &err) : + + char msg[256]; + ++#if defined(__GLIBC__) + char *m = ::strerror_r(m_errno, msg, 256); + ss << " (\"" << m << "\", errno = " << m_errno << ")"; ++#else ++ ::strerror_r(m_errno, msg, 256); ++ ss << " (\"" << msg << "\", errno = " << m_errno << ")"; ++#endif + m_error.append( ss.str() ); + } + +--- src/fuse/Entry.hxx ++++ src/fuse/Entry.hxx +@@ -1,6 +1,8 @@ + #ifndef XWMFS_ENTRY_HXX + #define XWMFS_ENTRY_HXX + ++#include ++ + // C++ + #include + diff --git a/srcpkgs/xwmfs/template b/srcpkgs/xwmfs/template new file mode 100644 index 00000000000..7b8cdc74eb9 --- /dev/null +++ b/srcpkgs/xwmfs/template @@ -0,0 +1,17 @@ +# Template file for 'xwmfs' +pkgname=xwmfs +version=0.83 +revision=1 +build_style=gnu-configure +hostmakedepends="automake autoconf pkg-config" +makedepends="fuse-devel libX11-devel" +short_desc="X11 Window-Manager file system based on FUSE" +maintainer="Kyle Nusbaum " +license="GPL-2.0-or-later" +homepage="https://github.com/gerstner-hub/xwmfs" +distfiles="https://github.com/gerstner-hub/xwmfs/archive/v${version}.tar.gz" +checksum=427207694a34c128b7efdf67552c38b3ca9dad1aa956d2fd6d987e7b8eba4fb5 + +pre_configure() { + ./bootstrap +}