Commit graph

271 commits

Author SHA1 Message Date
Juan RP
e4e0d9a825 xbps-src: workaround link target creation metadata.
busybox readlink -f doesn't output the target file if it doesn't exist,
where coreutils one does... simply use readlink without -f for now.
2011-07-31 09:38:10 +02:00
Juan RP
95ce5f7179 xbps-src: run_func(): return 0 on success. 2011-07-22 10:51:29 +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
6bbfdac7c2 xbps-src: make run_func() print a msg on success. 2011-07-19 22:36:17 +02:00
Juan RP
c586459062 xbps-src: export CCACHE_DIR is XBPS_CCACHE is set. 2011-07-19 00:22:52 +02:00
Juan RP
9fd74f3cf5 xbps-src: erm fix a wrong part from previous. 2011-07-18 18:52:49 +02:00
Juan RP
cfb09f2d9f xbps-src: remove unnecessary variable assignments. 2011-07-18 18:50:23 +02:00
Juan RP
07db31cb54 xbps-src: cleanup version/revision mess. 2011-07-18 16:25:18 +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
d9f155607c xbps-src: added strip_cmd variable, can be overriden per template. 2011-07-17 17:47:31 +02:00
Juan RP
a405c67ef7 xbps-src: do_configure func can now be used in custom-install tmpls. 2011-07-16 10:25:06 +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
a78e885a29 xbps-src: in setup_subpkg_tmpl() set SUBPKG for subpkgs. 2011-07-14 15:01:14 +02:00
Juan RP
e78e0028ca xbps-src: rename libexec helpers, they were too long. 2011-07-14 13:24:00 +02:00
Juan RP
47025ec4c6 xbps-src: setup main pkg in setup_subpkg_tmpl() if it's not a subpkg. 2011-07-14 12:47:16 +02:00
Juan RP
6058498069 xbps-src: added setup_subpkg_tmpl() to setup subpkg tmpls. 2011-07-14 12:30:29 +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
89dec60e64 xbps-src: avoid mkdir {build,dest}dir in /. 2011-07-11 00:16:02 +02:00
Juan RP
1d71597b8b xbps-src: it's kernel-hooks not kernel trigger. 2011-07-10 00:40:02 +02:00
Juan RP
1cf57eab23 xbps-src: reserve "kernel_hooks_version" variable.
This variable can be used in templates to specify the kernel version
passed to the Vanilla kernel hooks in /etc/kernel.d/<target>.
2011-07-09 23:07:50 +02:00
Juan RP
66d47f8616 xbps-src: respect XBPS_HOSTDIR for XBPS_SRCDISTDIR. 2011-07-09 15:08:41 +02:00
Juan RP
f2ee328ee0 xbps-src: don't skip creating metadata for bootstrap subpkgs in chroot. 2011-07-08 09:48:09 +02:00
Juan RP
5715fb6eb8 xbps-src: use XBPS_HOSTDIR/binpkgs to store binpkgs if set. 2011-07-08 02:51:28 +02:00
Juan RP
2b9aec22ea xbps-src: <destdir> and <builddir> must not be in XBPS_HOSTDIR. 2011-07-08 02:25:51 +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
f731f08540 xbps-src: for meta-templates always set no{extract,fetch}. 2011-07-07 18:07:08 +02:00
Juan RP
ef21557313 xbps-src: multiple improvements related to chroot code. 2011-07-06 14:20:27 +02:00
Juan RP
40f6852c62 xbps-src: handle correctly {C,LD,CXX,CPP}FLAGS envvars. 2011-07-06 13:36:59 +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
fae03c067e xbps-src: rename IGNORE_BOOTSTRAP_PKGS to BOOTSTRAP_PKG_REBUILD. 2011-07-06 08:28:34 +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
0ffa09c1b4 xbps-src: don't exec do_fetch() multiple times on success. 2011-07-04 21:27:56 +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
141c0ab3ba xbps-src: only process broken_as_needed in one place. 2011-07-04 10:56:35 +02:00
Juan RP
9cced17d22 xbps-src: fix a broken test for XBPS_LDFLAGS. 2011-07-04 10:29:00 +02:00
Juan RP
e17baedf00 xbps-src: improve C{,PP,XX}FLAGS and LDFLAGS settings. 2011-07-04 10:24:52 +02:00
Juan RP
21a096b6de xbps-src: rename listfiles target to list-files. 2011-07-03 12:22:44 +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
d22024261d xbps-src: make internal var UPPERCASE. 2011-07-03 02:57:32 +02:00
Juan RP
0c26524c28 xbps-src: improve even more install_pkg_from_repos(). 2011-07-03 01:27:55 +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
c124ec1bef xbps-src: handle another ENOENT case from xbps-bin. 2011-07-02 22:53:03 +02:00