package/cups-filters: Add new package cups-filters 1.8.1
PATCH v5 1/1 package/cups-filters: Add new package cups-filters 1.8.1
---
V4 -> V5
Move comment in Config.in for better indentation
Update cups-filters version to 1.8.1
Config.in.legacy | 1 + package/Config.in | 1 + package/cups-filters/Config.in | 41 ++++++++++++++++++++++++ package/cups-filters/cups-filters.hash | 2 ++ package/cups-filters/cups-filters.mk | 57 ++++++++++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 package/cups-filters/Config.in create mode 100644 package/cups-filters/cups-filters.hash create mode 100644 package/cups-filters/cups-filters.mk
Config.in.legacy +1 -0
@@ -147,6 +147,7 @@ comment "Legacy options removed in 2016.02" config BR2_PACKAGE_CUPS_PDFTOPS bool "Pdftops support has been removed from Cups" + select BR2_PACKAGE_CUPS_FILTERS_PDFTOPS select BR2_LEGACY help Pdftops support has been removed from the cups package
package/Config.in +1 -0
@@ -1310,6 +1310,7 @@ menu "Networking applications" source "package/crda/Config.in" source "package/ctorrent/Config.in" source "package/cups/Config.in" + source "package/cups-filters/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/dhcp/Config.in" endif
package/cups-filters/Config.in new file +41 -0
41 lines not on this page · raw message
package/cups-filters/cups-filters.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 556a7dcc644fdc9d31b73672046cd4afcf323d0d9f52cf9793c624c0083143bf cups-filters-1.8.1.tar.gz
package/cups-filters/cups-filters.mk new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
1.9.1
PATCH v5 1/1 package/cups-filters: Add new package cups-filters 1.8.1
Olivier,
Thanks for respining. I have a few more questions, see below.
package/cups-filters/Config.in line 2
Quoted 8 lines · Olivier Schonken
package/cups-filters/Config.in new file +2
-0@@ -0,0 +1,41 @@ +comment "cups-filters needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
This should have "depends on BR2_USE_MMU" so that the comment is not shown on architectures for which cups-filters can anyway not be built.
package/cups-filters/Config.in line 9
Quoted 7 lines
package/cups-filters/Config.in new file +7
-0+ +config BR2_PACKAGE_CUPS_FILTERS + bool "cups-filters" + # needs fork() + depends on BR2_USE_MMU + depends on !BR2_STATIC_LIBS + select BR2_PACKAGE_CUPS
Are you sure you want to do a "select BR2_PACKAGE_CUPS" ?
First, if you "select BR2_PACKAGE_CUPS", you must replicate all "depends on" of BR2_PACKAGE_CUPS. And especially the dependency on BR2_INSTALL_LIBSTDCPP. Which means that the pdftops sub-option becomes quite useless, since it was mainly there because this feature requires C++ support.
Secondly, it is quite obvious that "cups-filters" would need the "cups" package. So in fact this "select BR2_PACKAGE_CUPS" could very well be replaced by a "depends on BR2_PACKAGE_CUPS". Especially since other cups-depending packages such as gutenprint, foomatic-filters or hplip already use "depends on BR2_PACKAGE_CUPS".
package/cups-filters/Config.in line 14
Quoted 5 lines
package/cups-filters/Config.in new file +5
-0+ select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_IJS + select BR2_PACKAGE_LCMS2 + select BR2_PACKAGE_POPPLER + select BR2_PACKAGE_QPDF
You need to replicate the dependencies of all those packages you are selecting. For libglib2, it means for example:
depends on BR2_USE_WCHAR # gettext
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU # fork()
poppler also depends on C++ support, so another reason why you need to "depends on BR2_INSTALL_LIBSTDCPP". Ditto for qpdf.
package/cups-filters/Config.in line 36
Quoted 7 lines
package/cups-filters/Config.in new file +7
-0+if BR2_PACKAGE_CUPS_FILTERS + +config BR2_PACKAGE_CUPS_FILTERS_PDFTOPS + bool "pdftops support" + depends on BR2_INSTALL_LIBSTDCPP + help + Enable pdftops support
Is it really useful to have a separate option for this? It doesn't seem to require any additional dependency (not even C++ support, see above). If the size difference is minimal, then we should get rid of this option, and simply build pdftops support unconditionally.
You can update the Config.in.legacy file about pdftops support being removed from cups, by adding in the comment that the support is now in the cups-filters package.
Could you respin after handling those comments?
Thanks a lot!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com