Commit Graph

367 Commits

Author SHA1 Message Date
Andrew J. Hesford c6431f06c5 common/build-helper/meson.sh: new build helper, used by meson build style 2023-09-22 10:16:59 -04:00
q66 937272e967 xbps-src: abstract away non-portable stat(1)
This implements semi-portable abstractions for both GNU and BSD
flavors of stat.
2023-09-14 08:48:59 +07:00
q66 4349108b68 setup/git.sh: fix non-portable sed invocation
This lets xbps-src work in non-GNU environments.
2023-09-14 08:48:59 +07:00
Đoàn Trần Công Danh a6c4206699 vsrccopy: fix detection of last argument 2023-08-30 22:48:53 +07:00
Đoàn Trần Công Danh fe0d548527 vsrcextract: drop the heuristic to prefer tar over bsdtar
Only kexec-tools has problem with bsdtar, the heuristic is problematic
with those packages with tar in hostmakedepends
2023-08-28 17:03:37 +07:00
Leah Neukirchen 26ee82b72c add configure/autoconf_cache/riscv64-linux 2023-08-25 17:06:56 +02:00
John 5de81f076a go: add riscv64 2023-08-25 17:06:56 +02:00
Đoàn Trần Công Danh c359aaaa46 build-style/go: allow override GOTOOLCHAIN 2023-08-24 21:05:07 +07:00
Kirill 4c22fd9b48 common/build-style/go.sh: update go build style for go1.21.0 2023-08-23 16:06:44 -05:00
Đoàn Trần Công Danh 77a4de4385 xen: use vsrcextract 2023-08-21 11:27:32 +07:00
Đoàn Trần Công Danh a1d3f7de1d kexec-tools: drop custom do_extract 2023-08-21 11:27:32 +07:00
Đoàn Trần Công Danh 2deec738e1 do-extract: move main logic into helper function 2023-08-21 11:27:32 +07:00
Đoàn Trần Công Danh 1f2932447a build-style/cmake: set PATH in environment 2023-08-21 09:11:59 +07:00
Đoàn Trần Công Danh 6b9c9c7dfa build-style/cmake: support build with cmake-bootstrap 2023-08-17 19:59:36 +07:00
cinerea0 5bb9d7c856 xbps-src: new vopt_feature helper 2023-07-26 20:31:47 +02:00
Đoàn Trần Công Danh 4fcd6a35a9 setup: unset bash exported function
Fix: #45239
2023-07-26 07:58:23 +07:00
Michal Vasilek 9e47b517b0 common: remove unused python-module build style
python-module build style is now unused, all projects that want to have
a python2 and a python3 package should be split to two templates
2023-06-18 20:24:37 +02:00
Marcin Puc 6bb50c7e2d common/environment/build-style/cargo.sh: remove obsolete sparse crates.io config 2023-06-09 15:52:10 -04:00
Leah Neukirchen 4f0c3eccbd autoconf_cache/common-linux: remove broken line
This typo was added in 2014 and now starts to break gnulib autoconf. :clown:
Kill the whole thing with fire.
2023-05-19 21:18:58 +02:00
classabbyamp 7b4a6ddb05 common/environment/setup/install.sh: support encoding in vman
`vman out/foo.fr.UTF-8.1` should install `usr/share/man/fr.UTF-8/man1/foo.1`,
not `usr/share/man/fr/man1/foo.UTF-8.1`
2023-05-06 10:39:38 -04:00
OpenSauce04 f3888e3b54 xbps-src: Replace non-standard English "unexistent" with "nonexistent" 2023-04-17 12:44:48 -05:00
Đoàn Trần Công Danh cfcb6dafb5 build-style/R-cran: fix do_fetch 2023-04-06 16:45:22 +07:00
Marcin Puc 3641d47af7 build-style/cargo: use env var to select sparse index mode 2023-04-02 16:16:10 -04:00
mhmdanas 0fa47e5979 common: use HTTPS where working. 2023-03-07 07:44:23 +07:00
classabbyamp f134b1d39c common/environment/setup/install.sh: always add log service
- overridable by having a log service at `$pkgname/files/$service/log`
- warns if stderr is not redirected in the main service
- uses a sane default run script with the service name set as tag and
  daemon facility
2023-02-09 21:36:13 -05:00
zlice 12e6985c34 common: cleanup trailing whitespaces 2023-02-07 03:26:02 -05:00
Tiago Carvalho 6bbd4166a0 common/environment/build-style/go.sh: allow setting CGO_ENABLED from templates 2023-01-13 18:57:23 -05:00
Piraty d4b50ed2cf
common/environment/setup/misc.sh: fix typo 2023-01-11 22:04:36 +01:00
Đoàn Trần Công Danh 3dcac23aff environment: set -ffile-prefix-map
We're setting -fdebug-prefix-map to strip directory prefixes from debug
info, which will help ccache and reproducibility.

