pkgsrc-Changes archive

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

CVS commit: pkgsrc/misc/indi



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri May  3 11:17:15 UTC 2024

Added Files:
        pkgsrc/misc/indi: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/misc/indi/patches: patch-libs_alignment_CMakeLists.txt
            patch-libs_indicore_CMakeLists.txt patch-libs_indicore_indicom.c
            patch-libs_indicore_indidevapi.h patch-libs_indicore_sharedblob.c
            patch-libs_sockets_tcpsocket.cpp

Log Message:
misc/indi: import indi-2.0.7

The code here demonstrates the use of INDI, an Instrument-Neutral Device
Interface protocol.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/indi/DESCR pkgsrc/misc/indi/Makefile \
    pkgsrc/misc/indi/PLIST pkgsrc/misc/indi/buildlink3.mk \
    pkgsrc/misc/indi/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/misc/indi/patches/patch-libs_alignment_CMakeLists.txt \
    pkgsrc/misc/indi/patches/patch-libs_indicore_CMakeLists.txt \
    pkgsrc/misc/indi/patches/patch-libs_indicore_indicom.c \
    pkgsrc/misc/indi/patches/patch-libs_indicore_indidevapi.h \
    pkgsrc/misc/indi/patches/patch-libs_indicore_sharedblob.c \
    pkgsrc/misc/indi/patches/patch-libs_sockets_tcpsocket.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/misc/indi/DESCR
