Juan RP
8d9f0ed815
xbps-src: bulk: setup srcpkg vars before reading target template.
2014-11-11 10:41:20 +01:00
Juan RP
d982c558f2
xbps-src: correct test behaviour for build-profiles.
2014-11-10 12:30:07 +01:00
Juan RP
67c854fc64
xbps-src: chroot: do nothing if we are already in the chroot.
2014-11-10 11:57:46 +01:00
Juan RP
88c76fb588
xbps-src: also use build-profiles for bootstrap pkgs.
2014-11-10 11:25:36 +01:00
Juan RP
c2bd01c8d3
xbps-src: introduce build profiles and use it by default.
...
common/build-profiles contains the compilation flags used in native
builds, and are defined per architecture:
- x86_64 (glibc)
- x86_64-musl (musl)
If XBPS_CFLAGS or XBPS_CXXFLAGS are set in `etc/conf`, the settings
from the build profile will be overrided.
2014-11-10 11:17:34 +01:00
Juan RP
26682d2b86
Revert "Revert "xbps-src: return early if masterdir is not ready for chroot ops.""
...
This reverts commit c6cec1010f
.
2014-11-08 11:07:40 +01:00
Enno Boland
c6cec1010f
Revert "xbps-src: return early if masterdir is not ready for chroot ops."
...
This reverts commit d9943a330d
.
2014-11-08 11:02:38 +01:00
Juan RP
d9943a330d
xbps-src: return early if masterdir is not ready for chroot ops.
2014-11-08 10:52:38 +01:00
Juan RP
f7543fb5b6
xbps-src: libexec: simplify chdir to wrksrc/build_wrksrc.
2014-11-06 17:23:58 +01:00
Juan RP
457fd7aefb
xbps-src: respect XBPS_DEBUG_PKGS for bootstrap pkgs too.
2014-11-05 17:29:58 +01:00
Enno Boland
1a75818e7b
common: fix "$repository" = "nonfree" comparision.
2014-11-05 14:55:47 +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
Eivind Uggedal
aeb7baef31
Revert "update_check.sh: do not check packages without distfiles"
...
This reverts commit e67c2718f2
.
2014-11-03 12:18:28 +00:00
Eivind Uggedal
e67c2718f2
update_check.sh: do not check packages without distfiles
2014-11-03 11:45:03 +00:00
Eivind Uggedal
451b5d3bcc
update_check.sh: reset regex before each site
...
Fixes a bug where python projects from PYPI which have a github
homepage gets the github regex when checking PYPI.
2014-11-03 11:37:08 +00:00
Eivind Uggedal
b7219e9407
update_check.sh: fix globals
2014-11-03 11:37:08 +00:00
Christian Neukirchen
637dcf9472
update_check.sh: scan tags page instead of using the API.
2014-11-02 16:31:17 +01:00
Christian Neukirchen
01646ec643
update_check.sh: escape pkgname in default regexp.
2014-11-02 15:54:08 +01:00
Christian Neukirchen
ebbb33b519
update_check.sh: ignore SSL errors.
2014-11-02 15:45:57 +01:00
Christian Neukirchen
85ea2492c3
update_check.sh: regard dashes as dots for version comparison.
2014-11-01 20:37:17 +01:00
Christian Neukirchen
bcaeae6d24
update_check.sh: extract launchpad project name from URL instead of guessing it.
2014-11-01 19:43:55 +01:00
Christian Neukirchen
c36f464f4d
update_check.sh: extract sourceforge project name from URL instead of guessing it.
2014-11-01 19:04:21 +01:00
Juan RP
07dd4ad339
xbps-src: update-check: avoid bashism, requested by @chneukirchen.
2014-11-01 15:23:51 +01:00
Juan RP
1e445fe096
xbps-src: update-check: return if curl not available; simplify output for match.
2014-10-31 21:24:07 +01:00
Christian Neukirchen
60ac25fd1f
xbps-src: add update-check.
2014-10-31 20:43:35 +01:00
Juan RP
cc45da3f6d
xbps-src: indent enabled build options correctly too.
2014-10-30 07:09:33 +01:00
Juan RP
3f31573ed5
xbps-src: align show options correctly.
2014-10-28 10:15:58 +01:00
Juan RP
58bbb98712
xbps-src: move ccache/distcc to hostdir, to make them shared by multiple masterdirs.
...
This way a single ccache or distcc directory can be shared by multiple
independent masterdirs.
2014-10-26 10:22:30 +01:00
Juan RP
4545aca5e3
xbps-src: repair bootstrap installation.
2014-10-18 16:45:16 +02:00
Juan RP
033c4ed0f5
xbps-src: remove WIP repo delta support.
...
- it never worked correctly
- it's WIP and looks like it will be stalled forever
- won't be necessary anymore with xbps-0.42
2014-10-14 19:19:07 +02:00
Juan RP
6928b52a4e
xbps-src: full switch to void-packages.
2014-10-11 11:15:02 +02:00
Juan RP
4b6129eeb7
xbps-src: chroot: use /void-packages.
2014-10-11 11:11:09 +02:00
Juan RP
77d1837155
xbps-src: misc tweaks for zap and use void-packages too in chroot ops.
2014-10-11 11:02:57 +02:00
Juan RP
774685aaa2
xbps-src: create the void-packages symlink unconditionally.
2014-09-28 08:19:32 +02:00
Juan RP
62e0fb53be
xbps-src: export XBPS_WRAPPERDIR for cross builds (could be used for native too).
2014-09-28 08:02:12 +02:00
Juan RP
3efa28ecbf
xbps-src: create a void-packages symlink for xbps>=0.41.
2014-09-28 07:25:09 +02:00
Juan RP
5202f22f48
xbps-src: define some xxx_FOR_BUILD vars for cross builds.
2014-09-25 16:37:14 +02:00
Juan RP
952848ebc3
xbps-src: make sure a target is always passed in to xbps-uhelper.
2014-09-25 12:44:36 +02:00
Juan RP
1ce278f035
xbps-src: drop fakeroot; xbps-create(8) is our friend.
...
- This should work for almost 90% current packages, as reported by OpenBSD/ports.
- Packages that use install -o <user> -g <group> will get fixed progressively.
- xbps-create(8) by default sets pkg files as 0:0, if any pkg needs special
permissions those can be set via INSTALL scripts (for now).
2014-09-24 19:51:17 +02:00
Juan RP
8063adde71
xbps-src: for runtime deps (depends) do not resolve vpkgs.
...
...otherwise the following would happen:
- foo depends on musl
- musl is provided by cross-vpkg-dummy
- musl is then detected as resolved and it's not built.
2014-09-21 11:44:45 +02:00
Juan RP
dbde6e849e
Revert "Revert "xbps-src: when all deps have been processed exit directly.""
...
This reverts commit ad79b8e7e2
.
2014-09-21 11:25:38 +02:00
Juan RP
75b6468fa0
Introduce a way to override dependencies for all pkgs thru a file.
...
The `etc/defaults.virtual` file contains the default replacement
for our use cases; at this moment we only use it to use `eudev`
rather than `systemd` for udev.
If `etc/virtual` exists it overrides the settings of `etc/defaults.virtual`.
2014-09-06 12:43:24 +02:00
Juan RP
ad79b8e7e2
Revert "xbps-src: when all deps have been processed exit directly."
...
This reverts commit 9bf1ba5f88
.
I still think the behaviour I observed was related to something else.
2014-09-05 12:57:15 +02:00
Juan RP
13c2ca3bd2
xbps-src: reorganize code in more sections.
2014-09-05 11:10:07 +02:00
Juan RP
9bf1ba5f88
xbps-src: when all deps have been processed exit directly.
2014-08-30 20:45:57 +02:00
Juan RP
6d20b9a05a
xbps-src: move vopt_* helpers to environment/setup/options.sh.
2014-08-30 09:10:11 +02:00
Juan RP
790202ddbd
xbps-src: move helpers to environment; there's no need to have them.
...
Those helpers were just setting up some extra functions that can be used
on templates, and this can be done already via environment, so let's remove
the helpers completely.
2014-08-30 09:01:29 +02:00
Dominik Honnef
cdd2ce0da4
add helpers for working with options
...
Add the helpers vopt_if, vopt_with and vopt_enable that simplify common
option-based operations.
Instead of a bunch of
if [ "$build_option_foo" ]; then
configure_args+=" --with-foo"
makedepends+=" foo-devel"
else
configure_args+=" --without-foo"
fi
one can use
configure_args="... $(vopt_with foo)
makedepends="... $(vopt_if foo foo-devel)"
instead.
We're adding these functions to common/xbps-src/shutils/common.sh but
that might not be the ideal place. I would've preferred
common/helpers/options.sh, but helpers are only available in the
individual phases, not when the template itself gets parsed.
2014-08-30 00:39:46 +02:00
Juan RP
e582f328b3
xbps-src: repair and improve the bootstrap target (from scratch).
...
- There's no need to install rdeps into the masterdir, just base-files.
- There's no need to exit if XBPS_TARGET_PKG == sourcepkg, just return.
- After building base-chroot, install bootstrap binary packages.
2014-08-26 10:33:15 +02:00
Juan RP
1651a5fe6e
xbps-src/doinstall: there's no need to remove pkg metafiles on destdir.
2014-08-26 09:55:40 +02:00