Commit graph

23 commits

Author SHA1 Message Date
Juan RP 3fdd0e180e xbps-src: run pre-pkg hooks in the install to destdir target.
The prepare-32bit hook has been moved to the pre-pkg stage and now
those hooks are executed as part of the install phase. That means that
pre-pkg hooks are now independently run for the subpkgs and the sourcepkg
after the install-destdir phase and pre/do/install hooks.

As bonus, finally correct rdeps can now be collected for the 32bit pkgs
and works for all them, without the need to sort the order of subpkgs!
2014-08-25 22:34:13 +02:00
Juan RP e13c7ffe78 hooks/prepare-32bit: fix shlib-provides detection for non subpkgs. 2014-08-18 13:43:39 +02:00
Juan RP f06932f34d hooks/prepare-32bit: even more debugging. 2014-08-18 13:17:49 +02:00
Juan RP 344ca13dab hooks/prepare-32bit: add some more debugging to see what's going on. 2014-08-18 13:11:46 +02:00
Juan RP f1822d43af hooks/prepare-32bit: update paths to lib32 correctly in pkgconfig files. 2014-08-18 10:54:33 +02:00
Juan RP cdc60029eb hooks/prepare-32bit: convert -devel pkgs to 32bit to have proper rdeps. 2014-08-18 10:12:37 +02:00
Juan RP a29e0f1f9d hooks/prepare-32bit: fix shlib-provides detection for subpkgs. 2014-07-23 12:54:37 +02:00
Juan RP f6c46a3c99 hooks/post-install/prepare-32bit: fix rdep conversion with subpkgs.
If a required dependency is a subpackage and it does not contain shlib-provides,
do not convert to 32bit.

This fixes the issue of gtk+-32bit requiring gtk-update-icon-cache-32bit,
which was simply wrong because the latter does not provide any shlib.
2014-07-20 11:18:21 +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 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 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 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 320167e7e1 hooks/prepare-32bit: added lib32files var to add additional files to 32bit pkgs. 2014-03-09 11:23:58 +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 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 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 908af511f9 common/hooks: new hook to generate 32bit pkgs for x86_64 (WIP). 2014-03-02 12:26:24 +01:00