Commit graph

394 commits

Author SHA1 Message Date
Juan RP b1dcc3623a xbps-src: new target: bootstrap-update.
This target will update the bootstrap packages in masterdir
(if it was installed thru binary packages) to the most newer
version available in registered repositories.
2011-10-20 18:31:16 +02:00
Juan RP 9f74307659 xbps-src: reset do_configure per template. 2011-10-18 09:22:33 +02:00
Juan RP 2afbf25891 xbps-src: set --localstatedir=/var for gnu_configure tmpls. 2011-10-16 19:46:23 +02:00
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 ef7b805b5d xbps-src: fix typo in previous. 2011-10-11 02:50:52 +02:00
Juan RP 8dba43e73d xbps-src: fully support systemd_services. 2011-10-11 02:37:36 +02:00
Juan RP 29a2dc40f8 xbps-src: reserve systemd_services var for templates. 2011-10-10 11:51:49 +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 18ef3e098a xbps-src: only autoremove deps if pkg was built successfully. 2011-10-06 16:54:42 +02:00
Juan RP e659993ffb xbps-src: make pycompile_{dirs,module} independent of sourcepkg. 2011-10-05 14:29:06 +02:00
Juan RP aafb971991 xbps-src: code to handle new pycompile trigger. 2011-10-05 14:26:54 +02:00
Juan RP f43f1c9e0d xbps-src: autodetect pkgs that need gio-modules trigger automatically. 2011-10-05 11:00:03 +02:00
Juan RP 843697acd6 xbps-src: even more fixes for binpkg deps. 2011-10-05 10:30:15 +02:00
Juan RP 37967a549d xbps-src: autodetect mimedb automatically. 2011-10-05 10:29:57 +02:00
Juan RP a4c7c4cada xbps-src: autodetect gsettings-schemas automatically. 2011-10-05 09:34:48 +02:00
Juan RP 277960f637 xbps-src: remove shebangs from shutils. 2011-10-05 08:06:41 +02:00
Juan RP 8d300ed38d xbps-src: some more improvements for binpkg deps. 2011-10-04 22:01:12 +02:00
Juan RP 14d6cabb9d xbps-src: use the same SONAMEs in verify_rundeps.sh, to avoid kung-fu sion. 2011-10-04 11:03:48 +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 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
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 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 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 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 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 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 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
str1ngs 5280ebf018 xbps-src: wrap filesum output 2011-06-26 13:38:17 -07: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
Juan RP 5efd8cdd4d xbps-src: if checksum fails, print out its hash too. 2011-06-24 23:22:59 +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 8271950e94 xbps-src: when compressing info files, check if /usr/share/info exists. 2011-06-24 21:39:12 +02:00
Juan RP aea5cc99ed xbps-base-chroot: renamed to base-chroot. 2011-06-23 03:21:50 +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 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 a461919eea xbps-src: improve XBPS_PREFER_BINPKG_DEPS code. 2011-06-22 12:33:18 +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 47e5390ea6 xbps-src: install_pkg_with_binpkg(): minor cosmetics. 2011-06-22 12:29:56 +02:00
Juan RP 8a49fffda2 xbps-src: redirect msg_{error,warn}* output to stderr. 2011-06-21 15:40:28 +02:00
Juan RP 505ed23e8e xbps-src: don't fully error out if pkgdestdir not found while removing.
We do the 'xbps-bin remove' way as last resort, and return early in that
case.
2011-06-21 15:19:34 +02:00
Juan RP 279bda852a xbps-src: only autoremove pkgs if not installing builddeps. 2011-06-21 15:19:01 +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 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 24617c38ee xbps-src: do some checks in the chroot for /run related stuff. 2011-06-20 18:32:43 +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 831abd5514 xbps-src: fully remove check for xbps version check. 2011-06-20 10:58:33 +02:00
strings 3895a1405b new synergy package
remove xbps-bin ABI check
2011-06-19 15:33:05 +00: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 205d066e7c xbps-src: another way to get the target of symlinks. 2011-06-14 15:26:15 +02:00
Juan RP 670dc453e2 xbps-src: (metadata.sh): if readlink -f returns nothing try without -f. 2011-06-04 20:37:55 +02:00
Juan RP f190895d30 xbps-src::info_tmpl(): also print $homepage and $license. 2011-06-02 09:01:11 +02:00
Juan RP 1bcd94905c xbps-src: update pkg metadata files.plist "links" array with a new object "target".
The "target" object should point to the target file for the symlink. Will be
used by an upcoming xbps utils version.
2011-05-31 16:39:02 +02:00
Juan RP 6ed4e562cc xbps-src: add three new metadata objects in binary pkgs.
homepage (string): package upstream URL.
license (string): package licenses.
build_date (string): package build date in UTC.
2011-05-26 10:40:31 +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 15bc8e1eee xbps-src: remove pre/post and install status file when removing a pkg. 2011-04-12 10:03:24 +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 5e9f331526 xbps-src: added "provides" var for use in templates.
This will add support for virtual packages in XBPS; will be implemented
in the following days.
2011-01-26 13:37:37 +01:00
Juan RP 2a31f296ac xbps-src: improve the 'info' target. 2011-01-11 17:01:23 +01:00
Juan RP 0474b11e7b xbps-src: respect CFLAGS if $build_style == custom-install. 2011-01-11 16:21:08 +01:00
Juan RP e6abf71b04 xbps-src: disable -Wl,--as-needed if $broken_as_needed is set. 2011-01-10 12:02:08 +01:00
Juan RP f832dd42a8 xbps-src: be more conservative with signal handlers. 2010-12-28 22:55:17 +01:00
Juan RP 2168077d11 xbps-src: added new var 'system_groups' for pkgs requiring new system groups. 2010-12-28 11:23:33 +01:00
Juan RP 81cad50a1e xbps-src: do not return error if $wrksrc doesn't exist in the 'clean' target. 2010-12-23 20:39:54 +01:00
Juan RP c7aac27ded xbps-src: do a fake extraction if $distfiles not set too, as before. 2010-12-23 17:59:19 +01:00
Juan RP ae3c15cb59 xbps-src: added a new var for templates "dkms_modules".
It will be used by packages that will install DKMS modules.
2010-12-23 14:29:38 +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 f9135c92c8 xbps-src: if $noextract is set, also try to run the "do_extract" function if available. 2010-12-23 02:13:40 +01:00
Juan RP 543fe35787 xbps-src: improve some messages in fetch phase. 2010-12-20 07:06:48 +01:00