From 190772fe1d35c9c39e910544cb6c73377ad6363f Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Mon, 12 Apr 2021 14:35:31 +0200 Subject: [PATCH] sys-devel/make: Drop broken 3.82-r3 with color patch for now Related: https://bugs.gentoo.org/782340 --- sys-devel/make/Manifest | 1 - .../files/make-3.82-MAKEFLAGS-reexec.patch | 14 -- .../files/make-3.82-archives-many-objs.patch | 60 -------- sys-devel/make/files/make-3.82-color.patch | 141 ------------------ .../make/files/make-3.82-glob-speedup.patch | 104 ------------- .../files/make-3.82-memory-corruption.patch | 37 ----- sys-devel/make/make-3.82-r3.ebuild | 45 ------ sys-devel/make/metadata.xml | 7 - 8 files changed, 409 deletions(-) delete mode 100644 sys-devel/make/Manifest delete mode 100644 sys-devel/make/files/make-3.82-MAKEFLAGS-reexec.patch delete mode 100644 sys-devel/make/files/make-3.82-archives-many-objs.patch delete mode 100644 sys-devel/make/files/make-3.82-color.patch delete mode 100644 sys-devel/make/files/make-3.82-glob-speedup.patch delete mode 100644 sys-devel/make/files/make-3.82-memory-corruption.patch delete mode 100644 sys-devel/make/make-3.82-r3.ebuild delete mode 100644 sys-devel/make/metadata.xml diff --git a/sys-devel/make/Manifest b/sys-devel/make/Manifest deleted file mode 100644 index 08a838f..0000000 --- a/sys-devel/make/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST make-3.82.tar.bz2 1242186 SHA256 e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966 diff --git a/sys-devel/make/files/make-3.82-MAKEFLAGS-reexec.patch b/sys-devel/make/files/make-3.82-MAKEFLAGS-reexec.patch deleted file mode 100644 index a2f5965..0000000 --- a/sys-devel/make/files/make-3.82-MAKEFLAGS-reexec.patch +++ /dev/null @@ -1,14 +0,0 @@ -http://bugs.gentoo.org/331975 -https://savannah.gnu.org/bugs/?30723 - ---- main.c 2010/07/19 07:10:53 1.243 -+++ main.c 2010/08/10 07:35:34 1.244 -@@ -2093,7 +2093,7 @@ - const char *pv = define_makeflags (1, 1); - char *p = alloca (sizeof ("MAKEFLAGS=") + strlen (pv) + 1); - sprintf (p, "MAKEFLAGS=%s", pv); -- putenv (p); -+ putenv (allocated_variable_expand (p)); - } - - if (ISDB (DB_BASIC)) diff --git a/sys-devel/make/files/make-3.82-archives-many-objs.patch b/sys-devel/make/files/make-3.82-archives-many-objs.patch deleted file mode 100644 index abdcd32..0000000 --- a/sys-devel/make/files/make-3.82-archives-many-objs.patch +++ /dev/null @@ -1,60 +0,0 @@ -http://bugs.gentoo.org/334889 -https://savannah.gnu.org/bugs/?30612 - -revision 1.194 -date: 2010-08-13 22:50:14 -0400; author: psmith; state: Exp; lines: +9 -6; commitid: 4UaslPqQHZTs5wKu; -- Fix Savannah bug #30612: handling of archive references with >1 object - -Index: read.c -=================================================================== -RCS file: /sources/make/make/read.c,v -retrieving revision 1.193 -retrieving revision 1.194 -diff -u -p -r1.193 -r1.194 ---- read.c 13 Jul 2010 01:20:42 -0000 1.193 -+++ read.c 14 Aug 2010 02:50:14 -0000 1.194 -@@ -3028,7 +3028,7 @@ parse_file_seq (char **stringp, unsigned - { - /* This looks like the first element in an open archive group. - A valid group MUST have ')' as the last character. */ -- const char *e = p + nlen; -+ const char *e = p; - do - { - e = next_token (e); -@@ -3084,19 +3084,19 @@ parse_file_seq (char **stringp, unsigned - Go to the next item in the string. */ - if (flags & PARSEFS_NOGLOB) - { -- NEWELT (concat (2, prefix, tp)); -+ NEWELT (concat (2, prefix, tmpbuf)); - continue; - } - - /* If we get here we know we're doing glob expansion. - TP is a string in tmpbuf. NLEN is no longer used. - We may need to do more work: after this NAME will be set. */ -- name = tp; -+ name = tmpbuf; - - /* Expand tilde if applicable. */ -- if (tp[0] == '~') -+ if (tmpbuf[0] == '~') - { -- tildep = tilde_expand (tp); -+ tildep = tilde_expand (tmpbuf); - if (tildep != 0) - name = tildep; - } -@@ -3152,7 +3152,10 @@ parse_file_seq (char **stringp, unsigned - else - { - /* We got a chain of items. Attach them. */ -- (*newp)->next = found; -+ if (*newp) -+ (*newp)->next = found; -+ else -+ *newp = found; - - /* Find and set the new end. Massage names if necessary. */ - while (1) diff --git a/sys-devel/make/files/make-3.82-color.patch b/sys-devel/make/files/make-3.82-color.patch deleted file mode 100644 index c6dfe63..0000000 --- a/sys-devel/make/files/make-3.82-color.patch +++ /dev/null @@ -1,141 +0,0 @@ -From 9cb97d5705658f31ba3c4fb197d8800e3f77aec0 Mon Sep 17 00:00:00 2001 -From: Sebastian Pipping -Date: Mon, 26 Sep 2011 22:54:04 +0200 -Subject: [PATCH] Colorize make output (v1) - ---- - job.c | 2 +- - main.c | 2 ++ - misc.c | 16 +++++++++------- - remake.c | 45 ++++++++++++++++++++++++++++++++++++++++----- - 4 files changed, 52 insertions(+), 13 deletions(-) - -diff --git a/job.c b/job.c -index aacfb84..37017e0 100644 ---- a/job.c -+++ b/job.c -@@ -1144,7 +1144,7 @@ start_job_command (struct child *child) - appear. */ - - message (0, (just_print_flag || (!(flags & COMMANDS_SILENT) && !silent_flag)) -- ? "%s" : (char *) 0, p); -+ ? "\033[1;35m%s\033[0m" : (char *) 0, p); - - /* Tell update_goal_chain that a command has been started on behalf of - this target. It is important that this happens here and not in -diff --git a/main.c b/main.c -index c6989e3..5c6528d 100644 ---- a/main.c -+++ b/main.c -@@ -3231,6 +3231,7 @@ log_working_directory (int entering) - - /* Use entire sentences to give the translators a fighting chance. */ - -+ printf ("\033[0;36m"); - if (makelevel == 0) - if (starting_directory == 0) - if (entering) -@@ -3259,6 +3260,7 @@ log_working_directory (int entering) - else - printf (_("%s[%u]: Leaving directory `%s'\n"), - program, makelevel, starting_directory); -+ printf ("\033[0m"); - - /* Flush stdout to be sure this comes before any stderr output. */ - fflush (stdout); -diff --git a/misc.c b/misc.c -index 7a6f773..ad31b83 100644 ---- a/misc.c -+++ b/misc.c -@@ -236,16 +236,18 @@ message (prefix, fmt, va_alist) - if (fmt != 0) - { - if (prefix) -- { -- if (makelevel == 0) -- printf ("%s: ", program); -- else -- printf ("%s[%u]: ", program, makelevel); -- } -+ { -+ if (makelevel == 0) -+ printf ("\033[36m%s: ", program); -+ else -+ printf ("\033[36m%s[%u]: ", program, makelevel); -+ } -+ else -+ printf ("\033[36m"); - VA_START (args, fmt); - VA_PRINTF (stdout, fmt, args); - VA_END (args); -- putchar ('\n'); -+ printf ("\n\033[0m"); - } - - fflush (stdout); -diff --git a/remake.c b/remake.c -index 27d2550..3babb7a 100644 ---- a/remake.c -+++ b/remake.c -@@ -69,6 +69,38 @@ static void remake_file (struct file *file); - static FILE_TIMESTAMP name_mtime (const char *name); - static const char *library_search (const char *lib, FILE_TIMESTAMP *mtime_ptr); - -+/* -+ * Take string and wrap it by and -+ * The result is malloc'd and has to be free'd. -+ */ -+static char * colorize(const char * begin, const char * text, const char * end) { -+ const char * const jobs[] = {begin, text, end}; -+ const size_t job_count = sizeof(jobs) / sizeof(char *); -+ size_t job_lens[job_count]; -+ size_t out_len = 1; -+ int i = 0; -+ -+ /* Count */ -+ for (; i < job_count; i++) { -+ job_lens[i] = strlen(jobs[i]); -+ out_len += job_lens[i]; -+ } -+ -+ /* Allocate */ -+ char * const out = malloc(out_len); -+ assert(out); -+ -+ /* Concat */ -+ char * walker = out; -+ for (i = 0; i < job_count; i++) { -+ strcpy(walker, jobs[i]); -+ walker += job_lens[i]; -+ } -+ walker[0] = '\0'; -+ -+ return out; -+} -+ - - /* Remake all the goals in the `struct dep' chain GOALS. Return -1 if nothing - was done, 0 if all goals were updated successfully, or 1 if a goal failed. -@@ -230,11 +262,14 @@ update_goal_chain (struct dep *goals) - && file->update_status == 0 && !g->changed - /* Never give a message under -s or -q. */ - && !silent_flag && !question_flag) -- message (1, ((file->phony || file->cmds == 0) -- ? _("Nothing to be done for `%s'.") -- : _("`%s' is up to date.")), -- file->name); -- -+ { -+ const char * const text = ((file->phony || file->cmds == 0) -+ ? _("Nothing to be done for `%s'.") -+ : _("`%s' is up to date.")); -+ char * const colorized = colorize("\033[36m", text, "\033[0m"); -+ message (1, colorized, file->name); -+ free (colorized); -+ } - /* This goal is finished. Remove it from the chain. */ - if (lastgoal == 0) - goals = g->next; --- -1.7.6.1 - diff --git a/sys-devel/make/files/make-3.82-glob-speedup.patch b/sys-devel/make/files/make-3.82-glob-speedup.patch deleted file mode 100644 index c826c2c..0000000 --- a/sys-devel/make/files/make-3.82-glob-speedup.patch +++ /dev/null @@ -1,104 +0,0 @@ -change from upstream to speed up by skipping unused globs -https://bugs.gentoo.org/382845 - -http://cvs.savannah.gnu.org/viewvc/make/read.c?root=make&r1=1.198&r2=1.200 - -Revision 1.200 -Sat May 7 14:36:12 2011 UTC (4 months, 1 week ago) by psmith -Branch: MAIN -Changes since 1.199: +1 -1 lines -Inverted the boolean test from what I wanted it to be. Added a -regression test to make sure this continues to work. - -Revision 1.199 -Mon May 2 00:18:06 2011 UTC (4 months, 2 weeks ago) by psmith -Branch: MAIN -Changes since 1.198: +35 -25 lines -Avoid invoking glob() unless the filename has potential globbing -characters in it, for performance improvements. - ---- a/read.c 2011/04/29 15:27:39 1.198 -+++ b/read.c 2011/05/07 14:36:12 1.200 -@@ -2901,6 +2901,7 @@ - const char *name; - const char **nlist = 0; - char *tildep = 0; -+ int globme = 1; - #ifndef NO_ARCHIVES - char *arname = 0; - char *memname = 0; -@@ -3109,32 +3110,40 @@ - } - #endif /* !NO_ARCHIVES */ - -- switch (glob (name, GLOB_NOSORT|GLOB_ALTDIRFUNC, NULL, &gl)) -- { -- case GLOB_NOSPACE: -- fatal (NILF, _("virtual memory exhausted")); -- -- case 0: -- /* Success. */ -- i = gl.gl_pathc; -- nlist = (const char **)gl.gl_pathv; -- break; -- -- case GLOB_NOMATCH: -- /* If we want only existing items, skip this one. */ -- if (flags & PARSEFS_EXISTS) -- { -- i = 0; -- break; -- } -- /* FALLTHROUGH */ -- -- default: -- /* By default keep this name. */ -+ /* glob() is expensive: don't call it unless we need to. */ -+ if (!(flags & PARSEFS_EXISTS) && strpbrk (name, "?*[") == NULL) -+ { -+ globme = 0; - i = 1; - nlist = &name; -- break; -- } -+ } -+ else -+ switch (glob (name, GLOB_NOSORT|GLOB_ALTDIRFUNC, NULL, &gl)) -+ { -+ case GLOB_NOSPACE: -+ fatal (NILF, _("virtual memory exhausted")); -+ -+ case 0: -+ /* Success. */ -+ i = gl.gl_pathc; -+ nlist = (const char **)gl.gl_pathv; -+ break; -+ -+ case GLOB_NOMATCH: -+ /* If we want only existing items, skip this one. */ -+ if (flags & PARSEFS_EXISTS) -+ { -+ i = 0; -+ break; -+ } -+ /* FALLTHROUGH */ -+ -+ default: -+ /* By default keep this name. */ -+ i = 1; -+ nlist = &name; -+ break; -+ } - - /* For each matched element, add it to the list. */ - while (i-- > 0) -@@ -3174,7 +3183,8 @@ - #endif /* !NO_ARCHIVES */ - NEWELT (concat (2, prefix, nlist[i])); - -- globfree (&gl); -+ if (globme) -+ globfree (&gl); - - #ifndef NO_ARCHIVES - if (arname) diff --git a/sys-devel/make/files/make-3.82-memory-corruption.patch b/sys-devel/make/files/make-3.82-memory-corruption.patch deleted file mode 100644 index b28c073..0000000 --- a/sys-devel/make/files/make-3.82-memory-corruption.patch +++ /dev/null @@ -1,37 +0,0 @@ ---- function.c 2011/04/18 01:25:20 1.121 -+++ function.c 2011/05/02 12:35:01 1.122 -@@ -706,7 +706,7 @@ - const char *word_iterator = argv[0]; - char buf[20]; - -- while (find_next_token (&word_iterator, (unsigned int *) 0) != 0) -+ while (find_next_token (&word_iterator, NULL) != 0) - ++i; - - sprintf (buf, "%d", i); -@@ -1133,21 +1133,14 @@ - - /* Find the maximum number of words we'll have. */ - t = argv[0]; -- wordi = 1; -- while (*t != '\0') -+ wordi = 0; -+ while ((p = find_next_token (&t, NULL)) != 0) - { -- char c = *(t++); -- -- if (! isspace ((unsigned char)c)) -- continue; -- -+ ++t; - ++wordi; -- -- while (isspace ((unsigned char)*t)) -- ++t; - } - -- words = xmalloc (wordi * sizeof (char *)); -+ words = xmalloc ((wordi == 0 ? 1 : wordi) * sizeof (char *)); - - /* Now assign pointers to each string in the array. */ - t = argv[0]; diff --git a/sys-devel/make/make-3.82-r3.ebuild b/sys-devel/make/make-3.82-r3.ebuild deleted file mode 100644 index 5fca28c..0000000 --- a/sys-devel/make/make-3.82-r3.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI="2" - -inherit flag-o-matic eutils - -DESCRIPTION="Standard tool to compile source trees" -HOMEPAGE="http://www.gnu.org/software/make/make.html" -SRC_URI="mirror://gnu//make/${P}.tar.bz2" - -LICENSE="GPL-3" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="nls static" - -DEPEND="nls? ( sys-devel/gettext )" -RDEPEND="nls? ( virtual/libintl )" - -src_prepare() { - epatch "${FILESDIR}"/${P}-archives-many-objs.patch #334889 - epatch "${FILESDIR}"/${P}-MAKEFLAGS-reexec.patch #31975 - epatch "${FILESDIR}"/${P}-memory-corruption.patch #355907 - epatch "${FILESDIR}"/${P}-glob-speedup.patch #382845 - - epatch "${FILESDIR}"/${P}-color.patch -} - -src_configure() { - use static && append-ldflags -static - econf \ - --program-prefix=g \ - $(use_enable nls) -} - -src_install() { - emake DESTDIR="${D}" install || die "make install failed" - dodoc AUTHORS ChangeLog NEWS README* - if [[ ${USERLAND} == "GNU" ]] ; then - # we install everywhere as 'gmake' but on GNU systems, - # symlink 'make' to 'gmake' - dosym gmake /usr/bin/make - dosym gmake.1 /usr/share/man/man1/make.1 - fi -} diff --git a/sys-devel/make/metadata.xml b/sys-devel/make/metadata.xml deleted file mode 100644 index 82b7b79..0000000 --- a/sys-devel/make/metadata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - sping@gentoo.org - -