Juan RP
a4468b1fe8
pkgtarget_funcs: print a msg while installing the origin pkg.
2010-05-13 17:42:39 +02:00
Juan RP
fdd96d947b
buildvars: also (un)set CPPFLAGS and LDFLAGS in the chroot.
2010-05-13 17:42:07 +02:00
Juan RP
65619596d0
stow_funcs: check for file and links before dirs while stowning in the chroot.
2010-05-13 15:28:17 +02:00
Juan RP
8f5898fa63
build_funcs: unset_build_vars before returning.
2010-05-13 15:27:41 +02:00
Juan RP
e675201990
Improve how build deps are processed, return on errors immediately.
2010-05-12 17:23:35 +02:00
Juan RP
c57efc958f
install_pkg(): remove another return value test.
2010-05-12 02:16:31 +02:00
Juan RP
a785022b62
reset_tmpl_vars: add do_{build,install}.
2010-05-12 01:51:53 +02:00
Juan RP
8d383c1c83
builddep_funcs: skip some return values from install_pkg().
2010-05-11 23:39:37 +02:00
Juan RP
622c398a66
build_vars: (un)set PKG_CONFIG also in the chroot.
2010-05-11 22:15:33 +02:00
Juan RP
d3047787ba
configure_funcs: unset build vars before return.
2010-05-11 22:10:51 +02:00
Juan RP
f964d9b8fb
install_dependencies_pkg(): install_pkg_deps() might return non 0, don't treat this as fatal.
2010-05-11 21:30:01 +02:00
Juan RP
84a4e9e377
{un,-}set_build_vars(): set PKG_CONFIG_LIBDIR.
2010-05-11 15:46:34 +02:00
Juan RP
caf9d4ac62
install_pkg_deps() may return 1 sometimes, do not treat it as fatal error.
2010-05-10 12:18:41 +02:00
Juan RP
2ee55de018
Finally fix fakeroot on Arch linux, return on errors while processing deps.
2010-05-10 12:09:06 +02:00
Juan RP
2850e6ed79
xbps-src-doinst-helper is run via fakeroot so set build vars before and after!
2010-05-10 11:17:58 +02:00
Juan RP
d4441c94d3
set_build_vars(): use different var for LD_LIBRARY_PATH.
2010-05-10 10:41:36 +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
97811e8af0
Workaround Arch Linux path for libfakeroot, tested and reported by pancake.
2010-05-07 13:45:26 +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
9615930eb4
init_funcs.sh::set_defvars() bailout if required dirs cannot be found.
2010-05-06 22:01:36 +02:00
Juan RP
71aa49c397
buildvars_func.sh::set_build_vars() append to LD_LIBRARY_PATH no overwrite.
2010-05-06 22:00:43 +02:00
Juan RP
481e74178e
xbps-src: do not append $PATH to $PATH on every prepare_tmpl() call!
...
--HG--
rename : xbps-src/shutils/tmpl_funcs.sh => xbps-src/shutils/tmpl_funcs.sh.in
2010-05-06 01:21:27 +02:00
Juan RP
b382fb9c94
shutils/tmpl_funcs: do not overwrite $PATH.
2010-05-04 23:49:09 +02:00
Juan RP
6baa28a6e3
Redirect stderr to a file in ${wrksrc} for run_func().
...
So that you can use 'set -x' in a template and see the output.
--HG--
extra : convert_revision : 7b3225b2ed3f1fab410c43af12f5d5f66f8504d7
2010-04-29 16:04:09 +02:00
Juan RP
6d01070826
The 'essential' object metadata was removed long ago, fully remove it.
...
--HG--
extra : convert_revision : d110ecf59b07e84c6930d1212702b67cc4a4112b
2010-04-29 05:20:36 +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
Juan RP
cb582f7373
xbps-src: add -m flag and make-repoidx target.
...
* -m flag to specify a custom XBPS_MASTERDIR, overwritting the value
from xbps-src.conf.
* make-repoidx target to create a package index plist file for
the local repository associated with a masterdir, or one specified
by the -p flag.
--HG--
extra : convert_revision : dbd502b532fd49cd17a79a187488a1e92f361ee0
2010-04-27 01:34:19 +02:00
Juan RP
e3dc3e3066
Added native utilities to mount/umount/chroot via capabilities(7).
...
Three new helpers will now be installed into ${libexecdir}:
- xbps-src-capchroot needs to have set CAP_SYS_CHROOT ep.
- xbps-src-chroot-cap{,u}mount: needs to have set CAP_SYS_ADMIN ep.
That means that libcap and setcap(8) are now required to install
xbps-src and use it as normal user.
--HG--
extra : convert_revision : 586d6526079e085f86bf3e393459d429f6f0ef99
2010-04-26 14:15:49 +02:00
Juan RP
6673252679
Infrastructure changes to simplify the conf file.
...
* Removed the following vars from the conf file: XBPS_BUILDDIR,
XBPS_PACKAGESDIR and XBPS_SRCDISTDIR. They are always relative
to XBPS_MASTERDIR and cannot be changed.
* Removed XBPS_INSTALLDIR, it was unused in the code.
* Prepend /tools/bin in PATH for the chroot.
* Don't register a repo in the chroot if the XBPS_PREFER_BINPKG_DEPS
is not set.
--HG--
extra : convert_revision : 4df03ffa64f0bbf81cd1dd0baf38f1b7e4f47549
2010-04-26 02:51:48 +02:00
Juan RP
7d9172b9ea
Set $XBPS_FETCH_DONE after extracting not fetching.
...
--HG--
extra : convert_revision : fd65f2da02fd6da2c8a9f169f777d7511888704c
2010-04-24 12:52:29 +02:00
Juan RP
4240afc516
Only check distfiles once, not every time.
...
--HG--
extra : convert_revision : 6e3a5e715aea21956395018360cae66b8f211d67
2010-04-23 18:45:47 +02:00
Juan RP
0d68a49660
Multiple changes in the infrastructure for improving the (un)stow stuff.
...
- Added pre_remove/post_remove/post_stow support for templates.
- When stowning pkgs, symlink all files into the chroot. This only works
for packages that need to be built on it, also templates that set
stow_copy will copy its files, or selectively via stow_copy_files.
--HG--
extra : convert_revision : 51f47120a5478ceb1319bde01c3ab999f637b359
2010-04-23 15:25:03 +02:00
Juan RP
3fa8a3a284
install_pkg(): exit immediately on errors.
...
--HG--
extra : convert_revision : ac0332748a5390d3324329a2aa5630ef35e0bf7d
2010-04-22 13:40:53 +02:00
Juan RP
1874cbadda
shutils/metadata: return if required stuff fails.
...
--HG--
extra : convert_revision : c8225a2a9ace45bbc7eed5b309e26336ce94f9ae
2010-04-22 12:06:16 +02:00
Juan RP
70f7b0aaf4
shutils/stow_funcs: use rm -f.
...
--HG--
extra : convert_revision : d669d311bd19ba41fd6244a62e3430a2c4f71947
2010-04-22 09:02:49 +02:00
Juan RP
33770e8bbc
When using run_func() we don't care about stderr output.
...
--HG--
extra : convert_revision : 618d1c2eda49e1c55abec28d36f3430f37b9b867
2010-04-22 06:50:11 +02:00
Juan RP
8536af44ef
run_func: use simply 'type foo', -t is a bash extension.
...
--HG--
extra : convert_revision : 8a94c0a961f4819bfada61823158c81965d31908
2010-04-21 16:48:58 +02:00
Juan RP
b0c64c181b
shutils/metadata.sh: use find(1) -follow.
...
--HG--
extra : convert_revision : 1815c225aab07ca970d14f1340439d67fee2d88a
2010-04-21 15:29:23 +02:00
Juan RP
5d9675e435
shutils/metadata.sh: use find and readlink rather than find -L.
...
--HG--
extra : convert_revision : 489747f192448a175f24cee7762a51e2568a1b54
2010-04-21 11:54:14 +02:00
Juan RP
c95a77a60c
shutils/extract_func.sh: check that distfiles are there.
...
--HG--
extra : convert_revision : 210dd5e1204adcd5c1eee91af76000c1e08d5039
2010-04-18 18:50:43 +02:00
Juan RP
94c0200541
Reset some vars in subpkgs.
...
--HG--
extra : convert_revision : cfe73e71aa363f5d297660925cd7b29e731f4951
2010-04-12 19:07:24 +02:00
Juan RP
ec0f955d70
Added gconf-schemas new trigger.
...
Two new vars can be used in templates to handle GConf schemas files,
gconf_entries and gconf_schemas.
--HG--
extra : convert_revision : 315756b79166538ef0efae5a70c7ec8d9f7f61d9
2010-04-11 12:50:35 +02:00
Juan RP
2f5d1187a3
shutils: prepare for upcoming "$conflicts" support.
...
--HG--
extra : convert_revision : 021b9ea71ef7dbd8bcdef844a9e1379613db88d3
2010-03-08 10:52:55 +01:00
Juan RP
73dab0587b
verify_rundeps: handle same shlib provided by multiple pkgs.
...
--HG--
extra : convert_revision : 5d021d453acd0fdf440cbafbec89613340e9e349
2010-03-08 10:47:25 +01:00
Juan RP
a4070a27a9
Add "$noverifyrdeps" to disable verifyrundeps code.
...
--HG--
extra : convert_revision : 07510b345b3831360d0ef7697be98103dc465181
2010-01-29 05:41:10 +01:00
Juan RP
9cd358be11
shutils: remove mktoolchain.sh, outdated and useless.
...
--HG--
extra : convert_revision : bc4cf29c4e8d76f80fba322e545eaa81b10a7062
2010-01-29 04:19:13 +01:00
Juan RP
259d7f0ce7
shutils/metadata.sh: if xbps-uhelper sanitize-plist fails, return error.
...
--HG--
extra : convert_revision : 949a19e83aff79731b2d315669114568fe4f81aa
2010-01-28 19:05:03 +01:00