[Debian-med-packaging] Bug#972960: gjh-asl-json FTBFS on !amd64: hardcodes /usr/lib/x86_64-linux-gnu
Adrian Bunk
bunk at debian.org
Mon Oct 26 16:19:17 GMT 2020
Source: gjh-asl-json
Version: 0.0+git20180428.eb8720e-1
Severity: important
Tags: ftbfs
https://buildd.debian.org/status/package.php?p=gjh-asl-json&suite=sid
...
make[1]: *** No rule to make target '/usr/lib/x86_64-linux-gnu//libamplsolver.a', needed by 'bin/gjh_asl_json'. Stop.
make[1]: *** Waiting for unfinished jobs....
Root cause:
https://sources.debian.org/src/gjh-asl-json/0.0+git20180428.eb8720e-1/debian/patches/fix-makefile-lib.patch/#L13
Please try the updated patch, that even does shared linking.
-------------- next part --------------
Author: Andrei Rozanski
Last-Update: 2020-10-04 10:34:20 +0200
Description: fix Makefile link to libamplsolver.
--- a/Makefile
+++ b/Makefile
@@ -1,34 +1,29 @@
SRC=src
-TPL=Thirdparty
-
+INC_DIR = /usr/include/ampl-netlib-solvers/
PREFIX=.
+
BIN=$(PREFIX)/bin
# Override this to inject gcov flags "-coverage -O0"
# in travis CI script. E.g., $ make COVERAGE="-coverage -O0"
COVERAGE=-O3
-CINC=-I$(SRC) -I$(TPL)/solvers
-CFLAGS= -pipe -DASL_BUILD -fPIC -DPIC -Wall
-LDFLAGS=-ldl
+CINC=-I$(SRC) -I$(INC_DIR)
+CFLAGS+= -pipe -DASL_BUILD -fPIC -DPIC -Wall
+LDFLAGS+=-ldl
-all: $(TPL)/solvers/amplsolver.a \
- $(BIN)/gjh_asl_json
+all: $(BIN)/gjh_asl_json
$(BIN)/gjh_asl_json: $(SRC)/gjh_asl_json.o \
$(SRC)/AmplInterface.o \
- $(TPL)/solvers/amplsolver.a
+ -lamplsolver
@mkdir -p $(BIN)
$(CXX) $(COVERAGE) $(CFLAGS) $(CINC) $^ $(LDFLAGS) -o $@
%.o : %.cpp $(SRC)/AmplInterface.hpp
$(CXX) $(COVERAGE) $(CFLAGS) $(CINC) -c $< -o $@
-$(TPL)/solvers/amplsolver.a :
- make -C $(TPL)/solvers/;
-
clean:
rm -f $(BIN)/gjh_asl_json;
rm -f $(SRC)/*.o
rm -f $(SRC)/*~
- make clean -C $(TPL)/solvers;
More information about the Debian-med-packaging
mailing list