| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
bug #695706 added compiler validation via 'type -p ${CC}', but that
does not take into account possible options present in ${CC} itself:
$ type -P x86_64-pc-linux-gnu-gcc -m64; echo $?
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
1
$ type -P x86_64-pc-linux-gnu-gcc ; echo $?
/usr/lib/ccache/bin/x86_64-pc-linux-gnu-gcc
0
The change picks first argument (binary name) and validates only that.
Reported-by: Pavol Cupka
Closes: https://bugs.gentoo.org/695888
Bug: https://bugs.gentoo.org/show_bug.cgi?id=695706
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Before trying to use it. Fixes stricter phase running done by pkgcore
which explicitly dies when encountering unknown commands.
Closes: https://bugs.gentoo.org/695706
Signed-off-by: Tim Harder <radhermit@gentoo.org>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In bug #687198 Julian noticed that strip-unsupported-flags()
filters out '-B' but not '/foo' in CFLAGS='-B /foo' and causes
breakage.
This change still does not allow -B flag but at least filters
out both '-B' and it's parameter.
Reported-by: Julian Cléaud
Bug: https://bugs.gentoo.org/687198
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
|
|
|
|
|
|
| |
Allow '-mstackrealign' in ebuilds like glibc to force stack realignment.
That will allow running ancient (or foreign) binaries that don't
maintain 16-byte stack alignment. See bug #677852 for example.
Reported-by: Michael Huss
Closes: https://bugs.gentoo.org/677852
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Closes: https://bugs.gentoo.org/662718
|
|
|
|
|
|
|
| |
For clang and gcc, --param consumes the next argument. Testing --param
and its value separately is nonsensical.
Acked-by: Sergei Trofimovich <slyfox@gentoo.org>
|
|
|
|
| |
Closes: https://bugs.gentoo.org/636986
|
|
|
|
| |
* this is needed for some Ada packages using system gcc
|
|
|
|
|
|
|
|
| |
Include LDFLAGS in the variables stripped by strip-unsupported-flags.
The code reuses the current functions for testing CC, and so only remove
LDFLAGS that are rejected by the C compiler and not the linker. This
solves the case of bug #621274 where LDFLAGS contained GCC-specific
-flto flag.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
By default, clang considers unused arguments as error when -Werror is
used. Since flag tests are performed without linking, this causes all
tests for linker flags to fail inadvertently and all those flags
are stripped as a result.
While the correctness of passing unused flags is doubtful, silently
stripping them in a few random packages is certainly not the solution
to the problem, and also makes the results differ between gcc and clang.
To account for that, use clang's -Qunused-arguments option to silence
unused argument warnings.
To avoid wasting time on testing the compiler, just try passing
-Qunused-arguments every time a flag check fails. If clang is not used,
the additional call will fail just the same as the previous one (either
because of the original flag or because of -Qunused-arguments), so
the result will be the same.
|
| |
|
|
|
|
|
|
|
| |
The current logic strips too much, causing build failures. Revert it
until we get it right.
Bug: https://bugs.gentoo.org/627474
|
|
|
|
|
|
|
|
| |
Include LDFLAGS in the variables stripped by strip-unsupported-flags.
The code reuses the current functions for testing CC, and so only remove
LDFLAGS that are rejected by the C compiler and not the linker. This
solves the case of bug #621274 where LDFLAGS contained GCC-specific
-flto flag.
|
|
|
|
|
|
|
|
|
| |
Replace the evals used to export variables with plain export calls. Bash
expands variable references for exported variable name anyway, rendering
the eval completely unnecessary.
Replace the single eval used for indirect variable reference with the
${!...} substitution which serves that exact purpose in bash.
|
|
|
|
| |
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
|
|
|
|
|
|
|
| |
The -fno-stack-check flag is equivalent to -fstack-check=no, so
support both in ALLOWED_FLAGS.
Signed-off-by: Joshua Kinard <kumba@gentoo.org>
|
|
|
|
| |
The function is not used by any ebuild.
|
| |
|
|
|
|
| |
Reported-by: Laine Gholson <laine.gholson@gmail.com>
|
| |
|
| |
|
| |
|
|
|
|
| |
This makes quoting much saner.
|
|
|
|
|
|
| |
This fixes handling of -fsanitize=foo flags, as well as supporting flags
like -fsanitize-foo-bar. Since gcc seems to be using that namespace for
all these settings, allow them all.
|
|
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
|