Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package di for openSUSE:Factory checked in 
at 2025-02-27 14:50:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/di (Old)
 and      /work/SRC/openSUSE:Factory/.di.new.25152 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "di"

Thu Feb 27 14:50:44 2025 rev:5 rq:1248767 version:5.0.13

Changes:
--------
--- /work/SRC/openSUSE:Factory/di/di.changes    2025-02-21 21:39:32.180154593 
+0100
+++ /work/SRC/openSUSE:Factory/.di.new.25152/di.changes 2025-02-27 
14:53:45.547549694 +0100
@@ -1,0 +2,6 @@
+Wed Feb 26 16:30:39 UTC 2025 - Andreas Stieger <andreas.stie...@gmx.de>
+
+- update to 5.0.13:
+  * build system fixes for other platforms, mkconfig updates
+
+-------------------------------------------------------------------

Old:
----
  di-5.0.12.tar.gz

New:
----
  di-5.0.13.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ di.spec ++++++
--- /var/tmp/diff_new_pack.a9CZ7s/_old  2025-02-27 14:53:46.119573562 +0100
+++ /var/tmp/diff_new_pack.a9CZ7s/_new  2025-02-27 14:53:46.119573562 +0100
@@ -19,7 +19,7 @@
 
 %define sover 5
 Name:           di
-Version:        5.0.12
+Version:        5.0.13
 Release:        0
 Summary:        Disk Information Utility
 License:        Zlib

++++++ di-5.0.12.tar.gz -> di-5.0.13.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/CMakeLists.txt new/di-5.0.13/CMakeLists.txt
--- old/di-5.0.12/CMakeLists.txt        2025-02-18 16:36:25.000000000 +0100
+++ new/di-5.0.13/CMakeLists.txt        2025-02-23 19:24:05.000000000 +0100
@@ -1050,22 +1050,18 @@
 check_symbol_exists (S_ISLNK sys/stat.h _define_S_ISLNK)
 
 if (NOT DEFINED DI_USE_MATH OR DI_USE_MATH STREQUAL "")
-  if (_hdr_gmp AND GMP_LDFLAGS AND
-      NOT (_hdr_tommath OR _hdr_libtommath_tommath))
+  # GMP is the default, as it is more common
+  if (_hdr_gmp AND GMP_LDFLAGS)
     set (DI_USE_MATH DI_GMP)
   endif()
   # at the moment, libtommath in macports has a broken pkg-config
+  # hence the not-apple
   if ((_hdr_tommath OR _hdr_libtommath_tommath) AND
       TOMMATH_LDFLAGS AND
       NOT _hdr_gmp AND
       NOT APPLE)
     set (DI_USE_MATH DI_TOMMATH)
   endif()
-  if (_hdr_gmp AND GMP_LDFLAGS AND
-      (_hdr_tommath OR _hdr_libtommath_tommath))
-    # use the most common library
-    set (DI_USE_MATH DI_GMP)
-  endif()
 endif()
 if (NOT DEFINED DI_USE_MATH OR DI_USE_MATH STREQUAL "")
   set (DI_USE_MATH DI_INTERNAL)
@@ -1097,7 +1093,8 @@
   endif()
 endmacro()
 
-#### libraries
+###
+# libraries
 
 add_library (objdistrutils OBJECT
   distrutils.c
@@ -1205,6 +1202,12 @@
     ${TOMMATH_LDFLAGS}
   )
 endif()
+set (DI_LINK_EXTRA "")
+if (${CMAKE_SYSTEM_NAME} STREQUAL "NetBSD")
+  target_link_options (di PRIVATE
+    -Wl,-R/usr/pkg/lib
+  )
+endif()
 
 add_executable (dimathtest
   dimathtest.c
@@ -1224,6 +1227,7 @@
   )
 endif()
 
+
 add_executable (getoptn_test
   getoptn.c
 )
@@ -1236,15 +1240,6 @@
 
 # di.pc
 
-# cmake puts 'general' in front of every item, and semicolons
-# are treated specially... weird
-# list join does not work
-set (DI_REQUIRED_LIBS ${${DI_LIBNAME}_LIB_DEPENDS})
-if (NOT DEFINED DI_REQUIRED_LIBS OR DI_REQUIRED_LIBS STREQUAL "")
-  set (DI_REQUIRED_LIBS " ")
-endif()
-string (REPLACE "general" " " DI_REQUIRED_LIBS ${DI_REQUIRED_LIBS})
-
 configure_file (${CMAKE_SOURCE_DIR}/di.pc.in di.pc @ONLY)
 
 #### install