However, -fdebug-prefix-map doesn't help with those macros like __FILE__
and __BASE_FILE__, which needs another flags: -fmacro-prefix-map.

Replaces -fdebug-prefix-map with -ffile-prefix-map which is an alias for
both `-fdebug-prefix-map` and `-fmacro-prefix-map`. (This flag is
available since GCC 8 and Clang 10)
2023-01-05 08:23:26 +07:00
Gonzalo Tornaría 1d4a9d6c71 xbps-src: keep http_proxy and other lowercase proxy variables 2023-01-04 22:24:13 +07:00
oreo639 647562d909 environment/autoconf_cache: Disable 64-bit time_t by default 2022-12-17 10:41:49 +07:00
classabbyamp 120dbc7fc6
common/environment/setup/sourcepkg.sh: don't unset $UBUNTU_SITE 2022-12-12 13:42:39 -05:00
Đoàn Trần Công Danh aa3a922c52 env/setup/sourcepkg: fix for multiple env variables' value 2022-12-09 08:31:27 +07:00
Đoàn Trần Công Danh 6174bd6afd env/setup/sourcepkg: unset all exported variables
except known to be good one.

See 581cdacc5b and 253b9f0b98
2022-12-03 17:27:29 +07:00
Andrew J. Hesford 936a6ed85d build-style/python3-pep517.sh: abandon pip 2022-11-09 21:24:02 -05:00
Đoàn Trần Công Danh f6a99075c6 built-style: R-cran: build inside build_wrksrc 2022-11-09 18:50:32 +07:00
Đoàn Trần Công Danh 74ba0a8d67 environment: remove create_wrksrc from all build-style 2022-11-08 22:30:37 +07:00
Đoàn Trần Công Danh 581cdacc5b env/setup/sourcepkg: unset python3 build-helper variables 2022-11-05 20:03:57 +07:00
Andrew J. Hesford 6504d8e133 python3: update to 3.11.0.
Also include bluez headers at build time to allow Bluetooth sockets in
the Python stdlib.

h/t: @sgn
2022-11-05 08:21:20 -04:00
Jan Christian Grünhage ca8c4fb08f build-style/cargo: produce auditable binaries 2022-11-03 03:50:11 -04:00
Đoàn Trần Công Danh ddb9e6eb19 environment: set -fdebug-prefix-map relative to build_wrksrc 2022-09-18 20:37:21 +07:00
Đoàn Trần Công Danh 95159532cc C{,XX}FLAGS: change -fdebug-prefix-map for cmake and meson
Both of them build inside a builddir. This change ease the debugging
process.
2022-09-18 20:37:21 +07:00
Duncaen 500a3c8f49 xbps-src: clean up fetch hook and allow mirroring 2022-09-06 21:41:44 +07:00
classabbyamp 74f4492e5f common/{,environment}/build_style/python3.sh: use python3 build_helper 2022-08-29 23:25:05 -04:00
classabbyamp 5912b3f5b7
common/environment/build-style/go.sh: fix internal linking on i686 2022-08-10 15:17:27 -04:00
Duncaen 11c93a1e79
common: correctly unset build_option_* variables
We can use the bash feature ${!prefix@}/${!prefix*} which expands to
all variables with the prefix.
This avoids leaking build_options between sourced templates.
2022-07-05 17:22:38 +02:00
classabbyamp 5c6ae7a463 common: add disable_parallel_check 2022-06-23 23:08:03 -05:00
Jami Kettunen 9f7f5629c6 common: unset CMAKE_GENERATOR before sourcing templates
When building dependencies of packages this has to be unset to avoid
using e.g. CMAKE_GENERATOR="Unix Makefiles" for a package which expected
to build with the default of make_cmd=ninja, and would subsequently fail
with "ninja: error: loading 'build.ninja': No such file or directory"
during do_build() if do_configure() generated a Makefile instead of a
build.ninja file.
2022-06-05 17:22:54 -03:00
Michal Vasilek 71b11fdbdb xbps-src: add make_check_pre
$make_check_pre can be used for wrapper commands like xvfb-run or
dbus-run-session which are common ways to make tests work. This way many
templates can avoid defining their own do_check function.
2022-05-04 10:46:53 +02:00
Michal Vasilek 769ea65a5e xbps-src: add strict mode 2022-04-07 20:27:41 +02:00