diff -u /dev/null pkgsrc/misc/indi/DESCR:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/DESCR      Fri May  3 11:17:14 2024
@@ -0,0 +1,2 @@
+The code here demonstrates the use of INDI, an Instrument-Neutral Device
+Interface protocol.
Index: pkgsrc/misc/indi/Makefile
diff -u /dev/null pkgsrc/misc/indi/Makefile:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/Makefile   Fri May  3 11:17:14 2024
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+DISTNAME=      indi-2.0.7
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=indilib/}
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/indilib/indi/
+COMMENT=       Implementation of the Instrument-Neutral-Device-Interface protocol
+#LICENSE=      # TODO: (see mk/license.mk)
+
+USE_LANGUAGES= c c++
+USE_TOOLS+=    pkg-config
+
+CMAKE_ARGS+=   -DINDI_BUILD_SERVER=NO
+
+PKGCONFIG_OVERRIDE=    libindi.pc.cmake
+
+.include "../../devel/cmake/build.mk"
+.include "../../devel/cfitsio/buildlink3.mk"
+.include "../../devel/libusb1/buildlink3.mk"
+.include "../../geography/libnova/buildlink3.mk"
+.include "../../math/fftw/buildlink3.mk"
+.include "../../math/gsl/buildlink3.mk"
+# not checked but used
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/indi/PLIST
diff -u /dev/null pkgsrc/misc/indi/PLIST:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/PLIST      Fri May  3 11:17:14 2024
@@ -0,0 +1,295 @@
+@comment $NetBSD: PLIST,v 1.1 2024/05/03 11:17:14 wiz Exp $
+bin/indi_Excalibur
+bin/indi_aaf2_focus
+bin/indi_activefocuser_focus
+bin/indi_alluna_tcs2
+bin/indi_alto
+bin/indi_arduinost4
+bin/indi_astromech_lpm
+bin/indi_astrometry
+bin/indi_astrotrac_telescope
+bin/indi_baader_dome
+bin/indi_celestron_gps
+bin/indi_celestron_sct_focus
+bin/indi_cheapodc
+bin/indi_crux_mount
+bin/indi_ddw_dome
+bin/indi_deepskydad_af1_focus
+bin/indi_deepskydad_af2_focus
+bin/indi_deepskydad_af3_focus
+bin/indi_deepskydad_fp1
+bin/indi_deepskydad_fr1
+bin/indi_dmfc_focus
+bin/indi_domepro2_dome
+bin/indi_dragon_light
+bin/indi_dragonlair_dome
+bin/indi_dsc_telescope
+bin/indi_efa_focus
+bin/indi_eq500x_telescope
+bin/indi_esatto_focus
+bin/indi_esattoarco_focus
+bin/indi_eval
+bin/indi_falcon_rotator
+bin/indi_fcusb_focus
+bin/indi_flipflat
+bin/indi_gemini_focus
+bin/indi_getprop
+bin/indi_giotto
+bin/indi_gpusb
+bin/indi_hid_test
+bin/indi_hitecastrodc_focus
+bin/indi_ieaf_focus
+bin/indi_ieq_telescope
+bin/indi_ieqlegacy_telescope
+bin/indi_imager_agent
+bin/indi_integra_focus
+bin/indi_ioptronHC8406
+bin/indi_ioptronv3_telescope
+bin/indi_lacerta_mfoc_fmc_focus
+bin/indi_lacerta_mfoc_focus
+bin/indi_lakeside_focus
+bin/indi_lx200_10micron
+bin/indi_lx200_16
+bin/indi_lx200_OnStep
+bin/indi_lx200_OpenAstroTech
+bin/indi_lx200_TeenAstro
+bin/indi_lx200_pegasus_nyx101
+bin/indi_lx200am5
+bin/indi_lx200ap_v2
+bin/indi_lx200autostar
+bin/indi_lx200basic
+bin/indi_lx200classic
+bin/indi_lx200fs2
+bin/indi_lx200gemini
+bin/indi_lx200generic
+bin/indi_lx200gotonova
+bin/indi_lx200gps
+bin/indi_lx200pulsar2
+bin/indi_lx200ss2000pc
+bin/indi_lx200zeq25
+bin/indi_lynx_focus
+bin/indi_manual_wheel
+bin/indi_mbox_weather
+bin/indi_meta_weather
+bin/indi_microtouch_focus
+bin/indi_moonlite_focus
+bin/indi_moonlitedro_focus
+bin/indi_myDewControllerPro
+bin/indi_mydcp4esp32
+bin/indi_myfocuserpro2_focus
+bin/indi_nexdome_beaver
+bin/indi_nfocus
+bin/indi_nframe_rotator
+bin/indi_nightcrawler_focus
+bin/indi_nstep_focus
+bin/indi_onfocus_focus
+bin/indi_openweathermap_weather
+bin/indi_optec_wheel
+bin/indi_paramount_telescope
+bin/indi_pegasus_flatmaster
+bin/indi_pegasus_focuscube
+bin/indi_pegasus_focuscube3
+bin/indi_pegasus_ppb
+bin/indi_pegasus_ppba
+bin/indi_pegasus_prodigyMF
+bin/indi_pegasus_scopsoag
+bin/indi_pegasus_spb
+bin/indi_pegasus_uch
+bin/indi_pegasus_upb
+bin/indi_pegasusindigo_wheel
+bin/indi_perfectstar_focus
+bin/indi_planewave_deltat
+bin/indi_planewave_telescope
+bin/indi_pmc8_telescope
+bin/indi_pyxis_rotator
+bin/indi_qhycfw1_wheel
+bin/indi_qhycfw2_wheel
+bin/indi_qhycfw3_wheel
+bin/indi_quantum_wheel
+bin/indi_rainbow_telescope
+bin/indi_rainbowrsf_focus
+bin/indi_rbfocus_focus
+bin/indi_rigel_dome
+bin/indi_robo_focus
+bin/indi_rolloff_dome
+bin/indi_scopedome_dome
+bin/indi_script_dome
+bin/indi_script_telescope
+bin/indi_sestosenso2_focus
+bin/indi_sestosenso_focus
+bin/indi_setprop
+bin/indi_siefs_focus
+bin/indi_simulator_ccd
+bin/indi_simulator_dome
+bin/indi_simulator_focus
+bin/indi_simulator_gps
+bin/indi_simulator_guide
+bin/indi_simulator_lightpanel
+bin/indi_simulator_receiver
+bin/indi_simulator_rotator
+bin/indi_simulator_sqm
+bin/indi_simulator_telescope
+bin/indi_simulator_weather
+bin/indi_simulator_wheel
+bin/indi_skycommander_telescope
+bin/indi_skysafari
+bin/indi_skywatcherAltAzMount
+bin/indi_smartfocus_focus
+bin/indi_snapcap
+bin/indi_sqm_weather
+bin/indi_star2000
+bin/indi_steeldrive2_focus
+bin/indi_steeldrive_focus
+bin/indi_synscan_telescope
+bin/indi_synscanlegacy_telescope
+bin/indi_tcfs3_focus
+bin/indi_tcfs_focus
+bin/indi_teenastro_focus
+bin/indi_temma_telescope
+bin/indi_trutech_wheel
+bin/indi_uranus_weather
+bin/indi_usbdewpoint
+bin/indi_usbfocusv3_focus
+bin/indi_vantage_weather
+bin/indi_wanderer_cover
+bin/indi_wanderer_lite_rotator
+bin/indi_wanderer_rotator_lite_v2
+bin/indi_wanderer_rotator_mini
+bin/indi_wandererbox_plus_v3
+bin/indi_wandererbox_pro_v3
+bin/indi_wanderercover_v4_ec
+bin/indi_watchdog
+bin/indi_watcher_weather
+bin/indi_weather_safety_proxy
+bin/indi_xagyl_wheel
+bin/shelyak_usis
+include/libindi/abstractbaseclient.h
+include/libindi/alignment/AlignmentSubsystemForDrivers.h
+include/libindi/alignment/AlignmentSubsystemForMathPlugins.h
+include/libindi/alignment/BasicMathPlugin.h
+include/libindi/alignment/BuiltInMathPlugin.h
+include/libindi/alignment/ClientAPIForAlignmentDatabase.h
+include/libindi/alignment/ClientAPIForMathPluginManagement.h
+include/libindi/alignment/Common.h
+include/libindi/alignment/ConvexHull.h
+include/libindi/alignment/DriverCommon.h
+include/libindi/alignment/InMemoryDatabase.h
+include/libindi/alignment/MapPropertiesToInMemoryDatabase.h
+include/libindi/alignment/MathPlugin.h
+include/libindi/alignment/MathPluginManagement.h
+include/libindi/alignment/NearestMathPlugin.h
+include/libindi/alignment/SVDMathPlugin.h
+include/libindi/alignment/TelescopeDirectionVectorSupportFunctions.h
+include/libindi/base64.h
+include/libindi/baseclient.h
+include/libindi/basedevice.h
+include/libindi/connectionplugins/connectioninterface.h
+include/libindi/connectionplugins/connectionserial.h
+include/libindi/connectionplugins/connectiontcp.h
+include/libindi/defaultdevice.h
+include/libindi/dsp.h
+include/libindi/dsp/convolution.h
+include/libindi/dsp/dspinterface.h
+include/libindi/dsp/manager.h
+include/libindi/dsp/transforms.h
+include/libindi/eventloop.h
+include/libindi/fits.h
+include/libindi/fits_extensions.h
+include/libindi/fitsidi.h
+include/libindi/fitskeyword.h
+include/libindi/hidapi.h
+include/libindi/httplib.h
+include/libindi/indiapi.h
+include/libindi/indibase.h
+include/libindi/indibasetypes.h
+include/libindi/indiccd.h
+include/libindi/indiccdchip.h
+include/libindi/indicom.h
+include/libindi/indicontroller.h
+include/libindi/indicorrelator.h
+include/libindi/indidetector.h
+include/libindi/indidevapi.h
+include/libindi/indidome.h
+include/libindi/indidriver.h
+include/libindi/indidustcapinterface.h
+include/libindi/indielapsedtimer.h
+include/libindi/indifilterinterface.h
+include/libindi/indifilterwheel.h
+include/libindi/indifocuser.h
+include/libindi/indifocuserinterface.h
+include/libindi/indigps.h
+include/libindi/indigpsinterface.h
+include/libindi/indiguiderinterface.h
+include/libindi/indijson.hpp
+include/libindi/indilightboxinterface.h
+include/libindi/indilogger.h
+include/libindi/indimacros.h
+include/libindi/indiproperties.h
+include/libindi/indiproperty.h
+include/libindi/indipropertybasic.h
+include/libindi/indipropertyblob.h
+include/libindi/indipropertylight.h
+include/libindi/indipropertynumber.h
+include/libindi/indipropertyswitch.h
+include/libindi/indipropertytext.h
+include/libindi/indipropertyview.h
+include/libindi/indireceiver.h
+include/libindi/indirotator.h
+include/libindi/indirotatorinterface.h
+include/libindi/indisensorinterface.h
+include/libindi/indisinglethreadpool.h
+include/libindi/indispectrograph.h
+include/libindi/indistandardproperty.h
+include/libindi/inditelescope.h
+include/libindi/inditimer.h
+include/libindi/indiusbdevice.h
+include/libindi/indiutility.h
+include/libindi/indiversion.h
+include/libindi/indiweather.h
+include/libindi/indiweatherinterface.h
+include/libindi/indiwidgettraits.h
+include/libindi/indiwidgetview.h
+include/libindi/inicpp.h
+include/libindi/libastro.h
+include/libindi/lilxml.h
+include/libindi/mounts/lx200driver.h
+include/libindi/mounts/lx200telescope.h
+include/libindi/parentdevice.h
+include/libindi/pid.h
+include/libindi/sdfits.h
+include/libindi/sharedblob.h
+include/libindi/stream/ccvt.h
+include/libindi/stream/ccvt_types.h
+include/libindi/stream/encoder/encoderinterface.h
+include/libindi/stream/encoder/encodermanager.h
+include/libindi/stream/encoder/mjpegencoder.h
+include/libindi/stream/encoder/rawencoder.h
+include/libindi/stream/fpsmeter.h
+include/libindi/stream/gammalut16.h
+include/libindi/stream/jpegutils.h
+include/libindi/stream/recorder/recorderinterface.h
+include/libindi/stream/recorder/recordermanager.h
+include/libindi/stream/recorder/serrecorder.h
+include/libindi/stream/streammanager.h
+include/libindi/stream/uniquequeue.h
+lib/indi/MathPlugins/libindi_Nearest_MathPlugin.so
+lib/indi/MathPlugins/libindi_SVD_MathPlugin.so
+lib/libindiAlignmentClient.a
+lib/libindiAlignmentDriver.so
+lib/libindiAlignmentDriver.so.2
+lib/libindiAlignmentDriver.so.${PKGVERSION}
+lib/libindiclient.a
+lib/libindiclient.so
+lib/libindiclient.so.2
+lib/libindiclient.so.${PKGVERSION}
+lib/libindidriver.a
+lib/libindidriver.so
+lib/libindidriver.so.2
+lib/libindidriver.so.${PKGVERSION}
+lib/libindilx200.so
+lib/libindilx200.so.2
+lib/libindilx200.so.${PKGVERSION}
+lib/pkgconfig/libindi.pc
+share/indi/drivers.xml
+share/indi/indi_tcfs_sk.xml
+share/indi/shelyak_boards.json
Index: pkgsrc/misc/indi/buildlink3.mk
diff -u /dev/null pkgsrc/misc/indi/buildlink3.mk:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/buildlink3.mk      Fri May  3 11:17:14 2024
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+BUILDLINK_TREE+=       indi
+
+.if !defined(INDI_BUILDLINK3_MK)
+INDI_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.indi+=   indi>=2.0.7
+BUILDLINK_PKGSRCDIR.indi?=     ../../misc/indi
+
+.include "../../devel/cfitsio/buildlink3.mk"
+.include "../../geography/libnova/buildlink3.mk"
+.endif # INDI_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -indi
Index: pkgsrc/misc/indi/distinfo
diff -u /dev/null pkgsrc/misc/indi/distinfo:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/distinfo   Fri May  3 11:17:14 2024
@@ -0,0 +1,11 @@
+$NetBSD: distinfo,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+BLAKE2s (indi-2.0.7.tar.gz) = c65ea1384e77d74b06ec2c63761ea12a23d12c88e226c2685a77e8282d7fa76a
+SHA512 (indi-2.0.7.tar.gz) = 292c0a5b8f07b24c42ea9424be19012c97317206b837d8601ec4d771fa35c314bf00712509f8199ee3da193ea12f0c3e90036a49deece304dc256cdeba60810d
+Size (indi-2.0.7.tar.gz) = 2843758 bytes
+SHA1 (patch-libs_alignment_CMakeLists.txt) = c33eff42aa5aa7c264df4dda9f0ad728fb783252
+SHA1 (patch-libs_indicore_CMakeLists.txt) = 6dca6faa75570ef890f08d2c2273a52501f1dbb7
+SHA1 (patch-libs_indicore_indicom.c) = 1dcba7770f0021bdcd26eed2381e7397494ac29f
+SHA1 (patch-libs_indicore_indidevapi.h) = 31ccbc3c8a33767341e4eadef05ae56a4241aeb8
+SHA1 (patch-libs_indicore_sharedblob.c) = 716e28a3b283a729947d269b8a10eff5242de239
+SHA1 (patch-libs_sockets_tcpsocket.cpp) = dac402efc5c98f0b3f81f74f29e07a825dc5d042