@@ -1264,12 +1259,11 @@
   DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}"
 )
 
-# gnu-install-dirs has an incorrect path for netbsd10
 install (FILES man/di.1
-  DESTINATION "${CMAKE_INSTALL_DATADIR}/man/man1"
+  DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
 )
 install (FILES man/libdi.3
-  DESTINATION "${CMAKE_INSTALL_DATADIR}/man/man3"
+  DESTINATION "${CMAKE_INSTALL_MANDIR}/man3"
 )
 
 install (FILES
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/Makefile new/di-5.0.13/Makefile
--- old/di-5.0.12/Makefile      2025-02-21 15:51:07.000000000 +0100
+++ new/di-5.0.13/Makefile      2025-02-23 19:23:10.000000000 +0100
@@ -143,6 +143,10 @@
 tar:
        ./utils/mktar.sh
 
+.PHONY: betatar
+betatar:
+       ./utils/mktar.sh beta
+
 ###
 # cmake
 
@@ -159,7 +163,7 @@
 #   (passing -j w/o arguments, and *BSD complains)
 .PHONY: cmake-all
 cmake-all:
-       @case $$(uname -s) in \
+       @case `uname -s` in \
          CYGWIN*) \
            COMP=$(CC) \
            $(MAKE) -e cmake-unix; \
@@ -184,7 +188,7 @@
 
 .PHONY: cmakeclang
 cmakeclang:
-       case $$(uname -s) in \
+       case `uname -s` in \
          *BSD*) \
            COMP=$(CC) \
            $(MAKE) -e cmake-unix; \
@@ -309,19 +313,16 @@
 mkc-install-po:
        -./utils/instpo.sh "`pwd`/po" $(INST_LOCALEDIR) "`pwd`/tmp"
 
+# -lintl and -liconv are removed, as those libraries are only needed
+# for the main di program, not to link with the library.
 .PHONY: mkc-install-pc
 mkc-install-pc: $(MKC_REQLIB)
        test -d $(INST_PKGCDIR) || mkdir -p $(INST_PKGCDIR)
-       @dilibs="$${LDFLAGS_LIBS_APPLICATION} `cat $(MKC_REQLIB)`" ; \
-       dilibs="`echo $${dilibs} | \
-           sed -e 's,-lintl,,g' \
-           -e 's,-liconv,,g'`" ; \
        cat di.pc.in | \
          sed -e 's,@CMAKE_INSTALL_PREFIX@,$(PREFIX),g' \
              -e 's,@CMAKE_INSTALL_FULL_INCLUDEDIR@,$(INCDIR),g' \
              -e 's,@CMAKE_INSTALL_FULL_LIBDIR@,$(LIBDIR),g' \
              -e 's,@DI_VERSION@,$(DI_VERSION),g' \
-             -e "s~@DI_REQUIRED_LIBS@~$${dilibs}~" \
          > $(INST_PKGCDIR)/di.pc
 
 .PHONY: mkc-install-di
@@ -339,48 +340,12 @@
 .PHONY: mkc-install-libdi
 mkc-install-libdi:
        test -d $(INST_LIBDIR) || mkdir -p $(INST_LIBDIR)
-       @sym=T ; \
-       instdest=$(INST_LIBDIR) ; \
-       case `uname -s` in \
-         Darwin) \
-           libnm=libdi.$(DI_LIBVERSION)$(SHLIB_EXT) ; \
-           libnmso=libdi.$(DI_SOVERSION)$(SHLIB_EXT) ; \
-           ;; \
-         CYGWIN*|MSYS*|MINGW*) \
-           instdest=$(INST_BINDIR) ; \
-           libnm=libdi$(SHLIB_EXT) ; \
-           sym=F ; \
-           ;; \
-         OpenBSD) \
-           libnm=libdi$(SHLIB_EXT).$(DI_LIBVERSION) ; \
-           libnmso=libdi$(SHLIB_EXT).$(DI_SOVERSION) ; \
-           sym=O ; \
-           ;; \
-         *) \
-           libnm=libdi$(SHLIB_EXT).$(DI_LIBVERSION) ; \
-           libnmso=libdi$(SHLIB_EXT).$(DI_SOVERSION) ; \
-           ;; \
-       esac ; \
-       cp -f libdi$(SHLIB_EXT) $${instdest}/$${libnm} ; \
-       if [ $$sym = T -o $$sym = O ]; then \
-         ( \
-           cd $(INST_LIBDIR) ; \
-           ln -sf $${libnm} $${libnmso} ; \
-         ) ; \
-       fi ; \
-       if [ $$sym = T ]; then \
-         ( \
-           cd $(INST_LIBDIR) ; \
-           ln -sf $${libnmso} libdi$(SHLIB_EXT) ; \
-         ) ; \
-       fi
+       ./utils/instlibdi.sh "$(INST_LIBDIR)" "$(INST_BINDIR)" $(DI_LIBVERSION) 
$(DI_SOVERSION)
 
