File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ set -eu #Needed so CI fails when anything is wrong
44set -x
55
66sudo apt-get --quiet update
7- sudo apt-get install --yes --no-install-recommends devscripts equivs build-essential lintian clang
7+ sudo apt-get install --yes --no-install-recommends devscripts equivs build-essential lintian clang tcl
88debian/configure
99sudo apt-get --yes build-dep .
Original file line number Diff line number Diff line change @@ -152,6 +152,8 @@ KERNEL_DEPENDS_BUILD=libudev-dev
152152KERNEL_HEADERS=
153153KERNEL_VERSION=uspace
154154MODUTILS_DEPENDS=
155+ TCL_GET_DIR=$( echo ' puts [tcl::pkgconfig get scriptdir,runtime]' | tclsh)
156+ EMC2_TCL_DIR=" ${TCL_GET_DIR} /linuxcnc"
155157if false ; then
156158MAIN_PACKAGE_NAME=linuxcnc
157159OTHER_MAIN_PACKAGE_NAME=linuxcnc-uspace
@@ -177,6 +179,7 @@ sed \
177179 -e " s#@KERNEL_HEADERS@#$KERNEL_HEADERS #g" \
178180 -e " s#@KERNEL_VERSION@#$KERNEL_VERSION #g" \
179181 -e " s#@LIBREADLINE_DEV@#$LIBREADLINE_DEV #g" \
182+ -e " s#@EMC2_TCL_DIR@#$EMC2_TCL_DIR #g" \
180183 -e " s#@MAIN_PACKAGE_NAME@#$MAIN_PACKAGE_NAME #g" \
181184 -e " s#@MODULE_EXT@#$MODULE_EXT #g" \
182185 -e " s#@MODULE_PATH@#$MODULE_PATH #g" \
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ usr/bin/xyzbc-trt-gui
113113usr/lib/lib*.so.*
114114usr/lib/linuxcnc
115115usr/lib/python3
116- usr/lib/tcltk
116+ .@EMC2_TCL_DIR@
117117
118118usr/share/axis
119119usr/share/glade
Original file line number Diff line number Diff line change @@ -145,8 +145,8 @@ override_dh_compress:
145145override_dh_fixperms :
146146 dh_fixperms -X/linuxcnc_module_helper -X/rtapi_app
147147 # In case that only the indep packages are built
148- if [ -x " $( DESTDIR) /usr/lib/tcltk/linuxcnc /linuxcnc.tcl" ]; then \
149- chmod -x $(DESTDIR ) /usr/lib/tcltk/linuxcnc /linuxcnc.tcl; \
148+ if [ -x " $( DESTDIR) @EMC2_TCL_DIR@ /linuxcnc.tcl" ]; then \
149+ chmod -x $(DESTDIR ) @EMC2_TCL_DIR@ /linuxcnc.tcl; \
150150 fi
151151 # override_dh_python3: # not executed, so we attach it to fixperms
152152 DEB_HOST_ARCH=` dpkg-architecture -qDEB_HOST_ARCH` dh_python3
Original file line number Diff line number Diff line change @@ -4,3 +4,4 @@ gmoccapy/
44stepconf /
55pncconf /
66pyui /
7+ rs274 /options.py
Original file line number Diff line number Diff line change 1818
1919import nf , os
2020
21- # lib/tcltk/emc2 for installed emc
22- # tcl for run-in-place emc
23- for candidate in 'lib/tcltk/linuxcnc' , 'tcl' :
24- LINUXCNC_TCL = os .path .join (nf .PREFIX , candidate , 'linuxcnc.tcl' )
25- if os .path .exists (LINUXCNC_TCL ): break
21+ # System Tcl directory for installed emc
22+ # tcl for run-in-place emc
23+ rip_tcl_path = os .path .join (nf .PREFIX , 'tcl' , 'linuxcnc.tcl' )
24+ if os .path .exists (rip_tcl_path ):
25+ LINUXCNC_TCL = rip_tcl_path
26+ else :
27+ LINUXCNC_TCL = os .path .join ("@EMC2_TCL_DIR@" , "linuxcnc.tcl" )
2628
2729options = '''
2830. configure -bg #d9d9d9
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ LANGUAGES = @LANGUAGES@
6666docsdir = ${prefix}/share/doc/linuxcnc
6767sampleconfsdir = ${prefix}/share/doc/linuxcnc/examples/sample-configs
6868ncfilesdir = ${prefix}/share/linuxcnc/ncfiles
69- tcldir = ${prefix}/lib/tcltk/linuxcnc
69+ tcldir = @EMC2_TCL_DIR@
7070
7171
7272# /Standard configure directories
Original file line number Diff line number Diff line change @@ -726,9 +726,10 @@ else
726726 EMC2_SCRIPT=$EMC2_BIN_DIR/linuxcnc
727727 EMC2_SUFFIX=""
728728 EMC2_ICON=linuxcncicon
729- EMC2_TCL_DIR=${prefix}/lib/tcltk/linuxcnc
730- EMC2_TCL_LIB_DIR=${prefix}/lib/tcltk/linuxcnc
731- EMC2_LANG_DIR=${prefix}/lib/tcltk/linuxcnc/msgs
729+ TCL_GET_DIR=$(echo 'puts [ [ tcl::pkgconfig get scriptdir,runtime] ] ' | tclsh)
730+ EMC2_TCL_DIR="${TCL_GET_DIR}/linuxcnc"
731+ EMC2_TCL_LIB_DIR="${EMC2_TCL_DIR}"
732+ EMC2_LANG_DIR="${EMC2_TCL_DIR}/msgs"
732733 EMC2_PO_DIR=${prefix}/share/locale
733734 EMC2_HELP_DIR=${prefix}/share/doc/linuxcnc
734735 case $MODULE_DIR in
@@ -1758,6 +1759,7 @@ AC_CONFIG_FILES(Makefile.inc)
17581759AC_CONFIG_FILES ( Makefile.modinc )
17591760AC_CONFIG_FILES ( ../tcl/linuxcnc.tcl )
17601761AC_CONFIG_FILES ( ../lib/python/nf.py )
1762+ AC_CONFIG_FILES ( ../lib/python/rs274/options.py )
17611763AC_CONFIG_FILES ( [ ../scripts/linuxcncmkdesktop] , [ chmod +x ../scripts/linuxcncmkdesktop] )
17621764AC_CONFIG_FILES ( ../share/applications/linuxcnc-latency.desktop )
17631765AC_CONFIG_FILES ( ../share/applications/linuxcnc-latency-histogram.desktop )
You can’t perform that action at this time.
0 commit comments