Source: libcleri Version: 0.12.1-1 Tags: patch User: [email protected] Usertags: ftcbfs
libcleri fails to cross build from source, because it uses the build architecture compiler. debian/rules does not pass cross tools to make and the makefile does not honour cross tools passed via the environment. Please consider applying the attached patch to fix both. Helmut
diff --minimal -Nru libcleri-0.12.1/debian/changelog libcleri-0.12.1/debian/changelog --- libcleri-0.12.1/debian/changelog 2020-05-16 21:42:47.000000000 +0200 +++ libcleri-0.12.1/debian/changelog 2020-05-17 12:14:38.000000000 +0200 @@ -1,3 +1,12 @@ +libcleri (0.12.1-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + cross.patch: Make gcc substitutable. + + -- Helmut Grohne <[email protected]> Sun, 17 May 2020 12:14:38 +0200 + libcleri (0.12.1-1) unstable; urgency=medium * Add new symbols diff --minimal -Nru libcleri-0.12.1/debian/patches/cross.patch libcleri-0.12.1/debian/patches/cross.patch --- libcleri-0.12.1/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ libcleri-0.12.1/debian/patches/cross.patch 2020-05-17 12:14:17.000000000 +0200 @@ -0,0 +1,21 @@ +--- libcleri-0.12.1.orig/Release/makefile ++++ libcleri-0.12.1/Release/makefile +@@ -33,7 +33,7 @@ + libcleri: $(OBJS) $(USER_OBJS) + @echo 'Building target: $@' + @echo 'Invoking: Cross GCC Linker' +- gcc -shared -Wl,-$(SO_NAME),$(FN).$(MAJOR) -o $(FN) $(OBJS) $(USER_OBJS) $(LIBS) $(LDFLAGS) ++ $(CC) -shared -Wl,-$(SO_NAME),$(FN).$(MAJOR) -o $(FN) $(OBJS) $(USER_OBJS) $(LIBS) $(LDFLAGS) + @chmod -x $(FN) + @echo 'Finished building target: $@' + @echo ' ' +--- libcleri-0.12.1.orig/Release/src/subdir.mk ++++ libcleri-0.12.1/Release/src/subdir.mk +@@ -77,6 +77,6 @@ + src/%.o: ../src/%.c + @echo 'Building file: $<' + @echo 'Invoking: Cross GCC Compiler' +- gcc -DNDEBUG -I../inc -O3 -Winline -Wall $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../inc -O3 -Winline -Wall $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -fPIC -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' diff --minimal -Nru libcleri-0.12.1/debian/patches/series libcleri-0.12.1/debian/patches/series --- libcleri-0.12.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ libcleri-0.12.1/debian/patches/series 2020-05-17 12:14:01.000000000 +0200 @@ -0,0 +1 @@ +cross.patch diff --minimal -Nru libcleri-0.12.1/debian/rules libcleri-0.12.1/debian/rules --- libcleri-0.12.1/debian/rules 2020-05-16 21:42:47.000000000 +0200 +++ libcleri-0.12.1/debian/rules 2020-05-17 12:14:37.000000000 +0200 @@ -12,7 +12,7 @@ dh $@ override_dh_auto_build-arch: - $(MAKE) --directory=Release all + dh_auto_build --sourcedirectory=Release -- all override_dh_auto_clean: $(MAKE) --directory=Release clean

