Commit graph

548 commits

Author SHA1 Message Date
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
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
dd0579d967 xbps-src: tar and xz are required in host system. 2011-07-02 20:31:43 +02:00
Juan RP
f5f89bc6ff xbps-src: check that doesn't exist before mkdir. 2011-07-02 18:05:20 +02:00
Juan RP
3bb5c279df xbps-src: source install_files.sh for v funcs in templates. 2011-07-02 17:48:48 +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
6513a02ee0 xbps-src: improve vmove(). 2011-07-02 13:33:06 +02:00
Juan RP
a26dd06538 xbps-src: make targetdir in vmove() optional. 2011-07-02 12:11:01 +02:00
Juan RP
6cb6110f4e xbps-src: improve vinstall(), add vmove() for subpkgs. 2011-07-02 11:33:59 +02:00
Juan RP
75d55258a5 xbps-src: added new funcs to install files into DESTDIR.
vcopy <files> <targetdir>
	Executes cp -a <files> ${DESTDIR}/<targetdir>

vinstall <file> <mode> <targetdir> <targetfile>
	4th argument is optional.
	Executed install -Dm<mode> <file> ${DESTDIR}/<targetdir>/<file>

vmkdir <dir> <mode>
	Executed install -dm<mode> ${DESTDIR}/<dir>
2011-07-02 10:49:22 +02:00
Juan RP
cbdfc216de xbps-src: added XBPS_CCACHE option to xbps-src.conf.
If set /usr/lib/ccache/bin will be added to PATH as the first entry,
*only* for chroot.
2011-07-02 09:15:29 +02:00
Juan RP
5c55f940ae xbps-src: fix previous path for ccache. 2011-07-02 08:54:42 +02:00
Juan RP
1ebd495d9c xbps-src: redo PATH to use correct paths for xbps, and ccache. 2011-07-02 08:53:09 +02:00
str1ngs
8666249163 xbps-src: add HOME section to fetch_sites.sh 2011-07-01 16:56:59 -07: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
a09089a9b0 Remove compiz and friends, 0.9.x series are really broken. 2011-07-01 17:28:09 +02:00
Juan RP
6227b9f1f7 xbps-src: append /usr/local/{s,}bin to PATH in INSTALL/REMOVE scripts. 2011-07-01 16:15:59 +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
92740bd661 xbps-src [extract]: use decompress utils and pipe to tar(1). 2011-07-01 01:00:18 +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
44ff75e0d4 xbps-src: remove libhal shlib mappings. 2011-06-30 22:30:07 +02:00
Juan RP
09370643f1 xbps-src: [install_pkg_from_repos] handle 2nd ENOENT. 2011-06-30 13:45: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
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
9be28af618 weechat: new -lua subpkg, add missing builddeps. 2011-06-30 10:26:31 +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
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
f9b1494648 xbps-src: ignore PREFER_BINPKG_DEPS for bootstrap pkgs. 2011-06-28 23:27:41 +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
a3ec116aeb xbps-src: [checkvers] improve output, show outdated pkgs in masterdir. 2011-06-28 19:34:18 +02:00
Juan RP
17ea977f79 New package: lua-5.1.4. Contributed by DigitalKiwi. 2011-06-28 18:35:32 +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
ecd20056c3 xbps-src: make-repoidx failed for repos with only noarch pkgs. 2011-06-28 16:02:32 +02:00
str1ngs
a2fea027f7 xbps-src: fix shlibs tab formatting 2011-06-27 14:33:51 -07:00
str1ngs
901c7b69cb xbp-src: shlib mappings for gls gc 2011-06-26 16:55:14 -07:00
str1ngs
5280ebf018 xbps-src: wrap filesum output 2011-06-26 13:38:17 -07:00
Juan RP
4d086d2b1d xbps-src: do not fail if XBPS_CACHEDIR is unset. 2011-06-26 01:51:58 +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
6166c5ebc6 xbps-src: revert 8271950e94.
This broke info files dir handling because empty dirs are removed
*after* metadata code is executed. So back to previous and known way.
2011-06-25 18:36:10 +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
5d2006f290 xbps-src: really sync remote repo's index for xbps>=0.9.0 in chroot. 2011-06-25 17:25:27 +02:00