Commit Graph

337 Commits

Author SHA1 Message Date
Juan RP cc1557af85 hooks/script-wrapper: create ncurses5-config wrapper. 2014-06-05 01:10:08 +02:00
Juan RP 9787291df3 hooks/script-wrapper: create gpgme-config wrapper. 2014-06-04 13:43:17 +02:00
Juan RP 093020bfc9 hooks/patches: simplify. 2014-05-31 07:55:46 +02:00
Juan RP 1de0985964 hooks/prepare-32bit: take into account subpkgs to transform rdeps.
This is not perfect but will work in 90% of existing cases.
2014-05-28 15:20:23 +02:00
Juan RP 7824268597 hooks/prepare-32bit: reset vars just in case. 2014-05-28 14:08:20 +02:00
Juan RP 418aa2f9d3 hooks/prepare-32bit: in full mode also preserve usr/lib, moving it to usr/lib32. 2014-05-28 12:41:25 +02:00
Juan RP 0a79466aba hooks/prepare-32bit: remove lib32 symlink in lib32mode=full, unnecessary. 2014-05-27 18:48:18 +02:00
Juan RP f20f841c21 hooks/generate-runtime-deps: fix c093b9f and use the correct shlib. 2014-05-23 11:58:45 +02:00
Juan RP c093b9f521 hooks/generate-runtime-deps: if required shlib is provided by any subpkg, use it. 2014-05-23 11:46:46 +02:00
Juan RP 4652752ec5 hooks/pre-build: enable script-wrapper. 2014-05-23 10:16:22 +02:00
Juan RP ff4663480e hooks/script-wrapper: sdl2-config and libpng-config wrappers; enabled in build phase too. 2014-05-23 09:58:45 +02:00
Alessio Sergi 9937be2068 hooks/patches: fix parsing .{diff,patch} name 2014-05-13 16:31:00 +02:00
Juan RP f664734c7d hooks/patches: accept patches with any .{diff,patch} name. 2014-05-13 13:11:39 +02:00
Juan RP 06a463fe7f hooks/script-wrapper: create sdl-config wrapper. 2014-05-13 11:14:07 +02:00
Juan RP ffb0ebe230 hooks/script-wrapper: create freetype-config wrapper; simplify code. 2014-05-13 10:42:47 +02:00
Juan RP 83d9e05be6 hooks/script-wrapper: create libgcrypt-config wrapper. 2014-05-13 08:27:38 +02:00
Juan RP fac0d115bc hooks/pre-configure: new hook to generate foo-config wrappers in cross builds.
Script wrappers are created in ${wrksrc}/.xbps/bin and this path is appended
to make the configure scripts detect them.

This avoids adding build deps in hostmakedepends, as well as avoiding modifying
templates to specify the path to the script.

Currently this only creates a wrapper for "icu-config", but can be extended
easily to create more wrappers (freetype, libxml, etc).
2014-05-12 21:14:23 +02:00
Juan RP 8c8a7def1c hooks/post-install/strip: do not create dbg subpkgs if nonfree is set. 2014-05-10 16:22:13 +02:00
Juan RP 84ee8f9230 hooks/post-install/99-pkglint: print correct shlib for unversioned shlibs not in common/shlibs. 2014-05-09 09:24:04 +02:00
Juan RP 65bf4d6fca hooks/do-extract/00-distfiles: supports rpm extraction via rpmextract. 2014-05-08 18:44:54 +02:00
Juan RP ea719b3f59 Added multilib, multilib/nonfree and debug repositories by default.
- multilib: to store 32bit packages.
- multilib/nonfree: to store nonfree 32bit packages.
- debug: to store debug packages.
2014-05-05 10:59:33 +02:00
Juan RP 9ffc0d09ce common/hooks: ignore XBPS_ARCH when cross building. 2014-04-28 15:08:44 +02:00
Juan RP 9df1aa3b4e hooks/post-install/create-xbps-metadata-scripts: make sure to finalize scripts correctly.
The issue was that if a pkg does not add the missing newline at INSTALL
or REMOVE scripts, those were generated with a syntax error.

