Commit Graph

50 Commits

Author SHA1 Message Date
Gonzalo Tornaría 1d4a9d6c71 xbps-src: keep http_proxy and other lowercase proxy variables 2023-01-04 22:24:13 +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
Đoàn Trần Công Danh 581cdacc5b env/setup/sourcepkg: unset python3 build-helper variables 2022-11-05 20:03:57 +07: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
John 6ce531b231 common: unser PKG_CONFIG before sourcing templates, set PKG_CONFIG also for native 2020-05-29 14:30:06 +02:00
Jürgen Buchmüller f636a5f078
environment/setup/sourcepkg.sh: unset GIR_EXTRA_...
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
2019-05-07 15:33:47 +02:00
maxice8 415e6cd701 meta: remove support code for only_for_archs= 2019-03-14 19:20:07 -03:00
maxice8 1ba87eee57 meta: unset the pre_patch() do_patch() post_patch() 2019-02-27 22:56:19 -03:00
maxice8 1bda166a6c
meta: fix unsetting of only_for_archs 2019-02-26 09:45:25 -03:00
Enno Boland 38c457e1aa add compatibility code for noarch/only_for_archs 2019-02-15 13:19:44 +01:00
Enno Boland 6eb37e35b2 common: merge only_for_archs and noarch=yes into one.
* noarch=yes is replaced with archs=noarch
* only_for_archs= is renamed to archs=
* archs= allows the use of wildcards and negations; first matching rule applies:
  * archs="*-musl" will build the pkg only for musl-libcs
  * archs="~*-musl" will build the pkg only on non-musl-libc
  * archs="x86_64-musl ~*-musl" will build for x86_64-musl and any non-musl
    arch.
* archs= defaults to "*"
2019-02-15 13:19:44 +01:00
maxice8 5465d131f6
environment/setup/sourcepkg.sh: unset build_helper 2019-01-25 20:44:41 -02:00
maxice8 202b6a7b97 setup/sourcepkg.sh: unset fetch_cmd 2019-01-21 16:17:02 -02:00
maxice8 26eb17f941 setup/sourcepkg.sh: unset more variables that can be set by the template 2019-01-19 23:02:28 -02:00
Duncaen 94ed33657b Revert "common/: add support for changelog field."
This reverts commit 8599efd9fd.
2018-05-04 16:46:46 +02:00
maxice8 8599efd9fd common/: add support for changelog field.
This commits allows ./xbps-src show to show the changelog field and for
changelog to be included with the -c/--changelog option via xbps-create.

Closes: #14102 [via git-merge-pr]
2018-05-03 22:58:27 -04:00
Enno Boland 0d446641e7 build-style/gnu-configure.sh: use generic do_check function 2017-11-19 20:50:48 +01:00
Michael Gehring a8b8efe636 common/environment/setup/sourcepkg.sh: unset {pre,do,post}_check, checkdepends 2017-11-18 14:24:12 +01:00
Toyam Cox 2b19b7eb58 build_style/gnu-makefile: allow good makefiles 2017-04-25 16:20:59 -04:00
Jürgen Buchmüller 272114cd05 xbps-src: trying to fix FFLAGS construction
This still isn't perfect. When the common/xbps-src/shutils/chroot.sh
function chroot_init() is called, the value for $XBPS_FFLAGS, which is
defined in common/build-profiles/bootstrap.sh, is empty.

Put the immediate value into the generated /etc/xbps/xbps-src.conf
file until someone finds out where passing the value of $XBPS_FFLAGS
throughout the scripts is missing.
2017-03-08 17:36:22 +01:00
Alessio Sergi 29c37543cf xbps-src: introduce python_version 2016-11-17 17:42:54 +01:00
Alessio Sergi 4e6576e7a4 xbps-src: add support for python3 pkgs
- python_module build style now builds modules for python2/3 by default
- new python2_module and python3_module build styles for building
  python2-only and python3-only packages respectively
- no more python_versions
- no need to define pycompile_version for Python modules anymore
  (still needed for non-Python modules though)
- Python version and paths are now guessed automatically and a set of
  useful variables can now be used in templates
- #!/usr/bin/python2 and #!/usr/bin/python3 are now the default shebangs
- /usr/bin/foo2 and /usr/bin/foo3 are now the default names for bin
  scripts (for use with alternatives)