+# incorrect for netbsd
 .PHONY: mkc-install-man
 mkc-install-man:
-       -test -d $(INST_MANDIR)/man1 || mkdir -p $(INST_MANDIR)/man1
-       cp -f man/di.1 $(INST_MANDIR)/man1/$(MAN_TARGET)
-       -test -d $(INST_MANDIR)/man3 || mkdir -p $(INST_MANDIR)/man3
-       cp -f man/libdi.3 $(INST_MANDIR)/man3/$(MAN_TARGET)
+       ./utils/instman.sh "$(PREFIX)" "$(MANDIR)"
 
 ###
 # mkc environment
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/README.txt new/di-5.0.13/README.txt
--- old/di-5.0.12/README.txt    2025-02-17 21:03:52.000000000 +0100
+++ new/di-5.0.13/README.txt    2025-02-23 17:39:25.000000000 +0100
@@ -54,7 +54,7 @@
         cmake --build build
         cmake --install build
 
-    If GMP or libtommath is found, they will be used,
+    If the GMP or libtommath library is found, it will be used,
     otherwise the numerics will be handled using standard C data types
     (long double, double, etc.).
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/VERSION.txt new/di-5.0.13/VERSION.txt
--- old/di-5.0.12/VERSION.txt   2025-02-18 18:59:59.000000000 +0100
+++ new/di-5.0.13/VERSION.txt   2025-02-21 17:39:18.000000000 +0100
@@ -1,5 +1,5 @@
-DI_VERSION=5.0.12
-DI_LIBVERSION=5.0.12
+DI_VERSION=5.0.13
+DI_LIBVERSION=5.0.13
 DI_SOVERSION=5
 DI_RELEASE_STATUS=production
 export DI_VERSION
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/di.pc.in new/di-5.0.13/di.pc.in
--- old/di-5.0.12/di.pc.in      2025-01-30 17:13:36.000000000 +0100
+++ new/di-5.0.13/di.pc.in      2025-02-23 19:23:22.000000000 +0100
@@ -6,5 +6,5 @@
 Description: Disk Information Library
 Version: @DI_VERSION@
 URL: https://sourceforge.net/project/di/
-Libs: -L${libdir} -ldi @DI_REQUIRED_LIBS@
+Libs: -L${libdir} -ldi
 Cflags: -I${includedir}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/dimath.h new/di-5.0.13/dimath.h
--- old/di-5.0.12/dimath.h      2025-02-17 21:03:52.000000000 +0100
+++ new/di-5.0.13/dimath.h      2025-02-23 13:44:53.000000000 +0100
@@ -18,6 +18,9 @@
 # include <inttypes.h>
 #endif
 
+# pragma clang diagnostic push
+# pragma clang diagnostic ignored "-Wbad-function-cast"
+
 /* a double has a longer mantissa than an unsigned int, */
 /* but the accuracy may be less. */
 #if _siz_long_double > 8
@@ -75,7 +78,6 @@
 # pragma clang diagnostic pop
 # pragma gcc diagnostic pop
   typedef mpz_t dinum_t;
-  typedef mpq_t didbl_t;
 #elif _use_math == DI_TOMMATH
 # define MP_WUR
 # if _hdr_tommath
@@ -85,10 +87,8 @@
 #  include <libtommath/tommath.h>
 # endif
   typedef mp_int dinum_t;
-  typedef mp_int didbl_t;
 # else /* DI_INTERNAL */
   typedef di_unum_t dinum_t;
-  typedef double didbl_t;
 #endif
 
 # if defined (__cplusplus) || defined (c_plusplus)
@@ -342,6 +342,7 @@
   *r *= (dinum_t) val;
 #endif
 }
