Hi! The attached patch fixes this issue. Please apply and reupload such that we can get PT-SCOTCH working again in Debian.
Thank you very much! Best regards, Johannes
diff --git a/debian/Makefile.inc b/debian/Makefile.inc index 45dfab8..dbdc97c 100644 --- a/debian/Makefile.inc +++ b/debian/Makefile.inc @@ -9,7 +9,7 @@ CAT = cat CCS = gcc -I/usr/include/mpi -I/usr/include/lam CCP = mpicc CCD = gcc -I/usr/include/mpi -I/usr/include/lam -CFLAGS = -O3 -I. -fPIC -I/usr/include/mpi -I/usr/include/lam -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME +CFLAGS = -O3 -I. -fPIC -I/usr/include/mpi -I/usr/include/lam -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME LDFLAGS = -lz -lm -lrt CP = cp LEX = flex diff --git a/debian/patches/shared-libs.patch b/debian/patches/shared-libs.patch index c0631c0..48a70b3 100644 --- a/debian/patches/shared-libs.patch +++ b/debian/patches/shared-libs.patch @@ -30,19 +30,17 @@ Index: scotch/src/libscotch/Makefile ./dummysizes$(EXE) libraryf.h scotchf.h -libptscotch$(LIB) : $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) -- $(AR) $(ARFLAGS) $(@) $(?) -+libptscotch$(LIB) : $(LIBPTSCOTCHDEPS) libptscotcherr$(LIB) libscotch$(LIB) -+ $(CC) -shared -Wl,-soname,libptscotch-5.1.so $(LIBPTSCOTCHDEPS) -L. -lptscotcherr -lscotch -lz -lpthread -lm -lrt -o libptscotch-5.1.so ++libptscotch$(LIB) : $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) libptscotcherr$(LIB) ++ $(CC) -shared -Wl,-soname,libptscotch-5.1.so $(LIBPTSCOTCHDEPS) $(LIBSCOTCHDEPS) -L. -lptscotcherr -lpthread $(LDFLAGS) -o libptscotch-5.1.so + ln -s libptscotch-5.1.so libptscotch.so -+ $(AR) $(ARFLAGS) $(@) $(LIBPTSCOTCHDEPS) + $(AR) $(ARFLAGS) $(@) $(?) -$(RANLIB) $(@) -libscotch$(LIB) : $(LIBSCOTCHDEPS) -- $(AR) $(ARFLAGS) $(@) $(?) -+libscotch$(LIB) : $(LIBSCOTCHDEPS) libscotcherr$(LIB) -+ $(CC) -shared -Wl,-soname,libscotch-5.1.so $(LIBSCOTCHDEPS) -L. -lscotcherr -lz -lpthread -lm -lrt -o libscotch-5.1.so ++libscotch$(LIB) : $(LIBSCOTCHDEPS) libscotcherr$(LIB) ++ $(CC) -shared -Wl,-soname,libscotch-5.1.so $(LIBSCOTCHDEPS) -L. -lscotcherr -lpthread $(LDFLAGS) -o libscotch-5.1.so + ln -s libscotch-5.1.so libscotch.so -+ $(AR) $(ARFLAGS) $(@) $(LIBSCOTCHDEPS) + $(AR) $(ARFLAGS) $(@) $(?) -$(RANLIB) $(@) libptscotcherr$(LIB) : library_error$(OBJ) diff --git a/debian/rules b/debian/rules index 37ba88f..6dd9247 100755 --- a/debian/rules +++ b/debian/rules @@ -8,7 +8,7 @@ include /usr/share/cdbs/1/class/makefile.mk DEB_SRCDIR = $(CURDIR)/src CCP=mpicc -CFLAGS=-g -O3 -I. -fPIC -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_PTHREAD -DSCOTCH_RENAME +CFLAGS=-g -O3 -I. -fPIC -Drestrict=__restrict -DCOMMON_FILE_COMPRESS_GZ -DCOMMON_PTHREAD -DCOMMON_RANDOM_FIXED_SEED -DSCOTCH_RENAME LDFLAGS=-lz -lm -lrt DEB_DBG_PACKAGE_scotch = scotch-dbg