Commit graph

53 commits

Author SHA1 Message Date
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
Juan RP 8d383c1c83 builddep_funcs: skip some return values from install_pkg(). 2010-05-11 23:39:37 +02:00
Juan RP f964d9b8fb install_dependencies_pkg(): install_pkg_deps() might return non 0, don't treat this as fatal. 2010-05-11 21:30:01 +02:00
Juan RP caf9d4ac62 install_pkg_deps() may return 1 sometimes, do not treat it as fatal error. 2010-05-10 12:18:41 +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 522437b90f Multiple improvements for XBPS_PREFER_BINPKG_DEPS.
- Added a new var XBPS_REPO_LIST for the conf file, to specify
  a list of remote repositories to be used in a masterdir.
- Install all required binpkgs in one pass, if that fails install
  one of them at every pass.
- Fixed xbps-src-chroot-helper to properly catch SIG{INT,QUIT}
  when -m is specified.
- Misc cosmetics improvements.

--HG--
extra : convert_revision : 0ad7d559477ccc1fc04ab09deb791343ee453de6
2010-04-27 23:09:08 +02:00
Juan RP 8077fd7472 shutils: bump copyright year for touched files in 2010.
--HG--
extra : convert_revision : 967ce0c8f98299db161ccb746a9e633ca0457640
2010-01-17 08:50:36 +01:00
Juan RP e57940985e Added support to build pkgs in the chroot as normal user via capchroot.
Please read the comment in xbps-src.conf to use it. Fully tested
and working nicely, probably some pkgs will need minimal changes.

--HG--
extra : convert_revision : 820ad6d48aa74cf5b6db1871adea750acccaa82f
2010-01-16 02:11:44 +01:00
Juan RP 6f5aa28a94 shutils/builddep_funcs: install from source if binpkg failed.
--HG--
extra : convert_revision : 2d902d3ccaf92fdc42d3be0b789c16412da516f1
2010-01-15 00:14:29 +01:00
Juan RP 3cdafeb9ca Added initial support to install binpkgs to resolve builddeps.
if XBPS_PREFER_BINPKG_DEPS is set in xbps-src.conf, the local binpkg
repo in XBPS_PACKAGESDIR will be used to install binpkgs.

To use this feature you'll need xbps utils >= 20100114 from head.

--HG--
extra : convert_revision : 7317e0e2741997007e81ed478f819c36e4858e5d
2010-01-14 17:45:41 +01:00
Juan RP dbb02a1930 Kill run_template(), use setup_tmpl() instead.
--HG--
extra : convert_revision : 6aaf4f637d28f476e88c05ee8608e418642a01fa
2009-11-23 05:30:04 +00:00
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00
Juan RP 3c58e3ad40 shutils/builddep_funcs.sh: conditionalize info msg.
--HG--
extra : convert_revision : 54d778eab5904fcda0a0d0e506b00f0ee046cbaf
2009-11-19 17:56:27 +01:00
Juan RP 2c53035fb7 Added support for extended pkgdep version matching.
xbps from launchpad head branch has gained support for extended
pkg version matching, as specified in:

https://blueprints.launchpad.net/xbps/+spec/improved-version-matching

Now it's required to specify the operator(s) for required versions
in the depends files and "Add_dependency" option in build templates.

xbps-src now requires xbps utils 20091107.

--HG--
extra : convert_revision : fc09fa707483a75e0b6f68445721fc1a9166cdad
2009-11-07 05:01:00 +01:00
Juan RP f4a2a9aebe builddep_funcs.sh: use $XBPS_CMPVER_CMD.
--HG--
extra : convert_revision : 079d2d36a9fd7454ec6f4e53a4f917b7f92334a3
2009-11-05 14:26:15 +01:00
Juan RP faf1d22b22 builddep_funcs.sh: fix local var def.
--HG--
extra : convert_revision : 5066c52062d1dff62a97662f0d78bd0bdd40fd79
2009-11-02 00:25:50 +01:00