+
 static inline void
 dinum_mul_uu (dinum_t *r, di_ui_t vala, di_ui_t valb)
 {
@@ -488,6 +489,8 @@
   return dval;
 }
 
+# pragma clang diagnostic pop
+
 # if defined (__cplusplus) || defined (c_plusplus)
 }
 # endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/mkc_config/di-env.mkc 
new/di-5.0.13/mkc_config/di-env.mkc
--- old/di-5.0.12/mkc_config/di-env.mkc 2025-02-18 16:35:34.000000000 +0100
+++ new/di-5.0.13/mkc_config/di-env.mkc 2025-02-22 22:39:22.000000000 +0100
@@ -81,28 +81,12 @@
 env DI_USE_MATH
 
 if nousemath ! _env_DI_USE_MATH || == _env_DI_USE_MATH DI_GMP
- pkg cflags gmp /opt/local/lib/pkgconfig
- pkg libs gmp /opt/local/lib/pkgconfig
- if nomath_g ! _pkg_libs_gmp
-  pkg cflags gmp /opt/homebrew/lib/pkgconfig
-  pkg libs gmp /opt/homebrew/lib/pkgconfig
- endif
- if nomath_g ! _pkg_libs_gmp
-  pkg cflags gmp /usr/pkg/lib/pkgconfig
-  pkg libs gmp /usr/pkg/lib/pkgconfig
- endif
+ pkg cflags gmp
+ pkg libs gmp
 endif
 if nomath_g ! _pkg_libs_gmp || == _env_DI_USE_MATH DI_TOMMATH
- pkg cflags libtommath /opt/local/lib/pkgconfig
- pkg libs libtommath /opt/local/lib/pkgconfig
- if nomath_gt ! _pkg_libs_gmp && ! _pkg_libs_libtommath
-  pkg cflags libtommath /opt/homebrew/lib/pkgconfig
-  pkg libs libtommath /opt/homebrew/lib/pkgconfig
- endif
- if nomath_gt ! _pkg_libs_gmp && ! _pkg_libs_libtommath
-  pkg cflags libtommath /usr/pkg/lib/pkgconfig
-  pkg libs libtommath /usr/pkg/lib/pkgconfig
- endif
+ pkg cflags libtommath
+ pkg libs libtommath
 endif
 
 libs
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/mkconfig/ChangeLog 
new/di-5.0.13/mkconfig/ChangeLog
--- old/di-5.0.12/mkconfig/ChangeLog    2025-02-21 16:58:14.000000000 +0100
+++ new/di-5.0.13/mkconfig/ChangeLog    2025-02-23 20:17:39.000000000 +0100
@@ -1,5 +1,9 @@
 CHANGES
 
+    2.6.8 2025-2-23
+      Env: NetBSD Fix.
+      Env: pkg-config cleanup.
+
     2.6.7 2025-2-21
       Env: Add flags and paths for HP-UX ia64.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/mkconfig/VERSION 
new/di-5.0.13/mkconfig/VERSION
--- old/di-5.0.12/mkconfig/VERSION      2025-02-20 02:10:52.000000000 +0100
+++ new/di-5.0.13/mkconfig/VERSION      2025-02-23 20:17:46.000000000 +0100
@@ -1 +1 @@
-2.6.7
+2.6.8
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/mkconfig/units/env-cc.sh 
new/di-5.0.13/mkconfig/units/env-cc.sh
--- old/di-5.0.12/mkconfig/units/env-cc.sh      2025-02-20 02:19:16.000000000 
+0100
+++ new/di-5.0.13/mkconfig/units/env-cc.sh      2025-02-23 20:04:58.000000000 
+0100
@@ -357,12 +357,23 @@
   fi
 }
 
+helper_pkg_path () {
+  for p in $HOME/local/lib /usr/local/lib \
+      /opt/local/lib /opt/homebrew/lib /usr/pkg/lib /usr/local/lib/hpux64; do
+    if [ -d $td ]; then
+      doappend PKG_CONFIG_PATH $p
+    fi
+  done
+}
+
+
 check_pkg_cflags () {
   name=$1
   pkgname=$2
   pkgpath=$3
 
   OPKG_CONFIG_PATH=$PKG_CONFIG_PATH
+  helper_pkg_path
   if [ "$pkgpath" != "" ]; then
     if [ "$PKG_CONFIG_PATH" != "" ]; then
       doappend PKG_CONFIG_PATH :
@@ -390,6 +401,7 @@
   pkgpath=$3
 
   OPKG_CONFIG_PATH=$PKG_CONFIG_PATH
+  helper_pkg_path
   if [ "$pkgpath" != "" ]; then
     if [ "$PKG_CONFIG_PATH" != "" ]; then
       doappend PKG_CONFIG_PATH :
@@ -417,6 +429,7 @@
   pkgpath=$3
 
   OPKG_CONFIG_PATH=$PKG_CONFIG_PATH
+  helper_pkg_path
   if [ "$pkgpath" != "" ]; then
     if [ "$PKG_CONFIG_PATH" != "" ]; then
       doappend PKG_CONFIG_PATH :
@@ -520,7 +533,7 @@
         doappend ldflags_system " -L/usr/local/lib"
         ;;
       NetBSD)
