Tue, 29 Mar 2011 20:04:34 +0200
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 ##
2 ## release -- OpenPKG Release Utility
3 ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
5 ##
6 ## Permission to use, copy, modify, and distribute this software for
7 ## any purpose with or without fee is hereby granted, provided that
8 ## the above copyright notice and this permission notice appear in all
9 ## copies.
10 ##
11 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
12 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
13 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
14 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
15 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
16 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
17 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
19 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
21 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
22 ## SUCH DAMAGE.
23 ##
25 =pod
27 =head1 NAME
29 B<openpkg release> - OpenPKG Release Utility
31 =head1 SYNOPSIS
33 B<openpkg release> [B<-F>|B<--fmt> I<format>]
35 =head1 DESCRIPTION
37 The B<openpkg release> command displays the OpenPKG release tag and
38 distribution URL. The release tag uniquely identifies an OpenPKG
39 distribution and the distribution URL is the location where the
40 distribution packages and indices are stored.
42 =head1 OPTIONS
44 =over 4
46 =item B<-F>, B<--fmt> I<format>
48 The output format specification. The argument I<format> is an arbitrary
49 string which can contain the special expansion constructs "C<%t>" for
50 expanding the release tag, "C<%u>" for expanding the distribution URL
51 and "C<\n>" for expanding an embedded newline character.
52 The instance UUID information is also availble by expanding
53 C<%r> to UUID_REGISTRY, C<%i> to UUID_INSTANCE, C<%p> to UUID_PLATFORM.
54 The default I<format> is "C<OpenPKG-%t %u>".
56 =item B<-r>, B<--release> I<release>
58 The package "C<Release>" header value to use for deriving the release
59 tag. The values in the F<@l_prefix@/etc/openpkg/release> file and the
60 "C<Release>" header of the bootstrap package B<openpkg> are ignored if
61 this option is used.
63 =back
65 =head1 FILES
67 =over 4
69 =item F<@l_prefix@/etc/openpkg/release>
71 This optional configuration file can be used to explicitly set values
72 for the OpenPKG release tag and distribution URLs. It consists of lines
73 with variable name/value pairs. The following configuration variables
74 are recognized:
76 =over 4
78 =item B<TAG=>I<tag>
80 The default I<tag> is automatically derived from the "C<Version>" header
81 of the OpenPKG bootstrap package B<openpkg>. One usually only sets this
82 explicitly to a value if a bootstrap package is used from a foreign
83 distribution version.
85 =item B<URL=>I<url>
87 The fully-qualified distribution URL based on either the "C<ftp>",
88 "C<http>" or "C<file>" URL schemes. If I<url> contains a trailing
89 "C</*>", this is expanded according to the I<tag> value of the B<TAG>
90 variable and the corresponding filesystem layout on C<ftp.openpkg.org>.
91 The default I<url> is "C<ftp://ftp.openpkg.org/*>".
93 =over
95 =back
97 =head1 EXAMPLE
99 $ openpkg release
100 OpenPKG-CURRENT ftp://ftp.openpkg.org/current/SRC/
102 $ openpkg release --fmt=%t
103 CURRENT
105 $ openpkg release --fmt=%u
106 ftp://ftp.openpkg.org/current/SRC/
108 $ openpkg release --fmt="OpenPKG %t is located at:\\n%u"
109 OpenPKG CURRENT is located at:
110 ftp://ftp.openpkg.org/current/SRC/
112 $ openpkg release --release=2.5.4 --fmt=%t
113 2.5-RELEASE
115 $ cat /openpkg/etc/openpkg/release
116 TAG=2-STABLE-20060622
117 URL=ftp://ftp.example.com/mirror/openpkg.org/*
119 =head1 SEE ALSO
121 uuid(8)
123 =head1 HISTORY
125 The B<openpkg release> command first appeared in B<OpenPKG 2-STABLE-20060622>.
127 =cut