[med-svn] [Git][med-team/fis-gtm][master] The latest upstream version is 7.2-001 but there are missing files and thus...

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Sep 2 13:05:31 BST 2026



Andreas Tille pushed to branch master at Debian Med / fis-gtm


Commits:
7fc8076c by Andreas Tille at 2026-09-02T14:03:39+02:00
The latest upstream version is 7.2-001 but there are missing files and thus not all binaries are provided.  To keep the changes to latest version low here version 7.2.-000 is packaged but I've commiting the findings for 7.2-001 here anyway and it seems better visible to not to do this in a branch but in an additional file.

- - - - -


1 changed file:

- + debian/rules_7.2-001


Changes:

=====================================
debian/rules_7.2-001
=====================================
@@ -0,0 +1,135 @@
+#!/usr/bin/make -f
+#
+# FIXME!
+# In V7.2-001 some files are missing which even seems to be planed in CMakeLists.txt which controls
+#
+# file(GLOB gtcm_c_sources
+#   ${GTM_SOURCE_DIR}/sr_port_cm/*.c
+#   ${GTM_SOURCE_DIR}/sr_unix_cm/*.c
+#   ${GTM_SOURCE_DIR}/sr_unix_gnp/*.c
+#   )
+# if(gtcm_c_sources)
+#   set(GTCM ON)
+# else()
+#   set(GTCM OFF)
+# endif()
+#
+#so if
+#
+# ls sr_port_cm/*.c sr_unix_cm/*.c sr_unix_gnp/*.c
+#
+#is empty some binaries will not be created.  I have no idea what effect this has at the user
+#site but some chmod commands here in these rules file need to be commented out (see below)
+
+# -*- makefile -*-
+# debian/rules for fis-gtm
+
+# Uncomment this to turn on verbose mode.
+# export DH_VERBOSE=1
+
+include /usr/share/dpkg/default.mk
+
+MARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
+ARCH := $(shell dpkg-architecture -qDEB_HOST_GNU_CPU)
+UAPIVER := $(shell echo $(DEB_VERSION_UPSTREAM) | sed -e 's,+.*,,')
+UAPIDIR := V$(UAPIVER)_$(ARCH)
+BINPKG := $(shell awk '/Package:.*[0-9]/{print $$2;}' debian/control)
+GTM_INSTALL_DIR := lib/$(MARCH)/fis-gtm/$(UAPIDIR)
+LOCAL_GTM_INSTALL_DIR := $(CURDIR)/debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGTM_INSTALL_DIR=$(GTM_INSTALL_DIR) -DGTCM=on -DCMAKE_BUILD_TYPE=Release
+
+override_dh_auto_install:
+	#echo "umask is: "
+	#umask
+	dh_auto_install --destdir=debian/$(BINPKG)-stage1 $@
+	cd debian/$(BINPKG)-stage1/usr/$(GTM_INSTALL_DIR) && \
+		gtm_destdir=$(CURDIR)/debian/$(BINPKG) \
+		gtmcompile="-embed_source" \
+		./gtminstall --utf8 --user root --group root --verbose \
+			--noprompt-for-sys-cfg --distrib . \
+			--installdir $(LOCAL_GTM_INSTALL_DIR)
+	#@echo "I: Removing redundant license file. One is already available."
+	find $(LOCAL_GTM_INSTALL_DIR) -name COPYING -delete
+	# remove empty directories
+	find $(LOCAL_GTM_INSTALL_DIR) -type d -empty -delete
+	# fix permissions of directories
+	find $(LOCAL_GTM_INSTALL_DIR) -type d -exec chmod u+x \{\} \;
+	# move some binaries from stage1 to $(BINPKG)
+	ls -l debian/$(BINPKG)-stage1/usr/$(GTM_INSTALL_DIR)/gtcm_* || true
+	echo "FIXME: This does not work in V7.2-001: mv debian/$(BINPKG)-stage1/usr/$(GTM_INSTALL_DIR)/gtcm_* debian/$(BINPKG)/usr/$(GTM_INSTALL_DIR)"
+
+override_dh_fixperms:
+	#echo "umask is: "
+	#umask
+	dh_fixperms
+	#echo "overriding dh_fixperms"
+	#echo "I: Fixing up permissions for removed write rights -- we aren't done yet!"
+	chmod +w -R $(LOCAL_GTM_INSTALL_DIR)
+	chmod +w -R $(LOCAL_GTM_INSTALL_DIR)/utf8
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/utf8
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/plugin
+	#echo "I: Fixing up permissions for setuid rights -- we aren't done yet!"
+	chmod 4755 $(LOCAL_GTM_INSTALL_DIR)/gtmsecshr
+	chmod 0500 $(LOCAL_GTM_INSTALL_DIR)/gtmsecshrdir
+	chmod 4500 $(LOCAL_GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr
+	#echo "I: changing permissions to 644 for files that will be sourced"
+	chmod 0644 $(LOCAL_GTM_INSTALL_DIR)/gtmprofile
+	chmod 0644 $(LOCAL_GTM_INSTALL_DIR)/gtmprofile_preV54000
+	# chmod 0644 $(LOCAL_GTM_INSTALL_DIR)/gtcm_slist - missing in V7.2-001
+	chmod 0644 $(LOCAL_GTM_INSTALL_DIR)/gtmcshrc
+	#echo "I: Fixing executable permissions"
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/dse
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_gnp_server - missing in V7.2-001
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_pkdisp - missing in V7.2-001
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_play - missing in V7.2-001
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_run - missing in V7.2-001
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_server - missing in V7.2-001
+	# chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtcm_shmclean - missing in V7.2-001
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtm
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtmbase
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtmstart
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/gtmstop
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/lke
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/mumps
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/mupip
+	chmod 0755 $(LOCAL_GTM_INSTALL_DIR)/plugin/gtmcrypt/*.sh
+
+	#echo "I: Final permissions after dh_fixperms"
+	#ls -l $(LOCAL_GTM_INSTALL_DIR)
+
+# yoh: although it might sound to remove write permissions for the
+# deployed materials, as far as I see it, it is useless, since the
+# user (root) would always be able to revert them to become writable.
+
+# Because 'the' binary package name will change, let's just generate
+# override files
+# The override is needed according to upstream for GTM to generate executable 'call-in's
+override_dh_lintian:
+	echo "$(BINPKG) binary: shared-lib-without-dependency-information [usr/$(GTM_INSTALL_DIR)/libgtmutil.so]" >> debian/$(BINPKG).lintian-overrides
+	echo "# The following permissions are really set intentionally in override_dh_fixpermissions" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): elevated-privileges 4500 root/root [usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): elevated-privileges 4500 root/root [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): executable-is-not-world-readable 4500 [usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): executable-is-not-world-readable 4500 [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): elevated-privileges 4755 root/root [usr/$(GTM_INSTALL_DIR)/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): elevated-privileges 4755 root/root [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): non-standard-dir-perm 0500 != 0755 [usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): non-standard-setuid-executable-perm 4500 [usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): non-standard-setuid-executable-perm 4500 [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): package-contains-hardlink pointing to: usr/$(GTM_INSTALL_DIR)/gtmsecshr [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): package-contains-hardlink pointing to: usr/$(GTM_INSTALL_DIR)/gtmsecshrdir/gtmsecshr [usr/$(GTM_INSTALL_DIR)/utf8/gtmsecshrdir/gtmsecshr]" >> debian/$(BINPKG).lintian-overrides
+	echo "$(BINPKG): shared-library-lacks-prerequisites [usr/$(GTM_INSTALL_DIR)/utf8/libgtmutil.so]" >> debian/$(BINPKG).lintian-overrides
+
+	dh_lintian
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf debian/$(BINPKG)-stage1
+	rm -f debian/fis-gtm.links debian/fis-gtm-$(DEB_VERSION_UPSTREAM).lintian-overrides



View it on GitLab: https://salsa.debian.org/med-team/fis-gtm/-/commit/7fc8076cc9ad0f86d0f388b5f74def233f97e4b7

-- 
View it on GitLab: https://salsa.debian.org/med-team/fis-gtm/-/commit/7fc8076cc9ad0f86d0f388b5f74def233f97e4b7
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20260902/33bbe391/attachment-0001.htm>


More information about the debian-med-commit mailing list