Package: torch3
Version: 3.1-2
Severity: normal

Hi,

torch3 currently fails to build on Debian GNU/Hurd because it is missing a GNU specific Makefile options file. Attached is a patch to fix that (which is nothing more than copying Makefile_options_Linux to Makefile_options_GNU).

Thank you,

Barry deFreese


diff -u torch3-3.1/debian/changelog torch3-3.1/debian/changelog
--- torch3-3.1/debian/changelog
+++ torch3-3.1/debian/changelog
@@ -1,3 +1,10 @@
+torch3 (3.1-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Test build on GNU/Hurd.
+
+ -- root <r...@goober>  Mon, 22 Jun 2009 11:45:26 -0400
+
 torch3 (3.1-2) unstable; urgency=low
 
   * updated confusing changelog entry (closes: #319139)
only in patch2:
unchanged:
--- torch3-3.1.orig/Makefile_options_GNU
+++ torch3-3.1/Makefile_options_GNU
@@ -0,0 +1,73 @@
+#
+# What you have to check...
+#
+
+# Packages you want to use
+PACKAGES = convolutions datasets decoder distributions gradients kernels 
matrix nonparametrics speech
+#PACKAGES =
+
+# Magik key if you have several makefile
+# for the same platform
+MAGIK_KEY = 
+
+# Compiler, linker and archiver
+CC = g++
+CXX = g++
+LD = $(CC)
+AR = ar -rus
+
+# Command for creating dependencies
+DEP = $(CC) -MM
+
+# Your librairies
+# (for example "-lm", but not needed on most systems...)
+MYLIBS = 
+
+# Your includes
+# (for example -I/usr/local/special)
+MYINCS = 
+
+# optimize mode
+DEBUG = OPT
+# debug mode
+#DEBUG = DBG
+
+# double version
+#FLOATING = DOUBLE
+# floating version
+FLOATING = FLOAT
+
+# Debug double mode
+CFLAGS_DBG_DOUBLE = -g -Wall -DUSE_DOUBLE -DDEBUG
+
+# Debug float mode
+CFLAGS_DBG_FLOAT = -g -Wall -DDEBUG
+
+# Optimized double mode
+#CFLAGS_OPT_DOUBLE = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 
-malign-double -DUSE_DOUBLE
+CFLAGS_OPT_DOUBLE = -Wall -O2 -ffast-math -DUSE_DOUBLE
+
+# Optimized float mode
+#CFLAGS_OPT_FLOAT = -Wall -O2 -ffast-math -mcpu=i686 -march=i686 -malign-double
+CFLAGS_OPT_FLOAT = -Wall -O2 -ffast-math
+
+#
+#
+# Variables that you may find useful inside your Makefile
+# Do not touch.
+#
+#
+
+MODE = $(DEBUG)_$(FLOATING)
+VERSION_KEY = $(MAGIK_KEY)$(OS)_$(MODE)
+#LIBS_DIR = $(TORCHDIR)/lib/$(VERSION_KEY)
+# Modified by KA for Debian
+LIBS_DIR = $(TORCHDIR)/lib/
+#OBJS_DIR = $(TORCHDIR)/objs/$(VERSION_KEY)
+# Modified by KA for Debian
+OBJS_DIR = $(TORCHDIR)/objs/
+LIBTORCH = $(LIBS_DIR)/libtorch.a
+LIBSOTORCH = $(LIBS_DIR)/libtorch.so.3.0.0
+LIBS = -L$(TORCHDIR)/lib/ $(LIBTORCH) $(MYLIBS)
+INCS := -I$(TORCHDIR)/core $(MYINCS)
+INCS += $(foreach f,$(PACKAGES),-I$(TORCHDIR)/$(f))

Reply via email to