Commit Graph

18 Commits

Author SHA1 Message Date
Đoàn Trần Công Danh de8f7f2e26 wrappers: remove which
Accidentally added in c22acb3072, (99-pkglint: forbid /usr/etc, 2022-09-06)
2022-09-06 22:55:29 +07:00
Đoàn Trần Công Danh c22acb3072 99-pkglint: forbid /usr/etc
data files should go to /usr/share, config files should go to /etc
2022-09-06 17:43:20 +07:00
Érico Rolim 520be3a5de common/wrappers: add -L/usr/lib{32,64} to arguments ignored by cross-cc.
Detected when cross building timg after rebuilding GraphicsMagick with
new libdir directories. Could be fixed in all offending packages, but
it's easier to fix it in one place, and arguably more correct.
2021-02-09 23:01:46 -03:00
Đoàn Trần Công Danh c1fa95a097 common: fix exit status of uname wrapper 2021-01-25 09:00:04 +07:00
Érico Rolim 811f311dd2 common/wrappers/cross-cc: catch -L/lib in args.
Issue spotted while building geda.
2020-12-20 19:43:35 -03:00
Đoàn Trần Công Danh 447bae0d3e uname.sh: fix cross `uname -m` when XBPS_ARCH is reseted
From commit cf6e6f14d3, (wrappers/uname: report correct machine type
on ethereal, 2020-02-10).

Some template use `env -i` to reset environment variable for building
host's binary file, thus the wrapped `uname -m` reports empty strings.

Fix it by falling back to the value reported by `/usr/bin/uname -m`.
We don't expect people cross-compile from i686-ethereal-chroot on top
of x86_64 machine, it was expected to use for travis to native compile
i686 only.
2020-03-24 03:59:36 +01:00
Đoàn Trần Công Danh cf6e6f14d3 wrappers/uname: report correct machine type on ethereal
We're using Ethereal chroot style on Travis CI.

In that chroot style, `uname -m` reports x86_64 even if we're
bootstrapped with i686 systems.

Some i686 build that employ `uname -m` is failing on Travis CI,
e.g: https://travis-ci.org/void-linux/void-packages/jobs/648010517#L5787

Change `uname` output to make Travis Output meaningful for i686.
2020-02-11 08:56:25 +01:00
Leah Neukirchen 37309e0bbc common/wrappers/ldconfig.sh: pass through -p.
Some silly configure scripts use this.
2017-08-28 19:52:07 +02:00
Enno Boland e47bcaa55a common/wrappers/date.sh: use utc, fix escaping 2016-03-03 16:52:18 +01:00
Enno Boland b12013870d common/wrappers/uname.sh: return with correct exit code. 2016-03-03 12:05:28 +01:00
Enno Boland 5a2a63645f common/wrappers: add date and uname wrappers.
uname:
  overwrites the hostname in command uname with the string 'void'.
date:
  uses the timestamp read from SOURCE_DATE_EPOCH as date.
2016-03-03 11:34:07 +01:00
Jürgen Buchmüller 25bdf1945d cross-cc: always unset incpath and libpath
Closes #2823
2015-10-25 13:32:10 +01:00
Juan RP bd165ccdf6 wrappers: rename cc to cross-cc to clarify it's used only in cross mode. 2015-10-25 11:03:16 +01:00
Juan RP 1b0a232b20 wrappers/cc: also process forbidden -I/-L paths with blanks.
like "-I   /usr/include".
2015-10-25 10:48:02 +01:00
Juan RP ff80ee06e6 common/wrapper/cc: make this work with args containing whitespaces in quoted strings.
like -DFOO="foo blah". This fixes cross compilation in libsodium, tk and
others.
2015-10-25 10:11:40 +01:00
Juan RP b7d05057f9 xbps-src: create a cc/g++ wrapper to drop -I/usr/include -L/usr/lib in cross.
I'm tired of wasting extra time to fix software to remove standard include/lib dirs.
2015-10-23 11:56:30 +02:00
Juan RP a70c181019 xbps-src: create a dummy strip(1) wrapper.
This is to force packages to not strip any binary, and always let
xbps-src do this task for you.
2015-04-27 21:10:12 +02:00
Juan RP 0be33d385a xbps-src: move wrappers to common/wrappers. 2015-04-21 10:48:30 +02:00