Commit graph

394 commits

Author SHA1 Message Date
Juan RP c818dcd511 xbps-src: install_pkg_from_repos: run cmd through eval. 2011-11-09 15:52:20 +01:00
Juan RP ceabb62f9a xbps-src: new "make_dirs" var for the mkdirs trigger. 2011-11-09 15:18:39 +01:00
Juan RP 4767136430 xbps-src: make sure that pkg metadir is created with 0755 perms. 2011-11-09 11:16:12 +01:00
Juan RP 966b16760d xbps-src: create masterdir/boot dir if doesn't exist. 2011-11-08 12:35:45 +01:00
Juan RP 5a2cc5b5bd xbps-src: infrastructure changes required for "nonfree" keyword in tmpls.
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars.
- 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre.
- Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE.
- make-repoidx target now creates the index for all "known" directories specified
  via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
2011-11-08 11:56:17 +01:00
Juan RP 17e28d9126 xbps-src: extract_distfiles: always return 0 if no errors. 2011-11-06 11:14:59 +01:00
Juan RP 3cc393402f xbps-src: new opt func: post_extract. 2011-11-06 09:34:44 +01:00
Juan RP 559eaa8f51 xbps-src: checkvers: also report revision in srcpkgs. 2011-11-05 12:40:44 +01:00
Juan RP d21fc0ae41 xbps-src: make sure that XBPS_BUILDDIR doesn't have multiple '/' (stupid firefox). 2011-11-05 11:55:02 +01:00
Juan RP 4e69289faf xbps-src: checkvers: simplify output to <pkgname> <version> <srcpkgversion>. 2011-11-04 15:46:17 +01:00
Juan RP 795ce57f15 xbps-src: better regexp for show-revdeps target. 2011-11-03 15:55:51 +01:00
Juan RP 6f12d878c1 xbps-src: follow target names from xbps utils.
Some targets have been renamed:
	info		-> show
	list-files	-> show-files
Added a new target to print reverse dependencies for a package:
	show-revdeps
2011-11-02 16:02:31 +01:00
Juan RP 72d47e2535 xbps-src: changes to build deps from sourcepkg if no binpkg is found. 2011-11-01 12:09:06 +01:00
Juan RP 1e79ff97ee xbps-src: install_pkg_from_repos(): wrong return value was checked in. 2011-11-01 06:44:07 +01:00
Juan RP ce64a7c5bf xbps-src: improve builddep code for XBPS_PREFER_BINPKG_DEPS and xbps>=0.11.0. 2011-10-31 04:04:31 +01:00
Juan RP 713247b16b xbps-src: install_pkg_from_repos: avoid shell redirections via pkgdeps. 2011-10-31 03:10:35 +01:00
Juan RP 5dc6d62e3e xbps-src: read specified config file in doinst-helper, if set. 2011-10-30 08:57:36 +01:00
Juan RP 6fb8566235 xbps-src: more shell quoting love. 2011-10-29 19:44:44 +02:00
Juan RP 13a3b27a7a xbps-src: transform invalid chars in virtualpkg.d files. 2011-10-29 17:29:48 +02:00
Juan RP 5acd6fca97 xbps-src: always check if triggers are required. 2011-10-29 12:33:32 +02:00
Juan RP 148f02d804 xbps-src: only create metadata INSTALL/REMOVE scripts if it's really required. 2011-10-28 11:57:22 +02:00
Juan RP aa67f4ffdb xbps-src: install_pkg_deps: another performance change. 2011-10-28 11:22:43 +02:00
Juan RP 6071688250 xbps-src: optimize two funcs by removing redundant setup_tmpl() call. 2011-10-28 11:07:05 +02:00
Juan RP a9ffecce43 xbps-src: move CONFIGURE_SHARED_ARGS to the correct place. 2011-10-28 07:13:18 +02:00
Juan RP 5379eff94b xbps-src: reduce install_dependencies_pkg() by using a conditional. 2011-10-26 19:47:52 +02:00
Juan RP 4efdddd88e xbps-src: fix some messages to show correct pkgname/version touple. 2011-10-26 16:59:28 +02:00
Juan RP 15f01ebf76 xbps-src: create dynamically virtualpkg plist files. 2011-10-26 16:54:26 +02:00
Juan RP 06dc1524eb xbps-src: remove last openrc refs in code. 2011-10-26 16:54:25 +02:00
Juan RP c2b0d7a307 xbps-src: make unstow work even if build template is missing. 2011-10-26 09:05:10 +02:00
Juan RP b3347a901c xbps-src: fix unzip extraction. 2011-10-26 08:21:35 +02:00
Juan RP d72f1530ff xbps-src: set_tmpl_common_vars: respect C(XX|PP)FLAGS and LDFLAGS from environment. 2011-10-25 11:40:05 +02:00
Juan RP 0bfacff19e xbps-src: make makejobs work again for tmpls with custom do_build(). 2011-10-25 09:59:04 +02:00
Juan RP daafd0b563 xbps-src: run_func: busybox mktemp doesn't support -u. 2011-10-25 09:12:48 +02:00
Juan RP 777e051099 xbps-src: don't remove bootstrap pkgs in autoremove case. 2011-10-24 21:57:40 +02:00
Juan RP 784c44b359 xbps-src: install binpkgdeps sequentially, to know which one failed. 2011-10-24 21:24:43 +02:00
Juan RP 87c7b81d9b xbps-src: unset -v for vars, -f for funcs. 2011-10-24 21:21:23 +02:00
Juan RP 1dd1ec981c xbps-src: simplify run_func(). 2011-10-24 21:21:01 +02:00
Juan RP cf60e64209 xbps-src: fix test in build_src_phase. 2011-10-24 20:38:12 +02:00
Juan RP 02278e964c xbps-src: always check if build_style is set before checking its value. 2011-10-24 20:18:16 +02:00
Juan RP 2fe805e161 xbps-src: reset do_fetch per template. 2011-10-24 20:13:02 +02:00
Juan RP e29912574f xbps-src: 'checkvers' target even faster. 2011-10-24 19:57:45 +02:00
Juan RP 90204b7b28 xbps-src: revamped build_style.
By default now it's assumed that if $build_style is not set, the template
uses 'custom-install' build, .e.g do_{build,configure,install}.

If it's set, a helper with the same name with .sh extension will be sourced
to set do_{build,configure,install} phases.

The exception is "meta-template" which currently it must be set via
build_style, probably will change in the future.
2011-10-24 14:12:09 +02:00
Juan RP 31452a3a22 xbps-src: builddep_funcs.sh: use install_pkg_from_repos for just 1 pkgdep. 2011-10-24 13:58:59 +02:00
Juan RP 05a7a4fabb xbps-src: error out ASAP if writing metadata fails for any reason. 2011-10-22 07:12:18 +02:00
Juan RP 9cebc1a2d0 xbps-src: speed up a bit check_installed_packages(). 2011-10-22 01:05:59 +02:00
Juan RP f3e51e2e25 xbps-src: fix previous rofl. 2011-10-22 00:48:34 +02:00
Juan RP dd612f06fd xbps-src: dont overwrite globals with local vars in Add_dependency. 2011-10-22 00:47:22 +02:00
Juan RP 68d05f7588 xbps-src: print pkgname if Add_dependency fails. 2011-10-22 00:37:45 +02:00
Juan RP e2840dbd7b xbps-src: don't overwrite xbps conf plist files. 2011-10-21 11:10:28 +02:00
Juan RP 2299ca2aea xbps-src: adapt for xbps-0.10.0. 2011-10-21 11:00:32 +02:00
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