-        doappend ldflags_system " -L/usr/pkg/lib"
+        doappend ldflags_system " -Wl,-R/usr/pkg/lib -L/usr/pkg/lib"
         ;;
       HP-UX)
         # check for libintl in other places...
@@ -880,7 +893,7 @@
         LDFLAGS_RUNPATH="-rpath "
         ;;
       SCO_SV)
-        LDFLAGS_RUNPATH="-R "
+        LDFLAGS_RUNPATH="-Wl,-R"
         ;;
       SunOS)
         LDFLAGS_RUNPATH="-R"
@@ -892,13 +905,17 @@
         LDFLAGS_RUNPATH=""
         ;;
     esac
-    if [ "$_MKCONFIG_USING_GCC" = Y -o "$_MKCONFIG_USING_CLANG" = Y ]; then
-      # the trailing space will be converted to ' -Wl,' and
-      # the library runpath will be appended by mkcl.sh
-      LDFLAGS_RUNPATH=`echo "$LDFLAGS_RUNPATH" |
-          sed -e 's/^-/-Wl,-/' -e 's/^\+/-Wl,+/' -e 's/  */ -Wl,/g'`
+    if [ "$_MKCONFIG_USING_GNU_LD" != Y -a "$_MKCONFIG_USING_CLANG" = Y ]; then
+      LDFLAGS_RUNPATH="-rpath "
     fi
+#    if [ "$_MKCONFIG_USING_GCC" = Y -o "$_MKCONFIG_USING_CLANG" = Y ]; then
+#      # the trailing space will be converted to ' -Wl,' and
+#      # the library runpath will be appended by mkcl.sh
+#      LDFLAGS_RUNPATH=`echo "$LDFLAGS_RUNPATH" |
+#          sed -e 's/^-/-Wl,-/' -e 's/^\+/-Wl,+/' -e 's/  */ -Wl,/g'`
+#    fi
   fi
+set +x
 
   printyesno_val LDFLAGS_RUNPATH "$LDFLAGS_RUNPATH"
   setdata LDFLAGS_RUNPATH "$LDFLAGS_RUNPATH"
@@ -923,41 +940,6 @@
   fi
 }
 
