Commit graph

56 commits

Author SHA1 Message Date
Juan RP 8795076381 xbps-src: install_pkg: we know exact PATH for chroot case, use it. 2011-11-18 11:52:56 +01:00
Juan RP bc5f57f274 xbps-src: use install_pkg() for configure and build targets too. 2011-11-18 09:33:29 +01:00
Juan RP 0e59c1ee07 xbps-src: fixed index generation with -B without -D. 2011-11-10 13:28:27 +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 5dc6d62e3e xbps-src: read specified config file in doinst-helper, if set. 2011-10-30 08:57:36 +01:00
Juan RP 4efdddd88e xbps-src: fix some messages to show correct pkgname/version touple. 2011-10-26 16:59:28 +02:00
Juan RP c2b0d7a307 xbps-src: make unstow work even if build template is missing. 2011-10-26 09:05:10 +02:00
Juan RP 18ef3e098a xbps-src: only autoremove deps if pkg was built successfully. 2011-10-06 16:54:42 +02:00
Juan RP f3e5df1558 xbps-src: only touch status phase files on success, misc changes. 2011-07-22 10:13:23 +02:00
Juan RP 110aede193 xbps-src: multiple improvements for -B and run_func.
* run_func now errors out by itself if the function returned any error.
* if -B flag is enabled and binpkg already exists, skip updating local
  repo pkg-index.
2011-07-18 13:43:22 +02:00
Juan RP e22c565811 xbps-src: make -B flag build binpkgs for required pkg deps. 2011-07-18 11:36:48 +02:00
Juan RP e78e0028ca xbps-src: rename libexec helpers, they were too long. 2011-07-14 13:24:00 +02:00
Juan RP 341432f1fb xbps-src: make -D remove only remove files in pkg's destdir. 2011-07-06 11:27:57 +02:00
Juan RP 2f6a8e9617 xbps-src: also autoremove deps with -D on success. 2011-07-06 10:46:36 +02:00
Juan RP 86d0b0adcf xbps-src: make -K work when run_func returns an error. 2011-07-06 10:06:49 +02:00
Juan RP fa1c9ab96f xbps-src: make -D install work with bootstrap subpkgs. 2011-07-06 08:42:02 +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 f1a44611c3 xbps-src: remove target now returns proper return value. 2011-07-05 09:23:29 +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 21a096b6de xbps-src: rename listfiles target to list-files. 2011-07-03 12:22:44 +02:00
Juan RP d22024261d xbps-src: make internal var UPPERCASE. 2011-07-03 02:57:32 +02:00
Juan RP 8bc23145c8 xbps-src: added -S flag to disable XBPS_PREFER_BINPKG_DEPS. 2011-07-02 22:56:26 +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 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 8b6343a59a xbps-src: fix remove_pkg(), it's msg_warn(). 2011-06-29 08:24:32 +02:00
Juan RP a0ea610634 Revert "xbps-src: allow to use install-destdir for pkgs already installed."
This reverts commit 4478b5ead3.
2011-06-28 23:57:31 +02:00
Juan RP 5ecc88fcf8 xbps-src: make a warning if pkg is installed when removing. 2011-06-28 19:57:41 +02:00
Juan RP 4478b5ead3 xbps-src: allow to use install-destdir for pkgs already installed. 2011-06-28 19:37:41 +02:00
Juan RP 8419094808 xbps-src: really fix previous. 2011-06-22 21:06:14 +02:00
Juan RP b41a474199 xbps-src: install_pkg_with_binpkg(): fix bad quoting. 2011-06-22 13:32:45 +02:00
Juan RP 9163a2e18f xbps-src: xbps-bin autoremove must be executed via fakeroot. 2011-06-22 13:22:46 +02:00
Juan RP 47e5390ea6 xbps-src: install_pkg_with_binpkg(): minor cosmetics. 2011-06-22 12:29:56 +02:00
Juan RP 279bda852a xbps-src: only autoremove pkgs if not installing builddeps. 2011-06-21 15:19:01 +02:00
Juan RP 66c3ae82d3 xbps-src: autoremove pkgdeps if XBPS_PREFER_BINPKG_DEPS is set. 2011-06-20 18:45:29 +02:00
Juan RP cd099f626e xbps-src: copy pkg metadata files into XBPS_PKGMETADIR. 2011-06-20 18:33:30 +02:00
Juan RP 15bc8e1eee xbps-src: remove pre/post and install status file when removing a pkg. 2011-04-12 10:03:24 +02:00
Juan RP f832dd42a8 xbps-src: be more conservative with signal handlers. 2010-12-28 22:55:17 +01:00
Juan RP 6183d49629 xbps-src: remove_pkg(): remove subpkg stat files in $wrksrc if found. 2010-12-23 13:14:18 +01:00
Juan RP 3da3783333 xbps-src: improve msg_* funcs and update all callers. 2010-12-20 00:22:12 +01:00
Juan RP 08d47bc8b1 xbps-src: improve run_func and always make a log in $wrksrc.
Also when or after the pkg is installed to destdir/stowned, and there was
any error, always remove the files that were installed into destdir.

With these changes there's no need to return any value in the do_foo()
functions because they are caught automatically. Also any function is now
logged into its own file to always log what happens.
2010-12-18 22:38:21 +01:00
Juan RP 0432cc3785 xbps-src: remove dup strip_files() in pkgtarget_funcs.sh. 2010-05-26 15:47:59 +02:00
Juan RP c34e13336b xbps-src: multiple changes to improve infrastructure.
- Remove buildvars_funcs.sh, its code has been moved into set_tmpl_common_vars().
- Move stripping code into its own file, and don't run it via fakeroot.
- Remove unnecesary reset_tmpl_vars() call in install_pkg().
- Misc changes.
2010-05-26 15:41:26 +02:00
Juan RP a4468b1fe8 pkgtarget_funcs: print a msg while installing the origin pkg. 2010-05-13 17:42:39 +02:00
Juan RP e675201990 Improve how build deps are processed, return on errors immediately. 2010-05-12 17:23:35 +02:00
Juan RP c57efc958f install_pkg(): remove another return value test. 2010-05-12 02:16:31 +02:00
Juan RP 2ee55de018 Finally fix fakeroot on Arch linux, return on errors while processing deps. 2010-05-10 12:09:06 +02:00
Juan RP 2850e6ed79 xbps-src-doinst-helper is run via fakeroot so set build vars before and after! 2010-05-10 11:17:58 +02:00
Juan RP f6a0806229 xbps-src: piping with tee(1) and groupping command is not possible sometimes... 2010-05-08 09:46:23 +02:00