Commit graph

68 commits

Author SHA1 Message Date
Juan RP
7136110441 xbps-src: if pkgver from repos not matched, build from src. 2011-11-10 14:33:59 +01:00
Juan RP
6c900c5011 Revert "xbps-src: install_pkg_from_repos: run cmd through eval."
This reverts commit c818dcd511.

Shell redirection happens again with that commit, so reverted for now.
2011-11-10 11:35:48 +01:00
Juan RP
c818dcd511 xbps-src: install_pkg_from_repos: run cmd through eval. 2011-11-09 15:52:20 +01:00
Juan RP
5a2cc5b5bd xbps-src: infrastructure changes required for "nonfree" keyword in tmpls.
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars.
- 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre.
- Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE.
- make-repoidx target now creates the index for all "known" directories specified
  via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
2011-11-08 11:56:17 +01:00
Juan RP
72d47e2535 xbps-src: changes to build deps from sourcepkg if no binpkg is found. 2011-11-01 12:09:06 +01:00
Juan RP
1e79ff97ee xbps-src: install_pkg_from_repos(): wrong return value was checked in. 2011-11-01 06:44:07 +01:00
Juan RP
ce64a7c5bf xbps-src: improve builddep code for XBPS_PREFER_BINPKG_DEPS and xbps>=0.11.0. 2011-10-31 04:04:31 +01:00
Juan RP
713247b16b xbps-src: install_pkg_from_repos: avoid shell redirections via pkgdeps. 2011-10-31 03:10:35 +01:00
Juan RP
6fb8566235 xbps-src: more shell quoting love. 2011-10-29 19:44:44 +02:00
Juan RP
aa67f4ffdb xbps-src: install_pkg_deps: another performance change. 2011-10-28 11:22:43 +02:00
Juan RP
6071688250 xbps-src: optimize two funcs by removing redundant setup_tmpl() call. 2011-10-28 11:07:05 +02:00
Juan RP
5379eff94b xbps-src: reduce install_dependencies_pkg() by using a conditional. 2011-10-26 19:47:52 +02:00
Juan RP
777e051099 xbps-src: don't remove bootstrap pkgs in autoremove case. 2011-10-24 21:57:40 +02:00
Juan RP
784c44b359 xbps-src: install binpkgdeps sequentially, to know which one failed. 2011-10-24 21:24:43 +02:00
Juan RP
31452a3a22 xbps-src: builddep_funcs.sh: use install_pkg_from_repos for just 1 pkgdep. 2011-10-24 13:58:59 +02:00
Juan RP
83b70adc30 xbps-src: remove temp file in non-error case for previous. 2011-10-14 19:18:34 +02:00
Juan RP
28f7abf0f5 xbps-src: when installing reqdeps from binpkgs, create logs in /tmp via mktemp. 2011-10-14 19:08:56 +02:00
Juan RP
6623f95f7a xbps-src: improve how deps are passed in to xbps-bin(8). 2011-10-09 14:07:57 +02:00
Juan RP
355699f4b4 xbps-src: don't quote twice the same vars in notinstalled_deps. 2011-10-08 12:43:51 +02:00
Juan RP
f3c6961067 xbps-src: more shell quoting fixes to binpkg deps code. 2011-10-08 08:18:48 +02:00
Juan RP
843697acd6 xbps-src: even more fixes for binpkg deps. 2011-10-05 10:30:15 +02:00
Juan RP
8d300ed38d xbps-src: some more improvements for binpkg deps. 2011-10-04 22:01:12 +02:00
Juan RP
9cd5c69530 xbps-src: another shell quoting fix. 2011-10-03 21:36:42 +02:00
Juan RP
6501c21dc0 xbps-src: remove excessive shell quoting for XBPS_PREFER_BINPKG_DEPS. 2011-10-03 12:12:20 +02:00
Juan RP
07db31cb54 xbps-src: cleanup version/revision mess. 2011-07-18 16:25:18 +02:00
Juan RP
2a01a90588 xbps-src: fixed some bugs in autoremove_pkg_dependencies().
- Do not remove subpkgs, only the sourcepkg.
- Do not rmeove the pkg we wanted to install.
- Simplify the code a bit.
2011-07-15 00:15:09 +02:00
Juan RP
5355f32aca xbps-src: support building bootstrap pkgs in chroot with -D.
The base_chroot var has been renamed to bootstrap, to avoid conflicts
with the base-chroot pkg. So now you can rebuild any bootstrap package
if the masterdir is ready (base-chroot already) installed and
installation is only to destdir.
2011-07-06 08:16:56 +02:00
Juan RP
24bad5c713 xbps-src: make -K and -C really work. 2011-07-04 21:29:11 +02:00
Juan RP
9b52e244c6 xbps-src: added -K flag to KEEP automatic installed deps, cleanups. 2011-07-04 19:07:08 +02:00
Juan RP
9a067bf3f1 xbps-src: install required deps in one pass with xbps-bin(8). 2011-07-03 10:20:38 +02:00
Juan RP
543263c70f xbps-src: make sure to always remove autodeps in errors. 2011-07-03 08:27:16 +02:00
Juan RP
0c26524c28 xbps-src: improve even more install_pkg_from_repos(). 2011-07-03 01:27:55 +02:00
Juan RP
c124ec1bef xbps-src: handle another ENOENT case from xbps-bin. 2011-07-02 22:53:03 +02:00
Juan RP
7984b39928 xbps-src: fix fetch phase with depends, performance improvements.
- The fetch phase *must* run after installing pkg dependencies,
  otherwise it could fail if we need them for fetching.

