xmms/xmms.patch

Tue, 29 Mar 2011 20:04:34 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 29 Mar 2011 20:04:34 +0200
changeset 334
4a34d7a82eab
permissions
-rw-r--r--

Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.

The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.

It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.

     1 diff -Naur xmms-1.2.8.orig/xmms/skin.c xmms-1.2.8/xmms/skin.c
     2 --- xmms-1.2.8.orig/xmms/skin.c	Mon Mar 17 15:49:08 2003
     3 +++ xmms-1.2.8/xmms/skin.c	Fri Sep  5 11:08:47 2003
     4 @@ -600,10 +600,10 @@
     6  	unzip = getenv("UNZIPCMD");
     7  	if (!unzip)
     8 -		unzip = "unzip";
     9 +		unzip = "@l_unzip@";
    10  	tar = getenv("TARCMD");
    11  	if (!tar)
    12 -		tar = "tar";
    13 +		tar = "@l_tar@";
    15  	if ((ending = strrchr(path, '.')) == NULL)
    16  		return NULL;
    17 @@ -621,9 +621,9 @@
    18  	if (!strcasecmp(ending, ".zip") || !strcasecmp(ending, ".wsz"))
    19  		tmp = g_strdup_printf("%s >/dev/null -o -j \"%s\" -d %s", unzip, escaped, tempdir);
    20  	if (!strcasecmp(ending, ".tgz") || !strcasecmp(ending, ".gz"))
    21 -		tmp = g_strdup_printf("%s >/dev/null xzf \"%s\" -C %s", tar, escaped, tempdir);
    22 +		tmp = g_strdup_printf("@l_gzip@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    23  	if (!strcasecmp(ending, ".bz2"))
    24 -		tmp = g_strdup_printf("bzip2 -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    25 +		tmp = g_strdup_printf("@l_bzip2@ -dc \"%s\" | %s >/dev/null xf - -C %s", escaped, tar, tempdir);
    26  	if (!strcasecmp(ending, ".tar"))
    27  		tmp = g_strdup_printf("%s >/dev/null xf \"%s\" -C %s", tar, escaped, tempdir);

mercurial