- Subject: [slang-devel] [PATCH] [tess] Allow compilation with make's option --shuffle=reverse
- From: Rafael Laboissière <rafael@xxxxxxxxxx>
- Date: Sat, 17 May 2025 22:14:24 +0200
Dear developers,
An issue regarding the building of the Debian package for tess
has been recently reported: https://bugs.debian.org/1105633
In sum, the package fails to build with make --shuffle=reverse.
The patch attached to this message fixes the problem.
Best,
Rafael
Description: Allow building with make's option --shuffle=reverse
Author: Rafael Laboissière <rafael@xxxxxxxxxx>
Bug-Debian: https://bugs.debian.org/1105633
Forwarded: no
Last-Update: 2025-05-17
--- tess-0.3.0.orig/admin/Makefile.in
+++ tess-0.3.0/admin/Makefile.in
@@ -43,6 +43,8 @@ MKINSDIR = admin/mkinsdir.sh
# Installation Rules
#---------------------------------------------------------------------------
+install-directories-stamp: install_dirs
+ touch install-directories-stamp
install_dirs:
$(MKINSDIR) $(BIN_DIR)
$(MKINSDIR) $(DEST_SL_FILES_INSTALL_DIR)
@@ -51,36 +53,36 @@ install_dirs:
$(MKINSDIR) $(MAN_DIR)/$$m ; \
done
-install_docs:
+install_docs: install-directories-stamp
@for F in $(DOCS); do \
echo $(INSTALL_DATA) $$F $(DEST_DOC_INSTALL_DIR); \
$(INSTALL_DATA) $$F $(DEST_DOC_INSTALL_DIR); \
if [ $$? -ne 0 ] ; then false; fi ;\
done
-install_slfiles:
+install_slfiles: install-directories-stamp
@for X in $(SL_FILES); \
do \
echo $(INSTALL_DATA) $$X $(DEST_SL_FILES_INSTALL_DIR); \
$(INSTALL_DATA) $$X $(DEST_SL_FILES_INSTALL_DIR); \
if [ "$$?" != "0" ]; then \
exit 1; \
fi; \
done
-install_manpages:
+install_manpages: install-directories-stamp
for m in $(MAN_PAGES) ; do \
$(INSTALL_DATA) man/$$m $(MAN_DIR)/$$m ; \
done
-install: all install_dirs install_slfiles install_manpages install_docs
+install: all install_slfiles install_manpages install_docs
$(INSTALL) tessrun $(BIN_DIR)/
uninstall:
@for X in $(SL_FILES); do \
echo $(RM) $(DEST_SL_FILES_INSTALL_DIR)/$$X ; \
$(RM) $(DEST_SL_FILES_INSTALL_DIR)/$$X; \
if [ "$$?" != "0" ]; then \
exit 1; \
fi; \
@@ -91,7 +93,7 @@ uninstall:
$(RM) $(BIN_DIR)/tessrun
clean:
- -$(RM) -f $(MODULES) *~ \#* *.o
+ -$(RM) -f $(MODULES) *~ \#* *.o install-directories-stamp
(cd doc/tm ; $(MAKE) clean)
(cd examples ; $(MAKE) clean)
--- tess-0.3.0.orig/admin/configure.in
+++ tess-0.3.0/admin/configure.in
@@ -1,6 +1,6 @@
dnl -*- sh -*-
-AC_INIT([tess],[dummy])
+AC_INIT(tess,dummy)
AC_CONFIG_SRCDIR([tess.sl])
MN_PACKAGE_INIT
--- tess-0.3.0.orig/tessrun
+++ tess-0.3.0/tessrun
@@ -14,10 +14,10 @@
slsh_local() # {{{ Allows TESS to be exercised locally, before install
{
slsh - <<EOT
-% prepend_to_slang_load_path("..");
-% prepend_to_slang_load_path(".");
-% set_import_module_path("..");
-% set_import_module_path(".");
+prepend_to_slang_load_path("..");
+prepend_to_slang_load_path(".");
+set_import_module_path("..");
+set_import_module_path(".");
putenv( sprintf("TESS_COMPONENT=%S",path_sans_extname(path_basename("$1"))));
evalfile("$1");
EOT
[2025 date index]
[2025 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]