diff options
-rw-r--r-- | debian/changelog | 3 | ||||
-rw-r--r-- | debian/patches/0120-Disable_option_docs.patch | 28 | ||||
-rw-r--r-- | debian/patches/series | 1 |
3 files changed, 32 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index 1b4ea46..fdf56d3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,9 @@ foomatic-filters (4.0.17-14) UNRELEASED; urgency=medium * New debian/patches/0115-Fix_text_filter.patch (Closes: #776315): - Fix error on handling text filter. + * New debian/patches/0120-Disable_option_docs.patch (Closes: #1004417) + - Disable not availaqble option docs. + -- Jörg Frings-Fürst <debian@jff.email> Thu, 24 Feb 2022 08:07:44 +0100 diff --git a/debian/patches/0120-Disable_option_docs.patch b/debian/patches/0120-Disable_option_docs.patch new file mode 100644 index 0000000..6fc85a7 --- /dev/null +++ b/debian/patches/0120-Disable_option_docs.patch @@ -0,0 +1,28 @@ +Index: trunk/foomaticrip.c +=================================================================== +--- trunk.orig/foomaticrip.c ++++ trunk/foomaticrip.c +@@ -330,8 +330,9 @@ void process_cmdline_options() + + /* "docs" option to print help page */ + if (!strcasecmp(key, "docs")) { +- do_docs = 1; +- continue; ++ do_docs = 0; ++ rip_die(EXIT_OPTION_NOT_AVAILABLE, "Option \"docs\" isn't available now.\n"); ++/* continue; */ + } + /* "profile" option to supply a color correction profile to a CUPS raster driver */ + if (!strcmp(key, "profile")) { +Index: trunk/foomaticrip.h +=================================================================== +--- trunk.orig/foomaticrip.h ++++ trunk/foomaticrip.h +@@ -62,6 +62,7 @@ + #define EXIT_PRNERR_NORETRY_BAD_SETTINGS 9 /* interface settings are invalid */ + #define EXIT_PRNERR_NO_SUCH_ADDRESS 10 /* address lookup failed, may be transient */ + #define EXIT_PRNERR_NORETRY_NO_SUCH_ADDRESS 11 /* address lookup failed, not transient */ ++#define EXIT_OPTION_NOT_AVAILABLE 20 /* Otion isn't avalable now */ + #define EXIT_INCAPABLE 50 /* printer wants (lacks) features or resources */ + + diff --git a/debian/patches/series b/debian/patches/series index abbd0fe..7ede85b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -5,3 +5,4 @@ 0001-paps.patch 0500-r7406_also_consider_the_back_tick_as_an_illegal_shell_escape_character.patch 0115-Fix_text_filter.patch +0120-Disable_option_docs.patch |