2016-10-16 16:59:31 +02:00
Juan RP 917024dd19 Merge pull request #2998 from Gottox/no-force_debug_pkgs
common/xbps-src: remove force_debug_pkgs variable
2015-11-17 16:54:10 +01:00
Juan RP 3fdad91bf9 xbps-src: make 'build_pie' the default; use 'nopie' to disable it.
Discussed with @chneukirchen.
2015-11-17 16:47:19 +01:00
Enno Boland c7f2f9840f common/xbps-src: remove force_debug_pkgs variable 2015-11-17 15:36:51 +01:00
Christian Neukirchen 5093d6b0c1 New build_style haskell-stack. 2015-09-14 16:13:13 +02:00
Juan RP 279ead0999 xbps-src: added XBPS_ALLOW_RESTRICTED conf option for restricted pkgs.
Such packages should set the `restricted' var to allow building a binary package.
Note that such packages do not allow redistribution of sources and binaries,
so that it's up to the user if (s)he wants to pkg it locally.
2015-07-26 10:22:35 +02:00
Juan RP 9870868948 xbps-src: added "build_pie" var to build PIE binaries. 2015-03-04 17:00:19 +01:00
Juan RP da68a7b63f xbps-src: reverts is now propagated to subpkgs. 2015-01-18 19:34:20 +01:00
Eivind Uggedal 3b7a76512d update_check.sh: use external update file for overrides 2015-01-15 11:16:30 +00:00
Eivind Uggedal 154c5cd605 update_check.sh: support for update_version (upstream version). 2014-11-24 14:57:41 +00:00
Juan RP 8ade12549f xbps-src: rename disable_debug to nodebug, to follow our naming convention. 2014-11-16 11:52:36 +01:00
Christian Neukirchen 4015ecf3c1 xbps-src: add update_* to common/environment/setup/sourcepkg.sh 2014-11-07 16:03:52 +01:00
Juan RP 97a5e16fab xbps-src: make "repository" per srcpkg, i.e don't override it for subpkgs. 2014-11-07 11:35:53 +01:00
Enno Boland bf9ea156d8 move "repository" variable from environment/setup to environment/setup-subpkg 2014-11-05 14:15:25 +01:00
Enno Boland 59cc3e0d45 replace nonfree=yes with repository=nonfree.
This way it is possible to set up package specific repositories for
i.e. specific devices.
2014-11-05 14:15:25 +01:00
Juan RP d9ff56e873 common/environment/setup/sourcepkg.sh: unset do_clean() too. 2014-10-11 10:19:16 +02:00
Juan RP b2976da1c8 xbps-src: use "disable_debug" to disable -dbg subpkg creation. 2014-10-11 09:57:27 +02:00
Juan RP 3b6b9eb774 environment/setup: added reverts var (hi @Gottox) 2014-09-30 06:22:11 +02:00
Juan RP 12a3b16e42 Introduce "broken" var to skip building broken packages; make "nocross" not error out.
- broken var simply exits (without error) and skips building a pkg.
- nocross var now simply exits without an error, to make buildbot continue building pkgs.
2014-08-22 16:49:23 +02:00
Juan RP 108a6d3fac xbps-src: introduce "nocross" to not allow cross compilation. 2014-08-21 12:07:44 +02:00
Juan RP c49e01fc15 xbps-src: make it possible to override the subpackages list via ${subpackages}.
This overrides the automatic list generated by xbps-src and it's overridable
to change the processing order of subpackages.
2014-07-23 15:44:36 +02:00
Juan RP 8b30d9d657 xbps-src: make "nonfree" shared by the main pkg and its subpkgs. 2014-06-09 12:07:44 +02:00
Enno Boland 2415b98064 common/build_style: adding python_versions variable
This variable contains the versions of python for which this packages
will be built. Multiple versions can be seperated by whitespace.
2014-05-01 16:07:07 +02:00
Juan RP 0026342862 Infrastructure changes to allow unsetting template vars/funcs.
xbps-src-112 does not unset those vars/funcs anymore, so it's a work
that must be done via common/environment/setup{,-subpkg}.
2014-03-19 09:03:21 +01:00