pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/filesystems/ltfs/patches dd missing patch (Hi Thomas!)



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6e0a92b88e42
branches:  trunk
changeset: 375741:6e0a92b88e42
user:      manu <manu%pkgsrc.org@localhost>
date:      Thu Mar 24 16:35:31 2022 +0000

description:
dd missing patch (Hi Thomas!)

diffstat:

 filesystems/ltfs/patches/patch-messages_make_message_src.sh |  37 +++++++++++++
 filesystems/ltfs/patches/patch-src_ltfs_fuse.c              |  31 ++++++++++
 2 files changed, 68 insertions(+), 0 deletions(-)

diffs (76 lines):

diff -r 05264cdad3f5 -r 6e0a92b88e42 filesystems/ltfs/patches/patch-messages_make_message_src.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/ltfs/patches/patch-messages_make_message_src.sh       Thu Mar 24 16:35:31 2022 +0000
@@ -0,0 +1,37 @@
+$NetBSD: patch-messages_make_message_src.sh,v 1.1 2022/03/24 16:35:31 manu Exp $
+
+Build all .o generated by ICU to spare undefined symbol errors
+
+--- messages/make_message_src.sh.orig  2019-03-15 05:24:46.000000000 +0100
++++ messages/make_message_src.sh       2022-03-22 17:16:40.802122202 +0100
+@@ -77,19 +77,22 @@
+                       ;;
+               NetBSD)
+                       # generate libtool archive for later linking
+                       mv lib${BASENAME}.a ../../lib${BASENAME}_dat.a
+-                      OBJFILE=${BASENAME}_dat.o
+-                      LTFILE=${BASENAME}_dat.lo
+                       mkdir -p .libs ../../.libs
+-                      mv ${OBJFILE} .libs
++                      LTFILES=""
+                       LTVERS=`libtool --version | 
+                           sed -e 's/^\([^ ]*\) (GNU \(.*\)) \(.*\)$$/\1 - GNU \2 \3/' -e q` 
+-                      echo "# ${OBJFILE} - a libtool object file" > ${LTFILE}
+-                      echo "# Generated by ${LTVERS}" >> ${LTFILE}
+-                      echo "pic_object='.libs/${OBJFILE}'" >> ${LTFILE}
+-                      echo "non_pic_object=none" >> ${LTFILE}
+-                      libtool --mode=link --tag=CC cc -o ../../lib${BASENAME}_dat.la ${LTFILE}
++                      for OBJFILE in *.o ; do 
++                              LTFILE=${OBJFILE%.o}.lo
++                              mv ${OBJFILE} .libs
++                              echo "# ${OBJFILE} - a libtool object file" > ${LTFILE}
++                              echo "# Generated by ${LTVERS}" >> ${LTFILE}
++                              echo "pic_object='.libs/${OBJFILE}'" >> ${LTFILE}
++                              echo "non_pic_object=none" >> ${LTFILE}
++                              LTFILES="${LTFILES} ${LTFILE}"
++                      done
++                      libtool --mode=link --tag=CC cc -o ../../lib${BASENAME}_dat.la ${LTFILES}
+                       ;;
+               *)
+                       mv ${BASENAME}_dat.o ../../lib${BASENAME}_dat.a
+                       ;;
diff -r 05264cdad3f5 -r 6e0a92b88e42 filesystems/ltfs/patches/patch-src_ltfs_fuse.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/ltfs/patches/patch-src_ltfs_fuse.c    Thu Mar 24 16:35:31 2022 +0000
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_ltfs_fuse.c,v 1.1 2022/03/24 16:35:31 manu Exp $
+
+Do not take for granted that __WORDSIZE is defined to distinguish 
+between 32 and 64 bit platforms. Instead use ULONG_MAX from <limits.h>
+which is mandared by ISO C99.
+
+--- src/ltfs_fuse.c.orig       2022-03-24 10:08:47.455171288 +0100
++++ src/ltfs_fuse.c    2022-03-24 10:21:27.627832669 +0100
+@@ -53,8 +53,11 @@
+ **                  piste%jp.ibm.com@localhost
+ **
+ *************************************************************************************
+ */
++
++#include <limits.h> /* for ULONG_MAX */
++
+ #include "ltfs_fuse.h"
+ #include "libltfs/ltfs_fsops.h"
+ #include "libltfs/iosched.h"
+ #include "libltfs/pathname.h"
+@@ -67,9 +70,9 @@
+ #ifdef mingw_PLATFORM
+ #include "libltfs/arch/win/win_util.h"
+ #endif
+ 
+-#if (__WORDSIZE == 64)
++#if (__WORDSIZE == 64 || ULONG_MAX == 0xffffffffffffffffUL)
+ #define FILEHANDLE_TO_STRUCT(fh) ((struct ltfs_file_handle *)(uint64_t)(fh))
+ #define STRUCT_TO_FILEHANDLE(de) ((uint64_t)(de))
+ #else
+ #define FILEHANDLE_TO_STRUCT(fh) ((struct ltfs_file_handle *)(uint32_t)(fh))



Home | Main Index | Thread Index | Old Index