- Performance improvements for xbps-src. Only source shutils files
  at the start, not every time we use a function.
2011-07-02 17:04:08 +02:00
Juan RP
5d7873a5b2 xbps-src: massive rewrite of builddeps resolving code.
This speeds up the process of resolving builddeps with
XBPS_PREFER_BINPKG_DEPS enabled and disabled by ~15% aproximately.

This fixes also some bugs I've found while building a massive rebuild
of all packages with XBPS_PREFER_BINPKG_DEPS enabled.
2011-07-01 17:48:29 +02:00
Juan RP
09370643f1 xbps-src: [install_pkg_from_repos] handle 2nd ENOENT. 2011-06-30 13:45:11 +02:00
Juan RP
55ada9c447 xbps-src [install_pkg_from_repos]: if unset, create it. 2011-06-30 12:33:04 +02:00
Juan RP
87f2599c17 xbps-src: improve PREFER_BINPKG_DEPS, take 2.
When installing pkgdeps from repositories more errno values are handled
from xbps-bin, this help us to find why a package failed to install.

Also stdout/stderr output from xbps-bin is redirected to
$wrksrc/.xbps_install_dependency_$pkgdepname.log to see how it was
installed or why it failed to install.

Do autoremove packages in more places to be sure that if something went
wrong those packages are always removed.
2011-06-30 10:26:31 +02:00
Juan RP
f9b1494648 xbps-src: ignore PREFER_BINPKG_DEPS for bootstrap pkgs. 2011-06-28 23:27:41 +02:00
Juan RP
09c08fe732 xbps-src: simplify a bit resolving deps with binpkgs code. 2011-06-25 17:41:52 +02:00
Juan RP
8419094808 xbps-src: really fix previous. 2011-06-22 21:06:14 +02:00
Juan RP
46fee555ec xbps-src: fix bad quoting when installing from binpkgs. 2011-06-22 20:55:06 +02:00
Juan RP
bcbfb0c63c xbps-src: install_dependencies_pkg(): use install_pkg_with_binpkg(). 2011-06-22 12:32:16 +02:00
Juan RP
6f5d00003c xbps-src: fail when a binpkg builddep cannot be installed. 2011-06-20 19:08:47 +02:00
Juan RP
d2ad1c2b12 xbps-src: if XBPS_PREFER_BINPKG_DEPS is set install deps as automatic. 2011-06-20 18:31:50 +02:00
Juan RP
3da3783333 xbps-src: improve msg_* funcs and update all callers. 2010-12-20 00:22:12 +01:00
Juan RP
eaf3247352 builddep_funcs: if there are no build deps, do not print a wrong message. 2010-12-11 01:46:55 +01:00
Juan RP
ceefb18bff xbps-src: multiple improvements to messages and phases.
- Prefix all messages with 'Package 'pkgname (version)': ..." to really
  understand what's going on. Add more messages in some stages...
- Do not run pre/post_{configure,build,install} or do_{build,install} stages
  if they were executed successfully in the past.
2010-05-14 00:07:47 +02:00
Juan RP
85f018289f builddep_funcs: add extra space to the deps message. 2010-05-13 22:22:05 +02:00
Juan RP
e675201990 Improve how build deps are processed, return on errors immediately. 2010-05-12 17:23:35 +02:00