On 22.09.2017 16:04, Michael Olbrich wrote:
On Fri, Sep 22, 2017 at 02:06:58PM +0200, Juergen Borleis wrote:
When you install to "$(PTXDIST_SYSROOT_HOST)/bin" and
"$(PTXDIST_SYSROOT_HOST)/lib" the cross-ppdc variant can be reduced to:

        ( \
                echo '#!/bin/sh'; \
                echo $(PTXDIST_SYSROOT_HOST)/bin/ppdc -I 
$(PTXDIST_SYSROOT_HOST)/share/cups/ppdc "$$@"'; \
        ) > $(CROSS_PPDC)

This realy depends on what '-I' means and the difference between the
content of $(SYSROOT)/usr/share/cups/ppdc and
$(PTXDIST_SYSROOT_HOST)/share/cups/ppdc.

ppdc is used at build-time by packages that create extra cups filters,
right? If there are differences, then the original command-line is correct.
In that case host-cups must depend on cup and the package using ppdc must
depend on host-cups.
Or, if such packages depend on cups anyways (maybe link to something?) you
could create an options CUPS_PPDC that trigger a dependency on host-cups
and create the cross ppdc wrapper in cups.make.

That was also my first thought. But a diff -r on $(PTXDIST_SYSROOT_HOST)/share/cups/ppdc and $(PTXDIST_SYSROOT_TARGET)/usr/share/cups/ppdc shows that they don't differ. So I think we can spare a dependency on target-CUPS if only the host ppdc is needed.

 - Roland


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to