Index: pkgsrc/misc/indi/patches/patch-libs_alignment_CMakeLists.txt
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_alignment_CMakeLists.txt:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_alignment_CMakeLists.txt        Fri May  3 11:17:14 2024
@@ -0,0 +1,20 @@
+$NetBSD: patch-libs_alignment_CMakeLists.txt,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Use CMAKE_DL_LIBS for libdl, which does not exist everywhere.
+
+--- libs/alignment/CMakeLists.txt.orig 2024-05-03 10:36:05.404763201 +0000
++++ libs/alignment/CMakeLists.txt
+@@ -32,11 +32,11 @@ add_library(AlignmentDriver SHARED ${Ali
+ set_target_properties(AlignmentDriver PROPERTIES COMPILE_FLAGS "-fPIC")
+ 
+ IF(APPLE)
+-    target_link_libraries(AlignmentDriver dl -L/usr/local/lib ${GSL_LIBRARIES})
++    target_link_libraries(AlignmentDriver ${CMAKE_DL_LIBS} -L/usr/local/lib ${GSL_LIBRARIES})
+ ELSE()
+     # Force linking all referenced libraries because of libgsl is not linked against cblas library on Linux
+     SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-as-needed")
+-    target_link_libraries(AlignmentDriver dl ${GSL_LIBRARIES}
++    target_link_libraries(AlignmentDriver ${CMAKE_DL_LIBS} ${GSL_LIBRARIES}
+         $<$<PLATFORM_ID:CYGWIN>:indidriver>
+     )
+ ENDIF()
Index: pkgsrc/misc/indi/patches/patch-libs_indicore_CMakeLists.txt
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_indicore_CMakeLists.txt:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_indicore_CMakeLists.txt Fri May  3 11:17:14 2024
@@ -0,0 +1,14 @@
+$NetBSD: patch-libs_indicore_CMakeLists.txt,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Link against librt for shm_*
+
+--- libs/indicore/CMakeLists.txt.orig  2024-05-03 10:33:03.807020284 +0000
++++ libs/indicore/CMakeLists.txt
+@@ -51,6 +51,7 @@ if(UNIX)
+     list(APPEND ${PROJECT_NAME}_SOURCES        
+         sharedblob_parse.cpp
+         shm_open_anon.c)
++    target_link_libraries(${PROJECT_NAME} rt)
+ endif()
+ 
+ target_compile_definitions(${PROJECT_NAME}
Index: pkgsrc/misc/indi/patches/patch-libs_indicore_indicom.c
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_indicore_indicom.c:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_indicore_indicom.c      Fri May  3 11:17:14 2024
@@ -0,0 +1,25 @@
+$NetBSD: patch-libs_indicore_indicom.c,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Always include ioctl.h for ioctl(), disable some code like for FreeBSD.
+
+--- libs/indicore/indicom.c.orig       2024-05-03 10:31:04.246317754 +0000
++++ libs/indicore/indicom.c
+@@ -50,9 +50,7 @@
+ #include <string.h>
+ #include <time.h>
+ 
+-#ifdef __linux__
+ #include <sys/ioctl.h>
+-#endif
+ 
+ #ifdef __APPLE__
+ #include <sys/param.h>
+@@ -793,7 +791,7 @@ int tty_connect(const char *device, int 
+     case 57600:  bps = B57600;  break;
+     case 115200: bps = B115200; break;
+     case 230400: bps = B230400; break;
+-#if !defined(__APPLE__) && !defined(__FreeBSD__)
++#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
+     case 460800: bps = B460800; break;
+     case 576000: bps = B576000; break;
+     case 921600: bps = B921600; break;
Index: pkgsrc/misc/indi/patches/patch-libs_indicore_indidevapi.h
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_indicore_indidevapi.h:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_indicore_indidevapi.h   Fri May  3 11:17:14 2024
@@ -0,0 +1,16 @@
+$NetBSD: patch-libs_indicore_indidevapi.h,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Always include stdarg.h for va_args.
+
+--- libs/indicore/indidevapi.h.orig    2024-05-03 10:30:01.998627645 +0000
++++ libs/indicore/indidevapi.h
+@@ -93,9 +93,7 @@
+  *
+  */
+ 
+-#if defined(_WIN32) || defined(__CYGWIN__)
+ #include <stdarg.h>
+-#endif
+ #include "indiapi.h"
+ #include "lilxml.h"
+ 
Index: pkgsrc/misc/indi/patches/patch-libs_indicore_sharedblob.c
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_indicore_sharedblob.c:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_indicore_sharedblob.c   Fri May  3 11:17:14 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-libs_indicore_sharedblob.c,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Check for symbol existence before using it.
+
+--- libs/indicore/sharedblob.c.orig    2024-05-03 10:31:58.021138213 +0000
++++ libs/indicore/sharedblob.c
+@@ -225,7 +225,7 @@ void * IDSharedBlobRealloc(void * ptr, s
+     int ret = ftruncate(sb->fd, reallocated);
+     if (ret == -1) return NULL;
+ 
+-#ifdef HAVE_MREMAP
++#ifdef MREMAP_MAYMOVE
+     void * remaped = mremap(sb->mapstart, sb->allocated, reallocated, MREMAP_MAYMOVE);
+     if (remaped == MAP_FAILED) return NULL;
+ 
Index: pkgsrc/misc/indi/patches/patch-libs_sockets_tcpsocket.cpp
diff -u /dev/null pkgsrc/misc/indi/patches/patch-libs_sockets_tcpsocket.cpp:1.1
--- /dev/null   Fri May  3 11:17:15 2024
+++ pkgsrc/misc/indi/patches/patch-libs_sockets_tcpsocket.cpp   Fri May  3 11:17:14 2024
@@ -0,0 +1,14 @@
+$NetBSD: patch-libs_sockets_tcpsocket.cpp,v 1.1 2024/05/03 11:17:14 wiz Exp $
+
+Add header for sockaddr_in definition.
+
+--- libs/sockets/tcpsocket.cpp.orig    2024-05-03 10:35:05.023675865 +0000
++++ libs/sockets/tcpsocket.cpp
+@@ -21,6 +21,7 @@
+ #include <errno.h>
+ #include <chrono>
+ #include <algorithm>
++#include <netinet/in.h>
+ 
+ // SocketAddress
+ const char *SocketAddress::unixDomainPrefix = "localhost:";



Home | Main Index | Thread Index | Old Index