-check_findconfig () {
-  name=$1
-  cfile=$2
-  printlabel FINDCONFIG "Search for: ${cfile}"
-  sp=
-  incchk=
-  pp=`puts $PATH | sed 's/:/ /g'`
-  for p in $pp $HOME/local/lib /usr/local/lib \
-      /opt/local/lib /opt/homebrew/lib /usr/pkg/lib /usr/local/lib/hpux64; do
-    td=$p
-    case $p in
-      */bin)
-        td=`puts $p | sed 's,/bin$,/lib,'`
-        ;;
-    esac
-    if [ -d $td ]; then
-      if [ -f "$td/$cfile.sh" ]; then
-        puts "found: ${td}" >&9
-        sp=$td
-        break
-      fi
-    fi
-  done
-
-  if [ z$sp != z ]; then
-    printyesno_val $name yes
-    setdata config_${cfile} Y
-    setdata config_path_${cfile} $sp/$cfile
-    . $sp/$cfile.sh ; # load the environment variables
-  else
-    printyesno_val $name no
-    setdata config_${cfile} N
-  fi
-}
-
 check_standard_cc () {
   check_cc
   check_using_gcc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/utils/instlibdi.sh 
new/di-5.0.13/utils/instlibdi.sh
--- old/di-5.0.12/utils/instlibdi.sh    1970-01-01 01:00:00.000000000 +0100
+++ new/di-5.0.13/utils/instlibdi.sh    2025-02-21 20:06:28.000000000 +0100
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+INST_LIBDIR=$1
+INST_BINDIR=$2
+DI_LIBVERSION=$3
+DI_SOVERSION=$4
+# SHLIB_EXT is in the environment
+
+grc=0
+
+if [ "x${INST_LIBDIR}" = x ]; then
+  echo "INST_LIBDIR is not set"
+  exit 1
+fi
+
+if [ "x${INST_BINDIR}" = x ]; then
+  echo "INST_BINDIR is not set"
+  exit 1
+fi
+
+if [ "x${DI_LIBVERSION}" = x ]; then
+  echo "DI_LIBVERSION is not set"
+  exit 1
+fi
+
+if [ "x${DI_SOVERSION}" = x ]; then
+  echo "DI_SOVERSION is not set"
+  exit 1
+fi
+
+if [ ! -d "${INST_LIBDIR}" ]; then
+  echo "INST_LIBDIR does not exist"
+  exit 1
+fi
+
+sym=T
+instdest=${INST_LIBDIR}
+
+case `uname -s` in
+  Darwin)
+    libnm=libdi.${DI_LIBVERSION}${SHLIB_EXT}
+    libnmso=libdi.${DI_SOVERSION}${SHLIB_EXT}
+    ;;
+  CYGWIN*|MSYS*|MINGW*)
+    instdest=${INST_BINDIR}
+    libnm=libdi${SHLIB_EXT}
+    sym=F
+    ;;
+  OpenBSD)
+    libnm=libdi${SHLIB_EXT}.${DI_LIBVERSION}
+    libnmso=libdi${SHLIB_EXT}.${DI_SOVERSION}
+    sym=O
+    ;;
+  *)
+    libnm=libdi${SHLIB_EXT}.${DI_LIBVERSION}
+    libnmso=libdi${SHLIB_EXT}.${DI_SOVERSION}
+    ;;
+esac
+
+cp -f libdi${SHLIB_EXT} ${instdest}/${libnm}
+rc=$?
+if [ $rc -ne 0 ]; then
+  grc=1
+fi
+
+if [ $grc -eq 0 -a \( $sym = T -o $sym = O \) ]; then
+  (
+    cd "${instdest}"
+    ln -sf ${libnm} ${libnmso}
+    rc=$?
+    if [ $rc -ne 0 ]; then
+      grc=1
+    fi
+  )
+fi
+
+if [ $grc -eq 0 -a $sym = T ]; then
+  (
+    cd "${instdest}"
+    ln -sf ${libnmso} libdi${SHLIB_EXT}
+    rc=$?
+    if [ $rc -ne 0 ]; then
+      grc=1
+    fi
+  )
+fi
+
+exit $grc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/di-5.0.12/utils/instman.sh 
new/di-5.0.13/utils/instman.sh
--- old/di-5.0.12/utils/instman.sh      1970-01-01 01:00:00.000000000 +0100
+++ new/di-5.0.13/utils/instman.sh      2025-02-22 01:54:27.000000000 +0100
@@ -0,0 +1,51 @@
+#!/bin/sh
+
+prefix=$1
+mandir=$2
+grc=0
+
+if [ "x${prefix}" = x ]; then
+  echo "prefix is not set"
+  exit 1
+fi
+
+if [ "x${mandir}" = x ]; then
+  echo "mandir is not set"
+  exit 1
+fi
+
+systype=`uname -s`
+case ${systype} in
+  NetBSD)
+    # netbsd uses /usr/pkg/man
+    mandir="${prefix}/man"
+    ;;
+  OpenBSD)
+    # openbsd cmake puts the man pages at the top level.
+    # match what cmake does.
+    # I don't know why there is a mis-match between cmake and where
+    # the os puts the system manual pages.
+    mandir="${prefix}/man"
+    ;;
+esac
+
+instmandir="${mandir}"
+if [ ! "x${DESTDIR}" = x ]; then
+  instmandir="${DESTDIR}/${mandir}"
+fi
+
+test -d ${instmandir}/man1 || mkdir -p ${instmandir}/man1
+cp -f man/di.1 ${instmandir}/man1/
+rc=$?
+if [ $rc -ne 0 ]; then
+  grc=1
+fi
+
+test -d ${instmandir}/man3 || mkdir -p ${instmandir}/man3
+cp -f man/libdi.3 ${instmandir}/man3/
+rc=$?
+if [ $rc -ne 0 ]; then
+  grc=1
+fi
+
+exit $grc

Reply via email to