Juan RP
7cffdb2d28
xbps-src/build_dependencies: handle deps provided by vpkgs correctly.
...
... otherwise deps specified by the cross-vpkg-dummy pkg aren't
taken into account. Assume that version provided by the vpkg is
good enough for building.
2015-03-28 03:22:07 +01:00
Juan RP
1c5f4690e6
xbps-src: always require current srcpkgs version in build dependencies.
...
That means that version comparators are not supported anymore in
hostmakedepends and makedepends.
This will ensure that a pkg is always built with the same build dependencies
everywhere, if the srcpkgs tree is uptodate.
2015-03-27 10:59:58 +01:00
Juan RP
b43411d4d2
xbps-src: show-build-deps: sort -u the results.
2015-03-26 04:18:42 +01:00
Juan RP
439807df63
xbps-src: setup_pkg: re-read conf file to propagate vars to build.sh.
2015-03-23 18:02:45 +01:00
Juan RP
451411ad21
xbps-src: set_build_options: read conf file for XBPS_PKG_OPTIONS.
...
This makes XBPS_PKG_OPTIONS* settings work via build.sh. Thanks chris2.
2015-03-23 17:57:23 +01:00
Juan RP
a86b30ba05
xbps-src: fix remaining issues with -N and -a.
2015-03-23 16:05:43 +01:00
Juan RP
03ef5b6804
xbps-src: make -N -a <target> work.
...
If required cross pkgs are not available in xbps repos, those are now built
automagically.
2015-03-23 12:44:37 +01:00
Christian Neukirchen
ca81f8e7f1
xbps-src/shutils/common.sh: check $version, - and _ are now forbidden.
2015-03-20 19:06:18 +01:00
Juan RP
55ce6f836f
xbps-src/bulk: do not use tac(1) in the tsort result, it's inverted otherwise.
2015-03-20 14:45:06 +01:00
Juan RP
ce859b4188
xbps-src: run_func on error must return 1 not 2.
2015-03-20 09:17:40 +01:00
Juan RP
95ca05e6e6
xbps-src: check_pkg_arch now exits with errcode 2.
2015-03-19 10:26:19 +01:00
Juan RP
0337b86f43
xbps-src: return 0 on success, 1 on error and 2 on nocross/broken (ignore).
2015-03-19 10:08:02 +01:00
Christian Neukirchen
be94bdd70a
xbps-src/shutils/common.sh: actively unset disabled build options to override default values.
2015-03-18 16:14:51 +01:00
Juan RP
aab0fe7ed3
xbps-src/bulk: declare some more local vars.
2015-03-17 11:04:09 +01:00
Juan RP
43258cc391
xbps-src: remove autodeps before running the phase unless -C is set.
...
This should avoid unexpected issues due to building pkgs with dependencies
installed by previous builds.
2015-03-15 10:34:13 +01:00
Juan RP
01afe81aac
xbps-src: fix -E to check for the target pkg being registered in repos.
...
rather than just checking if its binary package is available.
2015-03-15 09:54:52 +01:00
Juan RP
d8f69bde78
xbps-src: repair 'update-bulk' target ( close #1121 ).
2015-03-14 09:47:56 +01:00
Juan RP
a8962ace18
xbps-src/build.sh: only skip building/installing deps for target pkg with -N.
2015-03-14 09:24:35 +01:00
Juan RP
f2883afc1b
xbps-src/build.sh: fix xbps-src-doinstall() when pkg is a subpkg.
...
Close #1120
2015-03-14 09:06:44 +01:00
Juan RP
849d22e46d
xbps-src: refactor build logic into its own script (build.sh).
...
The build.sh script is now responsible to handle all the logic to build
a source package and its subpackages, as well as all its required
build dependencies. Thanks to this and subshells, dependencies are now
built into its own child process, creating a process tree that can go
nested as long as your system allows forking and has enough memory :-)
This fixes some issues that have been while building pkgs that have lots
of nested dependencies.
2015-03-14 07:52:29 +01:00
Juan RP
891b7e661e
xbps-src: move xbps repo conf files to etc/.
2015-03-13 09:53:30 +01:00
Juan RP
5c177c7b67
Require xbps>=0.44 for xbps-uunshare(8) to simplify code.
2015-03-12 18:56:14 +01:00
Juan RP
d694d022d1
xbps-src: use xbps-uunshare(8) to sync remote cross repos too.
2015-03-12 18:49:21 +01:00
Juan RP
388c3143ac
xbps-src: tweak the order of LDFLAGS set in templates.
...
Rather than appending to the final LDFLAGS, add it to the head,
this way packages that use LDFLAGS="-lfoo" will still work with --as-needed.
This fixes hsetroot build, at least.
2015-03-12 10:46:36 +01:00
Juan RP
31b544020f
xbps-src/libexec: remove double slash from shebang.
2015-03-11 08:28:13 +01:00
Juan RP
87d91f0594
xbps-src: fix previous.
2015-03-09 09:52:35 +01:00
Juan RP
c74c204a6e
xbps-src: do not sync repodata with -N.
2015-03-09 09:50:09 +01:00
Juan RP
b7063fa1bc
xbps-src: fix previous.
2015-03-05 21:47:41 +01:00
Juan RP
3d21df48e7
xbps-src: use xbps-uunshare(8) if it's available.
2015-03-05 21:44:22 +01:00
Juan RP
50a116d27a
xbps-src: set default compiler/preprocessor/linker flags via etc/conf.
...
Rather than setting them in the build profile, just set them in
etc/defaults.conf (overridable via etc/conf) to simplify the code.
- Also enable _FORTIFY_SOURCE=2 in CPPFLAGS.
- Also enable -z,relro in LDFLAGS.
As suggested by @chneukirchen.
2015-03-04 15:18:46 +01:00
Juan RP
d2f127d7ab
xbps-src: create log files in $XBPS_STATEDIR while installing bdeps.
2015-03-03 10:45:34 +01:00
Juan RP
083d139f68
xbps-src: setup_pkg: rename a var for clarity.
2015-03-01 19:29:16 +01:00
Juan RP
bdb798fa64
xbps-src: more improvements for -E and -t options.
...
If both options are set, check first if the binpkg exists before
creating the temporary masterdir, and clean this up properly.
2015-03-01 19:29:16 +01:00
Juan RP
2f524cf66a
xbps-src: cleanups for -E and -t.
...
-E also detect noarch binpkgs.
-t make sure to cleanup the temporary masterdirs.
2015-03-01 19:29:16 +01:00
Juan RP
8ee4a7c257
xbps-src: added -E opt to exit immediately if a binpkg already exists.
...
With -E if there's a binary package in a local repository for the
target pkg, exit immediately. This will be used by the upcoming xbps-fbulk(8).
2015-02-28 10:29:27 +01:00
Juan RP
cda175e0d6
xbps-src: make show-build-deps return err when arch is not supported.
2015-02-28 02:38:00 +01:00
Juan RP
429df59e2a
xbps-src: show-build-deps: fix an issue with subpkgs.
2015-02-28 01:52:23 +01:00
Juan RP
4130cd3e8f
xbps-src: show-build-deps: ignore virtual rdeps completely.
2015-02-28 01:46:38 +01:00
Juan RP
3107408b9e
xbps-src: show-build-deps: convert virtual rdeps.
2015-02-28 01:36:22 +01:00
Juan RP
98ae47f3eb
xbps-src: show-build-deps: also print rdeps and drop subpkgs.
2015-02-28 00:13:42 +01:00
Juan RP
ad74cbe1b4
xbps-src: show-build-deps: sanitize deps and use etc/virtual.
2015-02-27 23:48:14 +01:00
Juan RP
fcf24b660f
xbps-src: added -t option to create a temporary masterdir.
...
This temporary masterdir contains hardlinks of files stored in a real
masterdir, and once the target has finished will be removed.
Could be useful to create fully up to date and immutable real masterdirs
that are used as base for the temporary masterdirs.
2015-02-27 23:00:55 +01:00
Juan RP
d3811ca891
xbps-src: show-build-deps: take only_for_archs into account.
...
Silently error out if arch is not supported... my new bulk build code
expects ERROR if pkg cannot be built for the target arch.
2015-02-27 19:32:54 +01:00
Juan RP
a4ff74aeb6
xbps-src: make sure to not propagate <subpkg>_package() funcs.
...
Unset all them before processing a new template. Close #1023
2015-02-25 18:54:00 +01:00
Juan RP
df4c861f97
xbps-src: common/{,environment}/build_style -> common/${,environment}/build-style.
2015-02-21 12:13:07 +01:00
Juan RP
3adb1c5c6b
xbps-src: add environment/build_style to set env vars for build_styles.
2015-02-21 12:03:48 +01:00
Juan RP
f38c8ba711
xbps-src: fix per pkg options declared in etc/conf ( close #973 ).
2015-02-16 10:48:21 +01:00
Alessio Sergi
f417430e41
xbps-src: update_check: set default url to PYPI for Python packages
2015-02-10 12:15:10 +01:00
Eivind Uggedal
cc8762d3fb
update_check.sh: escape gnome package names.
2015-01-21 18:32:25 +00:00
Eivind Uggedal
3b7a76512d
update_check.sh: use external update file for overrides
2015-01-15 11:16:30 +00:00