aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix test for broken symlinks (-e is false, -h is true)HEADv5.5.2masterAndreas K. Hüttel2024-07-281-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Remove bad binutils symlinks in /usr/libexec/gcc/${HOST}/v5.5.1Andreas K. Hüttel2024-07-281-0/+15
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Print error message on empty determined CHOSTAndreas K. Hüttel2024-07-261-0/+6
| | | | | | No error exit yet, until we've fixed our problems. Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* Read CHOST with portageq from EROOT and not /v5.5James Le Cuirot2023-01-031-0/+1
| | | | | | Signed-off-by: James Le Cuirot <chewi@gentoo.org> Closes: https://github.com/gentoo/binutils-config/pull/1 Signed-off-by: Sam James <sam@gentoo.org>
* Allow EPREFIX to be overridden for manipulating prefixed ROOTJames Le Cuirot2023-01-031-9/+6
| | | | | | | | | | This use case was totally broken. We need to hardcode BROOT instead, as we don't want to source /lib/gentoo/functions.sh from ROOT We did the same with gcc-config. This aligns the start of these scripts. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* binutils-config: use portable Bash shebangSam James2022-09-231-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* binutils-config: skip updating empty env.d filesv5.4.1Joakim Tjernlund2022-01-131-1/+1
| | | | | | | | | If the package doesn't have any info or man pages, we won't create an env.d file, so don't try moving it. Closes: https://bugs.gentoo.org/796260 Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@infinera.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Use @GENTOO_EPREFIX@ instead of @GENTOO_PORTAGE_EPREFIX@Mike Gilbert2022-01-081-2/+2
| | | | | | | This matches the sed expression in the Makefile, and the expression used in gcc-config. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* binutils-config: add support for special 'latest' version for profile switchv5.4Sergei Trofimovich2021-02-281-7/+39
| | | | | | | | To ease switching to latest version add special 'latest' verison. Works for both "latest" and "<CTARGET>-latest" forms. Bug: https://bugs.gentoo.org/765664 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* src/binutils-config: add --get-bin-path / --get-lib-pathSergei Trofimovich2020-06-211-0/+17
| | | | | | | | | The options are symmetric to gcc-config's --get-bin-path / --get-lib-path. Useful to quickly get unprefixed tools into $PATH as: export PATH="$(gcc-config -B):$(binutils-config -B):$PATH" Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* binutils-config: fix native link removal by cross-compilers, bug #724454v5.3.1Sergei Trofimovich2020-05-231-11/+13
| | | | | | | | | | | | | | | | | | | commit 36eba05752348258a7 ("binutils-config: add build-time and runtime switches to disable native symlinks"). Added symlink deletion for USE_NATIVE_LINKS=no mode. It had a bug: it unconditionally deleted native symlinks if binutils-config is called on a cross-binutils installation. I missed the case because I assumed that tool names in binutils' private directory match gcc' private directory. The change is not to perform symlink cleanup for unprefixed binaries for cross-binutils. Reported-by: Ionen Wolkens Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* binutils-config: document current binary assumptionsSergei Trofimovich2020-05-231-0/+12
| | | | | | | | There is a difference in gcc / binutils layout: binutils binaries are always unprefixed. Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* src/binutils-config: add --nocolor optionv5.3Sergei Trofimovich2020-05-221-0/+2
| | | | | | | For symmetry with gcc-config. Will allow iterating through targets in pkg_*() phases. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* src/binutils-config: unbreak AND syntax for [[ ]]Sergei Trofimovich2020-05-211-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* binutils-config: add build-time and runtime switches to disable native symlinksSergei Trofimovich2020-05-211-2/+14
| | | | | | | | | | | We have two knobs here: 1. Build-time knob USE_NATIVE_LINKS to set a default, defaults to 'yes' (existing behaviour) 2. Run-time --enable-native-links / --disable-native-links knobs. These are not persistent across binutils-config runs and are meant for manual testing. Undocumented for now. Reported-by: Kent Fredric Bug: https://bugs.gentoo.org/724454 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Makefile: new trivial makefile to build tarballs and install themv5.2.1Sergei Trofimovich2020-05-211-0/+0
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* add binutils-config sources as-isSergei Trofimovich2020-05-211-35/+14
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* move installed source file to prepare for tarball geenrationSergei Trofimovich2020-05-211-0/+477
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>