aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Makefile: avoid '//' when PREFIX is not setSergei Trofimovich2018-10-201-11/+11
| | | | | | | | | PREFIX assumes leading '/'. Thus the idiom is $(DESTDIR)$(PREFIX)/foo and not $(DESTDIR)/$(PREFIX)/foo Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers: use @TOPDIR@ and @PREFIX@ instead of __TOPDIR__ and __PREFIX__Sergei Trofimovich2018-10-203-5/+5
| | | | | | | Leave __<var>__ substitutions for runtime substitution and keep @<var>@ for 'make install' substitution. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* makefile: use ':' separator in set expressions consistentlySergei Trofimovich2018-10-201-3/+3
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* Makefile: mangle files with sed at install phaseSergei Trofimovich2018-10-201-3/+3
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers/Makefile: drop unused TOPDIR variableSergei Trofimovich2018-10-201-1/+0
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers: prevent use of wine to convert between path typesMarty E. Plummer2018-07-312-0/+3
| | | | | | | | | | | | libtool.m4 uses lt_cv_to_host_file_cmd to store the name of a function used to convert between unix and win32 path styles; when doing a linux to mingw cross-compilation it ends up with func_convert_file_nix_to_w32 which uses the winepath utility to do the job. However, using that tool will create a wineprefix in ${CATEGORY}/${P}/homedir and potentially cause access violations in sandbox. Bug: https://bugs.gentoo.org/631492 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers: fix use.force flag overridesSergei Trofimovich2018-04-051-1/+2
| | | | | | Flags should be one per line, not multiple: --- Invalid USE flag in 'use.force': '-kernel_linux kernel_linux' Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers: create profile/ and override ARCH, LIBC and KERNEL thereSergei Trofimovich2018-04-054-7/+29
| | | | | | | | | | | | Need for make.defaults: portage does not allow ARCH override in make.conf anymore Need for use.force: embedded profile enforces linux target on us. It's ok as a default but would be nice to be able to override it with nothing (bare-metal) or other OS without existing profile. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* emerge-wrapper: add a note that 'package.provided' are normally incompleteSergei Trofimovich2018-04-051-0/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* cross-emerge: fix empty EPREFIX handling, bug #650100Sergei Trofimovich2018-03-241-1/+1
| | | | | | | | | | | | | | commit 21a0f5a3d83084436e6f6b66114cc5c593528866 ("cross-emerge: tweak EPREFIX handling to be POSIX sh, bug #650100") introduced a bug: $ foo-emerge foo-emerge: line 13: [: =: unary operator expected Tweak it by quoting 'test' argument. Reported-by: Marty E. Plummer Bug: https://bugs.gentoo.org/650100 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* cross-emerge: tweak EPREFIX handling to be POSIX sh, bug #650100Sergei Trofimovich2018-03-101-1/+1
| | | | | | | | | Reported and fixed by Scall. Reported-by: Scall Fixed-by: Scall Closes: https://bugs.gentoo.org/650100 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* site/linux: move bash_cv_job_control_missing=present from linux-gnuSergei Trofimovich2017-12-312-1/+3
| | | | | | | | | glibc, musl, uclibc and uclibc-ng all define needed signals and syscalls needed for job control. Reported-by: Felix Janda Bug: https://bugs.gentoo.org/553988 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* sire/linux: remove gl_cv_func_re_compile_pattern_working=yes from muslSergei Trofimovich2017-12-313-1/+10
| | | | | | | | re_compile_pattern is present in glibc, uclibc, uclibc-ng, but not musl Reported-by: Felix Janda Bug: https://bugs.gentoo.org/553988 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers/emerge-wrapper: add ELIBC=Cygwin autodetectionSergei Trofimovich2017-12-301-0/+1
| | | | | Reported-by: Marty E. Plummer Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* wrappers/emerge-wrapper: add ELIBC=musl autodetectionSergei Trofimovich2017-12-301-0/+1
| | | | | Reported-by: Marty E. Plummer Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* prefixify build system and scripts.XU Benda2016-06-254-3/+11
|
* config.site: add musl libc supportAndrew Wilcox2016-06-021-0/+1
| | | | | | | This way you can support glibc and musl targets on the same system and not have to worry about switching out site scripts. URL: https://bugs.gentoo.org/554032
* cross-pkg-config: fix typo w/pkg_configMike Frysinger2016-01-161-1/+1
| | | | | | URL: https://bugs.gentoo.org/570762 Reported-by: Fabio Rossi <rossi.f@inwind.it> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-emerge: handle LDFLAGS tooJoakim Tjernlund2015-07-221-2/+3
| | | | | | | BUILD_LDFLAGS was missing, add it too. Signed-off-by: Joakim Tjernlund <joakim.tjernlund@transmode.se> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: punt berkdb cache valuesMike Frysinger2015-07-162-40/+0
| | | | | | | | | | Most of these no longer exist (and were somewhat invalid to begin with), and the package appears to do the right thing now with the various tests (like falling back to link/compile tests when run fails). Punt them all. URL: https://bugs.gentoo.org/516642 Reported-by: Scott Alfter <scott@alfter.us> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: import settings from Chromium OSMike Frysinger2015-05-303-1/+9
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: fix sizes of some typesMike Frysinger2015-05-301-2/+2
| | | | | | URL: https://bugs.gentoo.org/550776 Reported-by: Sven E. <dark@verfeiert.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: fix site accumulation yet some moreMike Frysinger2015-05-271-6/+6
| | | | | | | | The previous commit was supposed to include globs at the end of the targets but forgot to add while also splitting. URL: https://bugs.gentoo.org/497626 Signed-off-by: Mike Frysinger <vapier@chromium.org>
* config.site: fix site accumulation some moreMike Frysinger2015-05-261-0/+3
| | | | | | | | The previous code also relied on partial substrings so that linux-gnueabi would load both linux-gnu and linux-gnueabi. Restore that logic as well. URL: https://bugs.gentoo.org/497626 Signed-off-by: Mike Frysinger <vapier@chromium.org>
* config.site: fix site accumulationMike Frysinger2015-05-251-6/+6
| | | | | | | | The POSIX rewrite accidentally dropped the appending logic so all the `site+=...` changed to `site=...`. Restore that. URL: https://bugs.gentoo.org/497626 Signed-off-by: Mike Frysinger <vapier@chromium.org>
* crossdev/emerge-wrapper: merge repos.conf parsersMike Frysinger2015-05-181-14/+1
| | | | | | | | | | | The crossdev code had a more full-featured parser of the repos.conf output than the emerge-wrapper. The latter failed to include the last overlay in the list leading to ugly warnings like: /usr/bin/emerge-wrapper: line 48: /eclass/toolchain-funcs.eclass: No such file or directory /usr/bin/emerge-wrapper: line 49: tc-arch: command not found URL: https://bugs.gentoo.org/546748 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: drop redundant valuesMike Frysinger2015-02-241-4/+0
| | | | | | The main linux file already sets these /dev tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: set /dev/{ptmx,ptc} tests for Linux systemsMike Frysinger2015-02-241-0/+2
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: rewrite in POSIX shellMike Frysinger2014-10-301-25/+27
| | | | | URL: https://bugs.gentoo.org/497626 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* crossdev: set LIBC=mingw for mingw targetsMike Frysinger2014-10-301-3/+4
| | | | | URL: https://bugs.gentoo.org/340989 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* emerge-wrapper: improve warning messagesMike Frysinger2014-10-301-7/+9
| | | | | | The current output isn't clear as to what is wrong. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-pkg-config: avoid bashismMike Frysinger2014-10-301-1/+1
| | | | | URL: https://bugs.gentoo.org/525068 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-emerge: drop automatic fakeroot usageJoakim Tjernlund2014-09-181-6/+1
| | | | | | | | | | Portage is not designed to run wrapped in fakeroot. Instead one should set FEATURES="fakeroot". Wrapping emerge with fakeroot triggers emerge to disable fakeroot. URL: https://bugs.gentoo.org/489016 URL: https://bugs.gentoo.org/523098 Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
* cross-pkg-config: probe pkgconfig dir directlyMike Frysinger2014-09-171-2/+2
| | | | | | | | Since we're looking for the pkgconfig dir, let's probe it directly rather than rely on specific C library files. URL: https://bugs.gentoo.org/518790 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* switch from PORTDIR/PORTDIR_OVERLAY to repositories_configurationMike Frysinger2014-09-171-2/+17
| | | | | URL: https://bugs.gentoo.org/520880 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-pkg-config: set up PKG_CONFIG_SYSTEM_LIBRARY_PATHMike Frysinger2014-07-291-3/+21
| | | | | | | Rather than hardcode /usr/lib, set PKG_CONFIG_SYSTEM_LIBRARY_PATH to the right libdir paths. This should handle lib vs lib64 vs lib correctly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-pkg-config: utilize PKG_CONFIG_SYSROOT_DIRMike Frysinger2014-07-281-15/+3
| | | | | | | | | Now that the 0.24 release has been out for a few years, we can start relying on its availability. URL: https://bugs.gentoo.org/517530 Reported-by: Mike Marineau <mike@marineau.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* site: drop duplicated socket logicMike Frysinger2014-07-281-4/+0
| | | | | | | | The core linux-gnu site had its abstract sockets set to yes, but the mips one was specifically setting it to no. Drop the mips code. URL: http://crbug.com/394181 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* cross-pkg-config: minor style fix upMike Frysinger2014-03-271-5/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make.conf: drop the hardcore embedded settingsMike Frysinger2014-01-181-5/+2
| | | | | | | | If people want these settings, they can use the embedded profile. Instead, provide more reasonable USE/CFLAGS settings out of the box. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* emerge-wrapper: mark the C library/linux-headers as provided in the sysrootMike Frysinger2014-01-181-0/+9
| | | | | | | | Since the cross-xxx/{glibc,linux-headers} packages are installed into the sysroot, we don't want to try and install them in here too as they'll run into file collisions. So automatically add them to package.provided. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* wrappers: drop UCLIBC_CPU supportMike Frysinger2013-12-221-6/+0
| | | | | | | | We've deleted most of this from the uclibc ebuilds and have been pushing people to use CFLAGS for optimization selection. Drop the logic from here too. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* wrappers: drop custom bashrc/e_machine logicMike Frysinger2013-12-223-35/+0
| | | | | | | | Cross-compiling logic has largely stabilized enough now that we don't need this post-install hack to keep things sane. Plus, if you install a package that doesn't cross-compile properly, you'll notice pretty quickly. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* emerge-wrapper: drop "wrap all targets" logicMike Frysinger2013-12-221-17/+7
| | | | | | | We don't really need to do this anymore as crossdev will initialize things automatically for you now. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make.profile: move from /etc to /etc/portageJoakim Tjernlund2013-12-222-2/+2
| | | | This is where make.profile belongs in current portage
* emerge-wrapper: stop setting up make.globalsMike Frysinger2013-01-281-7/+0
| | | | | | Portage will take care of this itself internally. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make.conf: do no set LIBDIR anymoreMike Frysinger2012-08-211-3/+0
| | | | | | | | The main crossdev process handles multilib for us now. URL: https://bugs.gentoo.org/432084 Reported-by: Dennis Schridde <devurandom@gmx.net> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* config.site: do not cache values for native buildsMike Frysinger2012-07-211-1/+2
| | | | | | | | | | Since configure settings can change over time, we don't want crossdev accidentally breaking native builds when its only designed to fix up cross builds. URL: https://bugs.gentoo.org/427184 Reported-by: Justin Lecher <jlec@gentoo.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* site: copy screen cache vals into all linux targetsMike Frysinger2012-04-032-0/+22
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* make.conf: drop -I/-L hardcodes to sysrootMike Frysinger2012-03-071-2/+1
| | | | | | | | | | The sysroot in the toolchain itself should be able to locate the headers and libraries just fine. Using -L/-I breaks the search order for some applications. URL: http://bugs.gentoo.org/364003 Reported-by: Joerg Faschingbauer <joerg.faschingbauer@aon.at> Signed-off-by: Mike Frysinger <vapier@gentoo.org>