Commit Graph

347 Commits

Author SHA1 Message Date
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
tibequadorian 9c7a51e6c9 common/environment/setup/misc.sh: add ${VIDEOLAN_SITE} 2022-03-20 08:02:18 +01:00
Piotr Wójcik e7111aaed6 build-style/R-cran: allow to override distfiles 2022-01-29 19:51:56 +01:00
Érico Nogueira 7184064103 texlive: update to 20210325.
For ownership.txt changes:

- all files using the texlive version were identical between packages
- tikztosvg had more features in texlive-pictures
2021-12-11 00:18:04 -03:00
John ca73e4b1d2
common/environment: set debug-prefix-map to prevent ccache cache misses
Packages with debug symbols do invalidate their cache with every version
change since $wrksrc does contain the version number and is getting cached

Closes: #33002 [via git-merge-pr]
2021-12-08 13:04:22 +01:00
Daniel Eyßer 06cec8178c common/environment/build-style: add zig-build.sh 2021-11-29 02:11:55 -03:00
Érico Nogueira 224d7a37a6 common/environment/build-style: remove nostrip from go.sh
Hasn't been necessary in Go for a long time [1], so we should take
advantage of that. For an example of the advantages, the 'micro' editor
went from 15MB to 11MB on disk.

[1] https://honnef.co/posts/2016/10/go-and-strip/
2021-11-14 16:23:13 -03:00
Joel Beckmeyer f694021f76 common/environment/setup: properly handle symlinks in vsv 2021-10-29 15:40:25 +02:00
Andrew J. Hesford 9b61ec59f9 python3: update to 3.10.0. 2021-10-09 08:00:19 -04:00
Leah Neukirchen 6089ec47be setup/git.sh: fix finding gitdir 2021-09-28 22:03:26 +02:00
Đoàn Trần Công Danh 4b239f5560 setup/git.sh: parser GIT_COMMITTER_DATE with plumbing command
To avoid:
- Commit's signature
- Future change in git log format
- Revision Walk

Close #33165
2021-09-28 22:16:04 +07:00
Michal Vasilek b30ea3cffe hooks/post-install: add fix permissions hook 2021-08-26 21:46:44 +02:00
Đoàn Trần Công Danh b44a69c772 vcompletion: return failure on wrong arguments 2021-08-08 11:24:20 +07:00
Leah Neukirchen 0c9b07347d darcs: unbreak i686.
Closes #32221.
2021-07-28 14:51:24 +02:00
Érico Nogueira 2a36c42b21 build-style/haskell-stack: broken for i686*.
This commit is only to unlock builders.

Builds error out with:

=> debug-me-1.20200820_2: running do_build ...
=> Using stack config in stack.yaml.
Cabal file info not found for posix-pty-0.2.1.1, updating
Selected mirror https://hackage.haskell.org/
Downloading root
Waiting to acquire cache lock on /builddir/debug-me-1.20200820/.stack/pantry/hackage/hackage-security-lock
fdLock: invalid argument (Invalid argument)

Tracked in: #32221
2021-07-28 02:03:29 -03:00
Đoàn Trần Công Danh d8e2056a8f xbps-src: retire XBPS_PKGDESTDIR
Historically, PKGDESTDIR was only set during pkg_install, and
XBPS_PKGDESTDIR was set to indicate that we're in subpkg's
pkg_install.

However, from 0b95cb8f5d, (Merge xbps-src code to make it usable in
a standalone mode., 2014-03-22), PKGDESTDIR is always set,
regardless of states.

Let's drop all usages of XBPS_PKGDESTDIR.

While we're at it, error out of vmove is used outside of subpkg.
2021-07-11 16:21:29 +07:00
Đoàn Trần Công Danh a653676c88 build-style/cmake: only depends on cmake for non-cmake package
* In the next change, we will remove it from cmake template entirely
2021-07-02 07:28:04 +07:00
Piotr Wójcik 88c9f70cfa build-style/cmake: move CTEST_OUTPUT_ON_FAILURE to environment 2021-06-11 22:45:07 +02:00
Piotr Wójcik 7ffd292bc5 common/environment/check: enable offscreen test for qt 2021-06-11 22:45:07 +02:00
Đoàn Trần Công Danh c310295bfe build-style/cmake: always depends on cmake in host
All packages that build with cmake build-style switched from
cmake-bootstrap to cmake. Remove the conditional.
2021-06-07 15:38:30 +07:00
Enno Boland d2622f0b91
common/environment: update GNOME_SITE to new url 2021-04-09 18:52:36 +02:00