Found by onekk.
2014-04-14 10:41:06 +02:00
Juan RP cc6ea5d19b hooks/post-install/pkglint: more tweaks for the shlib checks. 2014-04-09 09:25:05 +02:00
Juan RP e573017385 hooks/post-install/pkglint: fixed another issue in the shlib checks. 2014-04-09 08:55:43 +02:00
Juan RP f6309d0909 hooks/post-install/strip-debug: repair -dbg subpkg creation. 2014-04-08 17:59:26 +02:00
Juan RP 77451b1845 Use --libdir=/usr/lib32 on x86 and create/remove the symlink via hooks.
This is to make all pkgs that use ${configure_args} work without changes
to the templates on x86_64.
2014-04-05 11:52:22 +02:00
Juan RP 00a8873281 hooks/post-install/pkglint: when listing revdeps make sure to not add false positives. 2014-04-04 17:29:14 +02:00
Juan RP 3ecb3c26fa hooks/post-install/pkglint: repair and improve checks to detect soname bumps. 2014-04-04 17:24:47 +02:00
Juan RP fc2c2c06ae hooks/post-install/strip: another day, another better regexp for shlib-provides. 2014-04-03 10:30:56 +02:00
Juan RP 8fa3cba4ea hooks/post-install/remove-libtool: do not escape * to make this work with virtuoso. 2014-04-02 12:39:58 +02:00
Juan RP 8fcb0e644a hooks/post-install/remove-libtool: make sure that PKGDESTDIR exists. 2014-04-02 12:06:27 +02:00
Juan RP 7d7e821754 hooks/post-install/strip: better regexp for shlib-provides from Gottox. 2014-04-02 10:16:16 +02:00
Juan RP 4859885e58 hooks/post-install: pkglint: just warn if shlib is not found in common/shlibs. 2014-04-01 15:25:07 +02:00
Juan RP 1d13ed0810 hooks/post-install: strip: only accept shlibs in destdir/usr/lib for shlib-provides.
This avoids lots of false positives and accepts unversioned shlibs as well.
2014-04-01 15:14:43 +02:00
Juan RP 581f3e29ab hooks: pkglint: only match exact shlibs (avoids multiple matches). 2014-03-31 18:14:52 +02:00
Juan RP efde1e1fbf hooks: improve shlib-provides: accept unversioned shlibs (i.e libfoo.so [nspr/nss]). 2014-03-31 18:13:53 +02:00
Juan RP 19f3a64de8 hooks/post-install/06-prepare-32bit.sh: do not convert deps that don't have shlib-provides. 2014-03-30 13:07:33 +02:00
Juan RP ce7c827d56 hooks: fixed shlib-provides detection to also detect shlibs with dots after dashes (libbabl-0.1.so.0). 2014-03-29 13:14:08 +01:00
Juan RP a11fd5dce8 hooks: improve even more shlib-provides detection: accept sonames with '-' chars. 2014-03-29 12:13:12 +01:00
Juan RP 2988902496 hooks: improve shlib-provides detection as suggested by Gottox. 2014-03-29 11:47:59 +01:00
Juan RP f32e0b76d7 hooks/post-install/99-pkglint: make the shlibs checks work correctly with vpkgs. 2014-03-27 14:00:11 +01:00
Juan RP d60be31450 hooks/post-install/03-strip-and-debug-pkgs: only add versioned shlib to shlib-provides.
This really avoids adding unwanted private shared objects or others that are
only meaningful at runtime and not for linking.
2014-03-24 17:07:26 +01:00
Juan RP 708d23ee81 hooks/post-install/04-generate-runtime-deps: use sed -E explicitly to avoid compat issues. 2014-03-24 16:57:08 +01:00
Juan RP 6c2cc1b706 hooks/post-install/99-pkglint: add checks for missing shlibs and SONAME bumps.
Created by Gottox and minor fixes by myself.
2014-03-24 11:15:29 +01:00
Juan RP fb777453b9 hooks/post-install: new hook (pkglint) to abort if pkg contains forbidden dirs. 2014-03-19 16:32:12 +01:00
Juan RP 0026342862 Infrastructure changes to allow unsetting template vars/funcs.
xbps-src-112 does not unset those vars/funcs anymore, so it's a work
that must be done via common/environment/setup{,-subpkg}.
2014-03-19 09:03:21 +01:00
Juan RP 9b60085684 common/hooks/post-install: reorder some hooks so that no unnecessary INSTALL/REMOVE scripts are generated. 2014-03-18 07:54:12 +01:00
Juan RP e8ac04d05b Revert "common/hooks/post-install/06-prepare-32bit.sh: ignore bootstrap pkgs."
This reverts commit e1f2d12a95.

glibc must have 32bit packages and it's a bootstrap pkg.
2014-03-17 14:15:26 +01:00
Juan RP e1f2d12a95 common/hooks/post-install/06-prepare-32bit.sh: ignore bootstrap pkgs. 2014-03-17 11:45:54 +01:00
Juan RP 14c15b0973 hooks/do-extract/distfiles: simplify and support .tar.lz files. 2014-03-14 11:04:51 +01:00
Juan RP 5070941df3 Remove the hook to compress manpages... no compressed manpages from now on. 2014-03-13 19:05:04 +01:00
Enno Boland 3ea159d359 common/hooks/do-extract: support 'xbps-uhelper fetch's new '>'-destfile syntax; replace if/elif by case struct for choosing extract method. 2014-03-12 16:44:54 +01:00
Juan RP 3d24cee58a hooks/do-fetch/distfiles: do not strip '>*' in url, pass it as is. 2014-03-12 15:47:49 +01:00
Juan RP cd02e84329 hooks/do-fetch/distfiles: simplify the code considerably. 2014-03-12 15:23:08 +01:00
Enno Boland b2afcc35be common/hooks/do-fetch: support 'xbps-uhelper fetch's new '>'-destfile syntax. 2014-03-12 13:47:57 +01:00
Juan RP 80240ba2fc hooks/do-extract/00-distfiles: do not exit, return instead. 2014-03-12 10:32:50 +01:00
Juan RP affb12291c hooks/post-install: added 6th arg in binpkg scripts (xbps support added in 0.33_2). 2014-03-12 10:19:20 +01:00
Juan RP d7c0bcec4f hooks/post-install/01-create-xbps-vpkg-files: update for xbps>=0.33. 2014-03-11 13:17:09 +01:00
Juan RP 320167e7e1 hooks/prepare-32bit: added lib32files var to add additional files to 32bit pkgs. 2014-03-09 11:23:58 +01:00
Juan RP e24233a15a hooks/do-pkg/gen-pkg: do not propagate conf_files/provides/replaces to 32bit pkgs. 2014-03-09 08:59:22 +01:00
Juan RP e9e8c638a8 hooks/prepare-32bit: new variables to improve 32bit pkg creation.
- lib32depends: if set, 32bit pkg will use this rather than "depends".
- lib32disabled: if set, no 32bit pkg will be created.
- lib32mode:
  * if unset only files for libraries will be copied.
  * if set to "full" all files will be copied

