* [gentoo-commits] repo/gentoo:master commit in: net-print/cups/files/
@ 2017-11-18 18:03 David Seifert
0 siblings, 0 replies; 4+ messages in thread
From: David Seifert @ 2017-11-18 18:03 UTC (permalink / raw
To: gentoo-commits
commit: b913efce5c3b38b6d9ef8d869dc19e4208aef4b4
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Fri Nov 17 19:25:47 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Nov 18 18:03:17 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b913efce
net-print/cups: remove unused patch
Closes: https://github.com/gentoo/gentoo/pull/6216
.../cups/files/cups-2.2.4-fix-install-perms.patch | 18 ------------------
1 file changed, 18 deletions(-)
diff --git a/net-print/cups/files/cups-2.2.4-fix-install-perms.patch b/net-print/cups/files/cups-2.2.4-fix-install-perms.patch
deleted file mode 100644
index b9fda922d2c..00000000000
--- a/net-print/cups/files/cups-2.2.4-fix-install-perms.patch
+++ /dev/null
@@ -1,18 +0,0 @@
---- cups-2.2.4/Makedefs.in
-+++ cups-2.2.4/Makedefs.in
-@@ -39,12 +39,12 @@
- #
-
- INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
--INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
-+INSTALL_COMPDATA = $(INSTALL) -c -m 644 @INSTALL_GZIP@
- INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
--INSTALL_DATA = $(INSTALL) -c -m 444
-+INSTALL_DATA = $(INSTALL) -c -m 644
- INSTALL_DIR = $(INSTALL) -d
- INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
--INSTALL_MAN = $(INSTALL) -c -m 444
-+INSTALL_MAN = $(INSTALL) -c -m 644
- INSTALL_SCRIPT = $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@
-
- #
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-print/cups/files/
@ 2017-11-28 18:30 Lars Wendler
0 siblings, 0 replies; 4+ messages in thread
From: Lars Wendler @ 2017-11-28 18:30 UTC (permalink / raw
To: gentoo-commits
commit: cf787282061c48e1e94e459735b3639b4427c85d
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 28 18:26:06 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Nov 28 18:30:07 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf787282
Revert "net-print/cups: remove unused patch"
This reverts commit b913efce5c3b38b6d9ef8d869dc19e4208aef4b4.
.../cups/files/cups-2.2.4-fix-install-perms.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/net-print/cups/files/cups-2.2.4-fix-install-perms.patch b/net-print/cups/files/cups-2.2.4-fix-install-perms.patch
new file mode 100644
index 00000000000..b9fda922d2c
--- /dev/null
+++ b/net-print/cups/files/cups-2.2.4-fix-install-perms.patch
@@ -0,0 +1,18 @@
+--- cups-2.2.4/Makedefs.in
++++ cups-2.2.4/Makedefs.in
+@@ -39,12 +39,12 @@
+ #
+
+ INSTALL_BIN = $(LIBTOOL) $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
+-INSTALL_COMPDATA = $(INSTALL) -c -m 444 @INSTALL_GZIP@
++INSTALL_COMPDATA = $(INSTALL) -c -m 644 @INSTALL_GZIP@
+ INSTALL_CONFIG = $(INSTALL) -c -m @CUPS_CONFIG_FILE_PERM@
+-INSTALL_DATA = $(INSTALL) -c -m 444
++INSTALL_DATA = $(INSTALL) -c -m 644
+ INSTALL_DIR = $(INSTALL) -d
+ INSTALL_LIB = $(LIBTOOL) $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@ @INSTALL_STRIP@
+-INSTALL_MAN = $(INSTALL) -c -m 444
++INSTALL_MAN = $(INSTALL) -c -m 644
+ INSTALL_SCRIPT = $(INSTALL) -c -m @CUPS_EXE_FILE_PERM@
+
+ #
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-print/cups/files/
@ 2018-12-08 13:21 Lars Wendler
0 siblings, 0 replies; 4+ messages in thread
From: Lars Wendler @ 2018-12-08 13:21 UTC (permalink / raw
To: gentoo-commits
commit: d553454c747dbfda55ba38f64003036f29a9ebc1
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 8 13:21:07 2018 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Sat Dec 8 13:21:30 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d553454c
net-print/cups: Replaced usage_argument fix with upstream version
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
.../files/cups-2.3_beta6-usage_argument_fix.patch | 253 +++++++++++++++++++--
1 file changed, 229 insertions(+), 24 deletions(-)
diff --git a/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch b/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch
index f0ba569a0f4..d77a5bba28e 100644
--- a/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch
+++ b/net-print/cups/files/cups-2.3_beta6-usage_argument_fix.patch
@@ -1,27 +1,235 @@
-From 7b655b36b349f6db9a7b658d0075c468cff83c2e Mon Sep 17 00:00:00 2001
-From: Lars Wendler <polynomial-c@gentoo.org>
-Date: Sat, 8 Dec 2018 13:14:06 +0100
-Subject: [PATCH] Fix call to usage which requires an int argument
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
+From 065632e2095bcb32f15a370633e60d6a6a3dd78e Mon Sep 17 00:00:00 2001
+From: Michael R Sweet <michael.r.sweet@gmail.com>
+Date: Sat, 8 Dec 2018 08:12:52 -0500
+Subject: [PATCH] Fix compile errors - not sure why these didn't show up
+ before...
-Otherwise compilation fails:
-
-main.c: In function ‘main’:
-main.c:158:7: error: too few arguments to function ‘usage’
- usage();
- ^~~~~
-main.c:73:14: note: declared here
- static void usage(int status) _CUPS_NORETURN;
- ^~~~~
-make[1]: *** [../Makedefs:270: main.o] Error 1
---
- scheduler/main.c | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
+ cups/adminutil.c | 197 -----------------------------------------------
+ scheduler/main.c | 2 +-
+ 2 files changed, 1 insertion(+), 198 deletions(-)
+diff --git a/cups/adminutil.c b/cups/adminutil.c
+index 5ecada44c..1a5067f1b 100644
+--- a/cups/adminutil.c
++++ b/cups/adminutil.c
+@@ -32,12 +32,6 @@ static http_status_t get_cupsd_conf(http_t *http, _cups_globals_t *cg,
+ time_t last_update, char *name,
+ size_t namelen, int *remote);
+ static void invalidate_cupsd_cache(_cups_globals_t *cg);
+-static void write_option(cups_file_t *dstfp, int order,
+- const char *name, const char *text,
+- const char *attrname,
+- ipp_attribute_t *suppattr,
+- ipp_attribute_t *defattr, int defval,
+- int valcount);
+
+
+ /*
+@@ -1330,88 +1324,6 @@ cupsAdminSetServerSettings(
+ }
+
+
+-/*
+- * 'do_samba_command()' - Do a SAMBA command.
+- */
+-
+-static int /* O - Status of command */
+-do_samba_command(const char *command, /* I - Command to run */
+- const char *address, /* I - Address for command */
+- const char *subcmd, /* I - Sub-command */
+- const char *authfile, /* I - Samba authentication file */
+- FILE *logfile) /* I - Optional log file */
+-{
+-#ifdef _WIN32
+- return (1); /* Always fail on Windows... */
+-
+-#else
+- int status; /* Status of command */
+- int pid; /* Process ID of child */
+-
+-
+- if (logfile)
+- _cupsLangPrintf(logfile,
+- _("Running command: %s %s -N -A %s -c \'%s\'"),
+- command, address, authfile, subcmd);
+-
+- if ((pid = fork()) == 0)
+- {
+- /*
+- * Child goes here, redirect stdin/out/err and execute the command...
+- */
+-
+- int fd = open("/dev/null", O_RDONLY);
+-
+- if (fd > 0)
+- {
+- dup2(fd, 0);
+- close(fd);
+- }
+-
+- if (logfile)
+- dup2(fileno(logfile), 1);
+- else if ((fd = open("/dev/null", O_WRONLY)) > 1)
+- {
+- dup2(fd, 1);
+- close(fd);
+- }
+-
+- dup2(1, 2);
+-
+- execlp(command, command, address, "-N", "-A", authfile, "-c", subcmd,
+- (char *)0);
+- exit(errno);
+- }
+- else if (pid < 0)
+- {
+- status = -1;
+-
+- if (logfile)
+- _cupsLangPrintf(logfile, _("Unable to run \"%s\": %s"),
+- command, strerror(errno));
+- }
+- else
+- {
+- /*
+- * Wait for the process to complete...
+- */
+-
+- while (wait(&status) != pid);
+- }
+-
+- if (logfile)
+- _cupsLangPuts(logfile, "");
+-
+- DEBUG_printf(("9do_samba_command: status=%d", status));
+-
+- if (WIFEXITED(status))
+- return (WEXITSTATUS(status));
+- else
+- return (-WTERMSIG(status));
+-#endif /* _WIN32 */
+-}
+-
+-
+ /*
+ * 'get_cupsd_conf()' - Get the current cupsd.conf file.
+ */
+@@ -1527,112 +1439,3 @@ invalidate_cupsd_cache(
+ cg->cupsd_num_settings = 0;
+ cg->cupsd_settings = NULL;
+ }
+-
+-
+-/*
+- * 'write_option()' - Write a CUPS option to a PPD file.
+- */
+-
+-static void
+-write_option(cups_file_t *dstfp, /* I - PPD file */
+- int order, /* I - Order dependency */
+- const char *name, /* I - Option name */
+- const char *text, /* I - Option text */
+- const char *attrname, /* I - Attribute name */
+- ipp_attribute_t *suppattr, /* I - IPP -supported attribute */
+- ipp_attribute_t *defattr, /* I - IPP -default attribute */
+- int defval, /* I - Default value number */
+- int valcount) /* I - Number of values */
+-{
+- int i; /* Looping var */
+-
+-
+- cupsFilePrintf(dstfp, "*JCLOpenUI *%s/%s: PickOne\n"
+- "*OrderDependency: %d JCLSetup *%s\n",
+- name, text, order, name);
+-
+- if (defattr->value_tag == IPP_TAG_INTEGER)
+- {
+- /*
+- * Do numeric options with a range or list...
+- */
+-
+- cupsFilePrintf(dstfp, "*Default%s: %d\n", name,
+- defattr->values[defval].integer);
+-
+- if (suppattr->value_tag == IPP_TAG_RANGE)
+- {
+- /*
+- * List each number in the range...
+- */
+-
+- for (i = suppattr->values[0].range.lower;
+- i <= suppattr->values[0].range.upper;
+- i ++)
+- {
+- cupsFilePrintf(dstfp, "*%s %d: \"", name, i);
+-
+- if (valcount == 1)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\n\"\n*End\n",
+- attrname, i);
+- else if (defval == 0)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\"\n", attrname, i);
+- else if (defval < (valcount - 1))
+- cupsFilePrintf(dstfp, ",%d\"\n", i);
+- else
+- cupsFilePrintf(dstfp, ",%d\n\"\n*End\n", i);
+- }
+- }
+- else
+- {
+- /*
+- * List explicit numbers...
+- */
+-
+- for (i = 0; i < suppattr->num_values; i ++)
+- {
+- cupsFilePrintf(dstfp, "*%s %d: \"", name, suppattr->values[i].integer);
+-
+- if (valcount == 1)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\n\"\n*End\n", attrname,
+- suppattr->values[i].integer);
+- else if (defval == 0)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%d\"\n", attrname,
+- suppattr->values[i].integer);
+- else if (defval < (valcount - 1))
+- cupsFilePrintf(dstfp, ",%d\"\n", suppattr->values[i].integer);
+- else
+- cupsFilePrintf(dstfp, ",%d\n\"\n*End\n", suppattr->values[i].integer);
+- }
+- }
+- }
+- else
+- {
+- /*
+- * Do text options with a list...
+- */
+-
+- cupsFilePrintf(dstfp, "*Default%s: %s\n", name,
+- defattr->values[defval].string.text);
+-
+- for (i = 0; i < suppattr->num_values; i ++)
+- {
+- cupsFilePrintf(dstfp, "*%s %s: \"", name,
+- suppattr->values[i].string.text);
+-
+- if (valcount == 1)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%s\n\"\n*End\n", attrname,
+- suppattr->values[i].string.text);
+- else if (defval == 0)
+- cupsFilePrintf(dstfp, "%%cupsJobTicket: %s=%s\"\n", attrname,
+- suppattr->values[i].string.text);
+- else if (defval < (valcount - 1))
+- cupsFilePrintf(dstfp, ",%s\"\n", suppattr->values[i].string.text);
+- else
+- cupsFilePrintf(dstfp, ",%s\n\"\n*End\n",
+- suppattr->values[i].string.text);
+- }
+- }
+-
+- cupsFilePrintf(dstfp, "*JCLCloseUI: *%s\n\n", name);
+-}
diff --git a/scheduler/main.c b/scheduler/main.c
-index ce7df89c0..a7df4525f 100644
+index ce7df89c0..5b00efae2 100644
--- a/scheduler/main.c
+++ b/scheduler/main.c
@@ -155,7 +155,7 @@ main(int argc, /* I - Number of command-line args */
@@ -29,10 +237,7 @@ index ce7df89c0..a7df4525f 100644
{
if (!strcmp(argv[i], "--help"))
- usage();
-+ usage(1);
++ usage(0);
else if (argv[i][0] == '-')
{
for (opt = argv[i] + 1; *opt != '\0'; opt ++)
---
-2.20.0.rc2
-
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: net-print/cups/files/
@ 2020-06-27 20:51 Aaron Bauman
0 siblings, 0 replies; 4+ messages in thread
From: Aaron Bauman @ 2020-06-27 20:51 UTC (permalink / raw
To: gentoo-commits
commit: f271f4436188e99aeef6d7de3f1bb6fa4c7a5dc8
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sat Jun 27 17:32:37 2020 +0000
Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
CommitDate: Sat Jun 27 20:48:09 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f271f443
net-print/cups: remove unused patch
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/16449
Signed-off-by: Aaron Bauman <bman <AT> gentoo.org>
.../cups/files/cups-2.2.0-dont-compress-manpages.patch | 17 -----------------
1 file changed, 17 deletions(-)
diff --git a/net-print/cups/files/cups-2.2.0-dont-compress-manpages.patch b/net-print/cups/files/cups-2.2.0-dont-compress-manpages.patch
deleted file mode 100644
index 7b61b39f16a..00000000000
--- a/net-print/cups/files/cups-2.2.0-dont-compress-manpages.patch
+++ /dev/null
@@ -1,17 +0,0 @@
---- cups-2.2.0/config-scripts/cups-manpages.m4
-+++ cups-2.2.0/config-scripts/cups-manpages.m4
-@@ -53,10 +53,10 @@
- ;;
- Linux* | GNU* | Darwin*)
- # Linux, GNU Hurd, and macOS
-- MAN1EXT=1.gz
-- MAN5EXT=5.gz
-- MAN7EXT=7.gz
-- MAN8EXT=8.gz
-+ MAN1EXT=1
-+ MAN5EXT=5
-+ MAN7EXT=7
-+ MAN8EXT=8
- MAN8DIR=8
- ;;
- *)
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-06-27 20:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-28 18:30 [gentoo-commits] repo/gentoo:master commit in: net-print/cups/files/ Lars Wendler
-- strict thread matches above, loose matches on Subject: below --
2020-06-27 20:51 Aaron Bauman
2018-12-08 13:21 Lars Wendler
2017-11-18 18:03 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox