URI: 
       tlibattr: add patches for musl - distro - linux distribution experiments
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit e9e9bf919bc04839a060deb16cae165d65e01a2a
   DIR parent 6f221b7a8f678781b480875dd861f26475a45548
  HTML Author: z3bra <contactatz3bradotorg>
       Date:   Mon, 29 Oct 2018 17:31:38 +0100
       
       libattr: add patches for musl
       
       Diffstat:
         A pkg/libattr/patches/config-musl.di… |      30 ++++++++++++++++++++++++++++++
         A pkg/libattr/patches/fix-buildmacro… |      13 +++++++++++++
         A pkg/libattr/patches/fix-headers.di… |      54 +++++++++++++++++++++++++++++++
         A pkg/libattr/patches/no-zipped-manp… |      11 +++++++++++
       
       4 files changed, 108 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/pkg/libattr/patches/config-musl.diff b/pkg/libattr/patches/config-musl.diff
       t@@ -0,0 +1,30 @@
       +--- a/config.sub
       ++++ b/config.sub
       +@@ -123,7 +123,7 @@
       + maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
       + case $maybe_os in
       +   nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
       +-  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
       ++  linux-uclibc* | linux-musl | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
       +   knetbsd*-gnu* | netbsd*-gnu* | \
       +   kopensolaris*-gnu* | \
       +   storm-chaos* | os2-emx* | rtmk-nova*)
       +@@ -1360,7 +1360,7 @@
       +               | -chorusos* | -chorusrdb* | -cegcc* \
       +               | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
       +               | -mingw32* | -linux-gnu* | -linux-android* \
       +-              | -linux-newlib* | -linux-uclibc* \
       ++              | -linux-newlib* | -linux-uclibc* | -linux-musl* \
       +               | -uxpv* | -beos* | -mpeix* | -udk* \
       +               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
       +               | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
       +@@ -1394,6 +1394,9 @@
       +                 ;;
       +         -linux-dietlibc)
       +                 os=-linux-dietlibc
       ++                ;;
       ++        -linux-musl)
       ++                os=-linux-musl
       +                 ;;
       +         -linux*)
       +                 os=`echo $os | sed -e 's|linux|linux-gnu|'`
   DIR diff --git a/pkg/libattr/patches/fix-buildmacros-static.diff b/pkg/libattr/patches/fix-buildmacros-static.diff
       t@@ -0,0 +1,13 @@
       +diff -urN a/include/buildmacros b/include/buildmacros
       +--- a/include/buildmacros        2013-05-19 07:07:22.000000000 +0200
       ++++ b/include/buildmacros        2016-10-24 08:51:19.334082460 +0200
       +@@ -97,7 +97,8 @@
       + 
       + INSTALL_LTLIB_STATIC = \
       +         cd $(TOPDIR)/$(LIBNAME)/.libs; \
       +-        ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR);
       ++        ../$(INSTALL) -m 755 -d $(PKG_DEVLIB_DIR); \
       ++        ../$(INSTALL) -m 644 $(LIBNAME).a $(PKG_LIB_DIR)/$(LIBNAME).a;
       + 
       + INSTALL_MAN = \
       +         @for d in $(MAN_PAGES); do \
   DIR diff --git a/pkg/libattr/patches/fix-headers.diff b/pkg/libattr/patches/fix-headers.diff
       t@@ -0,0 +1,54 @@
       +--- attr-2.4.47/include/xattr.h
       ++++ attr-2.4.47/include/xattr.h
       +@@ -31,33 +31,37 @@
       + #define XATTR_REPLACE 0x2       /* set value, fail if attr does not exist */
       + 
       + 
       +-__BEGIN_DECLS
       ++#ifdef __cplusplus
       ++extern "C" {
       ++#endif
       + 
       + extern int setxattr (const char *__path, const char *__name,
       +-                      const void *__value, size_t __size, int __flags) __THROW;
       ++                      const void *__value, size_t __size, int __flags);
       + extern int lsetxattr (const char *__path, const char *__name,
       +-                      const void *__value, size_t __size, int __flags) __THROW;
       ++                      const void *__value, size_t __size, int __flags);
       + extern int fsetxattr (int __filedes, const char *__name,
       +-                      const void *__value, size_t __size, int __flags) __THROW;
       ++                      const void *__value, size_t __size, int __flags);
       + 
       + extern ssize_t getxattr (const char *__path, const char *__name,
       +-                                void *__value, size_t __size) __THROW;
       ++                                void *__value, size_t __size);
       + extern ssize_t lgetxattr (const char *__path, const char *__name,
       +-                                void *__value, size_t __size) __THROW;
       ++                                void *__value, size_t __size);
       + extern ssize_t fgetxattr (int __filedes, const char *__name,
       +-                                void *__value, size_t __size) __THROW;
       ++                                void *__value, size_t __size);
       + 
       + extern ssize_t listxattr (const char *__path, char *__list,
       +-                                size_t __size) __THROW;
       ++                                size_t __size);
       + extern ssize_t llistxattr (const char *__path, char *__list,
       +-                                size_t __size) __THROW;
       ++                                size_t __size);
       + extern ssize_t flistxattr (int __filedes, char *__list,
       +-                                size_t __size) __THROW;
       ++                                size_t __size);
       + 
       +-extern int removexattr (const char *__path, const char *__name) __THROW;
       +-extern int lremovexattr (const char *__path, const char *__name) __THROW;
       +-extern int fremovexattr (int __filedes,   const char *__name) __THROW;
       ++extern int removexattr (const char *__path, const char *__name);
       ++extern int lremovexattr (const char *__path, const char *__name);
       ++extern int fremovexattr (int __filedes,   const char *__name);
       + 
       +-__END_DECLS
       ++#ifdef __cplusplus
       ++}
       ++#endif
       + 
       + #endif        /* __XATTR_H__ */
   DIR diff --git a/pkg/libattr/patches/no-zipped-manpages.diff b/pkg/libattr/patches/no-zipped-manpages.diff
       t@@ -0,0 +1,11 @@
       +--- a/include/builddefs.in
       ++++ b/include/builddefs.in
       +@@ -73,7 +73,7 @@
       + ENABLE_SHARED        = @enable_shared@
       + ENABLE_GETTEXT        = @enable_gettext@
       + 
       +-HAVE_ZIPPED_MANPAGES = @have_zipped_manpages@
       ++HAVE_ZIPPED_MANPAGES =false
       + 
       + ifneq "$(findstring $(PKG_PLATFORM), linux gnu gnu/kfreebsd gnu/knetbsd)" ""
       + PCFLAGS = -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64