Commit graph

53 commits

Author SHA1 Message Date
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 0115bd2507 xbps-src: append /usr/local/bin to PATH in all chroot ops. 2011-07-12 08:54:34 +02:00
Juan RP 48cab426cc xbps-src: append /usr/local/bin to PATH for some chroot ops. 2011-07-11 00:37:27 +02:00
Juan RP b6c21b960b xbps-src: new layout in masterdir to use a common directory from host.
XBPS_CACHEDIR has been replaced by XBPS_HOSTDIR in configuration file,
and this expects the following structure:

/host
  |_ /build (previously /pkg-builddir)
  |_ /binpkgs (previously /pkg-binpkgs)
  |_ /repocache (previously /cachedir)
  |_ /sources (previously /pkg-srcdistdir)

Thanks to str1ngs for the great idea!
2011-07-08 02:07:38 +02:00
Juan RP ef21557313 xbps-src: multiple improvements related to chroot code. 2011-07-06 14:20:27 +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 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 8bc23145c8 xbps-src: added -S flag to disable XBPS_PREFER_BINPKG_DEPS. 2011-07-02 22:56:26 +02:00
Juan RP 290703f4fb xbps-src: don't overwrite xbps-conf.plist in chroot if exists. 2011-07-02 21:59:06 +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 ca8369eada xbps-src [chroot]: ignore busybox tar, xz, gzip and bunzip2 applets. 2011-07-01 01:43:19 +02:00
Juan RP a48dc4c512 xbps-src [chroot]: try different shells for /bin/sh symlinks. 2011-07-01 00:29:11 +02:00
Juan RP 9f2990bd31 xbps-src [chroot]: make sure that we sync with rootdir == /. 2011-06-30 12:33:53 +02:00
Juan RP 5535e59afc xbps-src: only use /cachedir in chroot, if it was set in conffile. 2011-06-29 09:35:36 +02:00
Juan RP b0cf505357 xbps-src: XBPS_CACHEDIR *must be* /cachedir in chroot, omg. 2011-06-28 17:27:01 +02:00
Juan RP daf986ed33 xbps-src: set XBPS_CACHEDIR in conf file for chroot ops. 2011-06-28 17:18:48 +02:00
Juan RP 8b40d5cd68 xbps-src: added suport for XBPS_CACHEDIR in configuration file.
XBPS_CACHEDIR will be bind mounted as read/write in target masterdir
into /cachedir. This directory must have read/write perms for the user
running xbps-src.
2011-06-26 01:45:12 +02:00
Juan RP 5d2006f290 xbps-src: really sync remote repo's index for xbps>=0.9.0 in chroot. 2011-06-25 17:25:27 +02:00
Juan RP 517f1cfd06 xbps-src: added support for PREFER_BINPKG_DEPS with xbps >= 0.9.0. 2011-06-24 22:00:47 +02:00
Juan RP aea5cc99ed xbps-base-chroot: renamed to base-chroot. 2011-06-23 03:21:50 +02:00
Juan RP a461919eea xbps-src: improve XBPS_PREFER_BINPKG_DEPS code. 2011-06-22 12:33:18 +02:00
Juan RP 24617c38ee xbps-src: do some checks in the chroot for /run related stuff. 2011-06-20 18:32:43 +02:00
Juan RP c912ce0eef xbps-src: remove a pkg thru the chroot handler to fix some bugs in pre/post_remove funcs. 2011-06-16 12:21:12 +02:00
Juan RP 80f784e0eb shutils/chroot.sh: update ld.so(8) before entering the chroot. 2011-05-26 10:14:39 +02:00
Juan RP 5567ff7066 shutils/chroot.sh: only cleanup /tmp files if /xbps hasn't been mounted. 2011-05-02 21:35:41 +02:00
Juan RP e0611f10ab shutils/chroot.sh: create /tmp dir if doesn't exist in masterdir. 2011-04-29 22:40:32 +02:00
Juan RP f84a10dfae shutils/chroot.sh: fix a msg when the chroot has not been prepared yet. 2011-02-26 17:56:23 +01:00
Juan RP 0dd337ee91 xbps-src:chroot.sh: update for busybox rename. 2011-02-11 16:29:02 +01:00
Juan RP 85543cd319 xbps-src: only umount bind mounts in the chroot shell fragment. 2011-02-11 14:19:34 +01:00
Juan RP f832dd42a8 xbps-src: be more conservative with signal handlers. 2010-12-28 22:55:17 +01:00
Juan RP 3da3783333 xbps-src: improve msg_* funcs and update all callers. 2010-12-20 00:22:12 +01:00
Juan RP 82d298b6ca xbps-src: clean up /tmp when entering to the chroot. 2010-12-18 14:33:30 +01:00
Juan RP 71e5c38598 xbps-src: added XBPS_LDFLAGS into the configuration file.
This is to specify common LDFLAGS settings for all packages, by default
it's set to '-Wl,--as-needed' to avoid linking extra libraries into
the binaries. This helped to find such cases.
2010-10-29 10:23:25 +02:00
Juan RP 9e285b9608 xbps-src: improve multiple mount/umount chroot handling. 2010-05-17 12:09:44 +02:00
Juan RP ab3193c208 xbps-src: do not umount if <masterdir>/.xbps_chroot_working is there. 2010-05-15 17:28:18 +02:00
Juan RP fe36d782ca xbps_chroot_handler: do not umount, leave this to the signal handler of xbps-src. 2010-05-14 15:17:58 +02:00
Juan RP a599311f15 xbps-src: always try to unmount via xbps-src-chroot-helper before exiting. 2010-05-14 14:48:55 +02:00
Juan RP 816b0945a8 chroot.sh: mention that xbps-src.conf in the chroot is autogenerated. 2010-05-14 01:12:53 +02:00
Juan RP 148f1d5db5 xbps-src: reinstall xbps-src any time we are entering into the chroot. 2010-05-14 00:16:37 +02: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 81d6978f02 xbps-src: propagate error returned by xbps-src in the chroot.
Rather than pointing the user to cat the .log file, just cat it before exiting.
2010-05-09 19:46:28 +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
Juan RP 22774084ab xbps-src: always create logs for configure/build/install stages in $wrksrc.
Fixed -C and install-destdir in the chroot, $# wasn't consistent :-)
2010-05-07 12:25:24 +02:00
Juan RP ff412882de Improve messages while entering into the chroot.
--HG--
extra : convert_revision : 13354e2dc1a3c13071a9b662f74609ca79a4dd78
2010-04-27 23:22:48 +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 da63915397 Fix 'xbps-src -m' to mount stuff in the correct place.
--HG--
extra : convert_revision : 930efb41ec285f2b65310629fe758397c178d681
2010-04-27 21:52:36 +02:00