Still not perfect but should be enough to have skype-32bit.
2014-03-08 11:36:51 +01:00
Juan RP 8d7e6525e6 hooks/post-install/06-prepare-32bit: also include .o files (crtX.o). 2014-03-07 15:47:38 +01:00
Juan RP ca2eeec0c0 hooks/do-fetch/00-distfiles: fix previous again. 2014-03-07 11:22:51 +01:00
Juan RP b9e30d45dc hooks/do-fetch/00-distfiles: improve previous to handle all cases. 2014-03-07 11:20:56 +01:00
Juan RP ede40cdc41 hooks/do-fetch/00-distfiles: error out if distfiles aren't verified (found by Gottox). 2014-03-07 11:12:52 +01:00
Juan RP 3016320cb0 hooks: only generate/register 32bit pkgs on x86. 2014-03-07 10:12:20 +01:00
Juan RP 772e938938 hooks/post-install/06-prepare-32bit.sh: return early if destdir32 does not exist; only for x86. 2014-03-07 09:49:41 +01:00
Juan RP a26205c634 common/hooks: enable by default 32bit pkgs for x86_64. 2014-03-06 21:03:23 +01:00
Juan RP 8935913ab3 hooks/do-extract/00-distfiles: typo fix that broke extraction of gzipped distfiles. 2014-03-06 11:05:41 +01:00
Juan RP dddb603aeb common/hooks/post-install/06-prepare-32bit.sh: fix generated rdeps file.
The entries must be separated by blanks not newlines.
2014-03-06 04:19:07 +01:00
Juan RP b5c0ac90cc common/hooks/do-fetch: 00-distfiles: disable trap on ERR to fix autobuild issues. 2014-03-05 13:58:46 +01:00
Juan RP aa83852d7b common/hooks: add support for do-<phase> hooks as suggested by Gottox.
- New hooks for do-fetch and do-extract moved from xbps-src.
- Renamed some hooks to have XX as prefix.
2014-03-05 11:02:37 +01:00
Juan RP 908af511f9 common/hooks: new hook to generate 32bit pkgs for x86_64 (WIP). 2014-03-02 12:26:24 +01:00
Juan RP 030f58909f common/hooks: new post-install hook to generate pkg gitrevs file. 2014-03-02 08:33:28 +01:00
Juan RP 370c2aaf3c common/hooks/*-pkg: misc tweaks for proper -dbg {creat,registrat}ion. 2014-03-02 07:07:59 +01:00
Juan RP b3200722ef comon/hooks: update pkg hooks to also create/register -dbg pkgs. 2014-03-02 06:30:25 +01:00
Juan RP 6472e83dbf common/hooks/post-pkg: need hook that registers a binpkg into the local repo. 2014-03-01 12:37:55 +01:00
Juan RP 745eb9f1ad common/hooks/pre-pkg: new hook that generates a binpkg. 2014-03-01 12:37:30 +01:00
Juan RP affe0abc3e pre-configure/gnu-configure-asneeded.sh: do nothing if configure_script does not exist. 2014-02-15 05:12:32 +01:00
Juan RP f5827d8b4b hooks/post-install/03-strip-and-debug-pkgs.sh: respect $noarch and $nostrip. 2014-02-13 17:12:09 +01:00
Juan RP 5e11d6c2ff common/hooks: new post-extract hook: apply-patches (moved from xbps-src). 2014-02-12 18:38:32 +01:00
Juan RP 94eb08b05a hooks/04-generate-runtime-deps.sh: disable trap on ERR, not too useful on this hook. 2014-02-12 18:03:21 +01:00
Juan RP 2daaa82b63 common/hooks: new hooks moved from xbps-src. 2014-02-12 17:26:40 +01:00
Juan RP af8b5befde common/hooks/post-install: remove unneeded messages. 2014-02-12 15:08:35 +01:00
Juan RP 907f392e4d common/hooks: add some hooks moved from xbps-src (not yet used). 2014-02-12 12:55:42 +01:00
Juan RP 372ed2763f Introduce common/hooks to implement hooks at specified phases.
xbps-src will soon move some stuff to the common hooks directory.
2014-02-12 10:44:21 +01:00