[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#905734: Unable to backport package hplip on stretch : /usr/bin/ld: cannot find -lhpipp



On Wed, Sep 12, 2018 at 08:28:12PM +0200, Uwe Kleine-König wrote:
> On Wed, Aug 08, 2018 at 09:06:24PM +0200, Nicolas DEFFAYET wrote:
> > Package: hplip
> > Severity: normal
> > 
> > Unable to backport package hplip on stretch using newer version from
> > unstable or experimental: /usr/bin/ld: cannot find -lhpipp
> 
> The same happens when I try building hplip in a stable chroot. When not
> building in parallel it builds fine though.
> 
> libhpipp is built in the same source package. My guess is it's a
> dependency problem that is fixed by newer autotools as building in
> unstable works fine for me.

Hi,

Just adding some info for possible stretch backports of hplip
3.17.10+repack0-7, not intended for sid/testing builds or for the official
package.

I have recently built a personal stretch hplip backport of
3.17.10+repack0-7, and had another autotools related issue. When using a
pbuilder stretch chroot, Makefile.in was not properly regenerated after
patched Makefile.am. I am attaching the changes I introduced manually in
Makefile.in to make build succeed, in case they are useful for personal
backports.

I also needed to disable parallel build (lowering debhelper debian/compat
to 9 did the trick).

Using a pbuilder sid chroot the official sid package builds properly without
none of the changes above, so there is nothing wrong with it.

Regards,

-- 
Agustin
Author: Agustin Martin Domingo <agmartin@debian.org>
Date: 15 Oct 2018
Subject: Force propagation of Makefile.am changes to Makefile.in

Seems that in pbuilder strech chroots autotools are not properly
regenerating Makefile.in with Makefile.am Debian changes in other
patches.

This patch just include those changes manually, so hplip
3.17.10+repack0-7 can be backported to stretch.

--- a/Makefile.in
+++ b/Makefile.in
@@ -438,7 +438,6 @@
 	prnt/hpcups/Mode10.cpp prnt/hpcups/Mode10.h \
 	prnt/hpcups/ModeDeltaPlus.cpp prnt/hpcups/ModeDeltaPlus.h \
 	prnt/hpcups/ModeJbig.cpp prnt/hpcups/ModeJbig.h \
-	prnt/hpcups/ErnieFilter.cpp prnt/hpcups/ErnieFilter.h \
 	prnt/hpcups/EncapsulatorFactory.cpp \
 	prnt/hpcups/EncapsulatorFactory.h prnt/hpcups/Encapsulator.cpp \
 	prnt/hpcups/Encapsulator.h prnt/hpcups/Pcl3.cpp \
@@ -492,7 +491,6 @@
 @HPCUPS_INSTALL_TRUE@	hpcups-Mode10.$(OBJEXT) \
 @HPCUPS_INSTALL_TRUE@	hpcups-ModeDeltaPlus.$(OBJEXT) \
 @HPCUPS_INSTALL_TRUE@	hpcups-ModeJbig.$(OBJEXT) \
-@HPCUPS_INSTALL_TRUE@	hpcups-ErnieFilter.$(OBJEXT) \
 @HPCUPS_INSTALL_TRUE@	hpcups-EncapsulatorFactory.$(OBJEXT) \
 @HPCUPS_INSTALL_TRUE@	hpcups-Encapsulator.$(OBJEXT) \
 @HPCUPS_INSTALL_TRUE@	hpcups-Pcl3.$(OBJEXT) \
@@ -586,7 +584,7 @@
 	printsettings.py query.py pkservice.py wificonfig.py \
 	diagnose_plugin.py uninstall.py upgrade.py \
 	config_usb_printer.py diagnose_queues.py logcapture.py \
-	doctor.py
+	doctor.py check-plugin.py
 am__dist_fin_SCRIPTS_DIST = prnt/filters/hpps
 am__dist_hpfax_SCRIPTS_DIST = fax/backend/hpfax.py
 am__dist_hplip_SCRIPTS_DIST = hpssd.py __init__.py hpdio.py
@@ -4962,7 +4960,7 @@
 @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@dist_cmd_SCRIPTS = align.py info.py print.py toolbox.py clean.py colorcal.py unload.py testpage.py makeuri.py check.py fab.py levels.py \
 @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@	sendfax.py setup.py makecopies.py probe.py timedate.py firmware.py scan.py systray.py plugin.py linefeedcal.py pqdiag.py \
 @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@	faxsetup.py devicesettings.py printsettings.py query.py pkservice.py wificonfig.py diagnose_plugin.py uninstall.py \
-@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@	upgrade.py config_usb_printer.py diagnose_queues.py logcapture.py doctor.py
+@FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@	upgrade.py config_usb_printer.py diagnose_queues.py logcapture.py doctor.py check-plugin.py
 
 @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@homedir = $(hplipdir)
 @FULL_BUILD_TRUE@@HPLIP_BUILD_TRUE@dist_home_DATA = check-plugin.py \
@@ -5235,7 +5233,7 @@
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/Mode2.cpp prnt/hpcups/Mode2.h prnt/hpcups/Mode3.cpp prnt/hpcups/Mode3.h \
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/Mode9.cpp prnt/hpcups/Mode9.h prnt/hpcups/Mode10.cpp prnt/hpcups/Mode10.h \
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/ModeDeltaPlus.cpp prnt/hpcups/ModeDeltaPlus.h prnt/hpcups/ModeJbig.cpp prnt/hpcups/ModeJbig.h \
-@HPCUPS_INSTALL_TRUE@	prnt/hpcups/ErnieFilter.cpp prnt/hpcups/ErnieFilter.h prnt/hpcups/EncapsulatorFactory.cpp prnt/hpcups/EncapsulatorFactory.h \
+@HPCUPS_INSTALL_TRUE@	prnt/hpcups/EncapsulatorFactory.cpp prnt/hpcups/EncapsulatorFactory.h \
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/Encapsulator.cpp prnt/hpcups/Encapsulator.h prnt/hpcups/Pcl3.cpp prnt/hpcups/Pcl3.h \
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/Pcl3Gui.cpp prnt/hpcups/Pcl3Gui.h prnt/hpcups/Pcl3Gui2.cpp prnt/hpcups/Pcl3Gui2.h \
 @HPCUPS_INSTALL_TRUE@	prnt/hpcups/LJMono.cpp prnt/hpcups/LJMono.h prnt/hpcups/LJColor.cpp prnt/hpcups/LJColor.h \
@@ -6096,7 +6094,6 @@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-Compressor.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-Encapsulator.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-EncapsulatorFactory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-ErnieFilter.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-HPCupsFilter.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-Halftoner.Po@am__quote@
 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hpcups-Hbpl1.Po@am__quote@
@@ -7566,20 +7563,6 @@
 @AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
 @am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -c -o hpcups-ModeJbig.obj `if test -f 'prnt/hpcups/ModeJbig.cpp'; then $(CYGPATH_W) 'prnt/hpcups/ModeJbig.cpp'; else $(CYGPATH_W) '$(srcdir)/prnt/hpcups/ModeJbig.cpp'; fi`
 
-hpcups-ErnieFilter.o: prnt/hpcups/ErnieFilter.cpp
-@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -MT hpcups-ErnieFilter.o -MD -MP -MF $(DEPDIR)/hpcups-ErnieFilter.Tpo -c -o hpcups-ErnieFilter.o `test -f 'prnt/hpcups/ErnieFilter.cpp' || echo '$(srcdir)/'`prnt/hpcups/ErnieFilter.cpp
-@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/hpcups-ErnieFilter.Tpo $(DEPDIR)/hpcups-ErnieFilter.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='prnt/hpcups/ErnieFilter.cpp' object='hpcups-ErnieFilter.o' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -c -o hpcups-ErnieFilter.o `test -f 'prnt/hpcups/ErnieFilter.cpp' || echo '$(srcdir)/'`prnt/hpcups/ErnieFilter.cpp
-
-hpcups-ErnieFilter.obj: prnt/hpcups/ErnieFilter.cpp
-@am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -MT hpcups-ErnieFilter.obj -MD -MP -MF $(DEPDIR)/hpcups-ErnieFilter.Tpo -c -o hpcups-ErnieFilter.obj `if test -f 'prnt/hpcups/ErnieFilter.cpp'; then $(CYGPATH_W) 'prnt/hpcups/ErnieFilter.cpp'; else $(CYGPATH_W) '$(srcdir)/prnt/hpcups/ErnieFilter.cpp'; fi`
-@am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/hpcups-ErnieFilter.Tpo $(DEPDIR)/hpcups-ErnieFilter.Po
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	source='prnt/hpcups/ErnieFilter.cpp' object='hpcups-ErnieFilter.obj' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCXX_FALSE@	DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCXX_FALSE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -c -o hpcups-ErnieFilter.obj `if test -f 'prnt/hpcups/ErnieFilter.cpp'; then $(CYGPATH_W) 'prnt/hpcups/ErnieFilter.cpp'; else $(CYGPATH_W) '$(srcdir)/prnt/hpcups/ErnieFilter.cpp'; fi`
-
 hpcups-EncapsulatorFactory.o: prnt/hpcups/EncapsulatorFactory.cpp
 @am__fastdepCXX_TRUE@	$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hpcups_CXXFLAGS) $(CXXFLAGS) -MT hpcups-EncapsulatorFactory.o -MD -MP -MF $(DEPDIR)/hpcups-EncapsulatorFactory.Tpo -c -o hpcups-EncapsulatorFactory.o `test -f 'prnt/hpcups/EncapsulatorFactory.cpp' || echo '$(srcdir)/'`prnt/hpcups/EncapsulatorFactory.cpp
 @am__fastdepCXX_TRUE@	$(am__mv) $(DEPDIR)/hpcups-EncapsulatorFactory.Tpo $(DEPDIR)/hpcups-EncapsulatorFactory.Po

Reply to: