Commit Graph

64 Commits

Author SHA1 Message Date
Ettore Di Giacinto 51d7bdc968 Merge pull request #7 from optiz0r/feature_package_deps_cache
Add brackets to uniq to fix compilation error
v0.7.2
2016-03-21 21:59:19 +01:00
Ben Roberts 79d3d5d4b5 Add brackets to uniq to fix compilation error 2016-03-21 20:54:57 +00:00
Ettore Di Giacinto 2c05cdce52 Merge pull request #6 from optiz0r/feature_package_deps_cache
Cache results of package_deps and re-enable virtual dep stripping
v0.7.1
2016-03-20 21:01:57 +01:00
Ben Roberts a55856cb97 Revert to using locally defined uniq 2016-03-20 19:59:56 +00:00
Ben Roberts 967cd9708a Cache results of package_deps and re-enable virtual dep stripping
It's likely that some virtuals are dependencies of multiple package arguments
to builder and the depgraph would be queried multiple times. This commit
caches the results to avoid expensive duplicate shell execs and optimise for
speed.

Additionally, when calls to equery depgraph match multiple packages (e.g.
the query is for an unversioned atom, and multiple versions exist in the
portage tree), the results for all versions are returned, resulting in
duplicates. This change also strips out the duplicate entries so further
work need only be done once.

This uses perl 5.10's `state` variables, so adds the appropriate use. Since
Sabayon ships only perl 5.20, this should not be an issue.
2016-03-20 19:43:20 +00:00
mudler 566e4603c8 [sabayon-createrepo] sign won't return true also if succeeds but repos have to be synced v0.7 2016-03-18 17:53:38 +01:00
mudler 55bb3cc44e enabling package signing v0.6.9 2016-03-18 14:33:12 +01:00
Ettore Di Giacinto 502b85b84b [createrepo] adding KEYS env variable 2016-03-18 00:23:47 +01:00
mudler c17228fc05 [builder] reverting virtual exclusion, prevents building and end in an infinite loop v0.6.8 2016-03-15 11:05:19 +01:00
mudler a4ce1e8300 suppressing useless output v0.6.7 2016-03-06 20:43:35 +01:00
mudler 67a689f217 [builder sabayon-buildpackages] renaming SKIP_SYNC in SKIP_PORTAGE_SYNC 2016-03-06 20:37:02 +01:00
mudler 2c38ae1c0c [builder sabayon-buildpackages] adding SKIP_SYNC and WEBRSYNC to control portage sync 2016-03-06 20:04:52 +01:00
mudler f35a2e14cd [builder] dumb fix to virtual's dependencies exclusion 2016-03-06 19:54:24 +01:00
mudler 23d9c86cae [builder] minor changes, fix to virtual's dependencies exclusion 2016-03-06 19:42:59 +01:00
Ettore Di Giacinto c7d05296f9 Merge pull request #5 from optiz0r/feature_handle_virtual_dependencies
Don't install dependencies brought in by virtual packages
2016-03-06 19:41:22 +01:00
Ben Roberts 1c29cba964 Don't install dependencies brought in by virtual packages
When calculating the missing dependencies for an ebuild to be installed
by entropy, it's necessary to walk two levels deep minimum to handle meta
packages and split ebuilds. This has a nasty side effect for virtual packages
since all the potential candidates that could satisfy the virtual are
included. This means for anything that has a dependency on virtual/jdk, every
possible jdk is installed side-by-side. For anything that depends on
virtual/mta, every possible mta is installed one by one (because these conflict
and substitute each other, each subsequent install uninstalls the previous
package which is a massive waste of time, bandwidth and effort).

This commit walks through the dependency list looking for any virtual packages.
For each one, the first-level dependencies of the virtual are collected. Only
dependencies of the target package which are not also dependencies of the virtual
are installed. This means only one package that satisfies the virtual will end up
being installed.
2016-03-06 17:35:53 +00:00
mudler 5895b63ef6 [builder] moving @Installed_Packages chomp to a more logic part 2016-03-06 17:00:55 +01:00
mudler 90121cd3b8 [builder] fix, force shift to be evaluated in expression context inside dereference 2016-03-06 16:59:33 +01:00
mudler caf7e76b9b [sabayon-buildpackages] read DEPENDENCY_SCAN_DEPTH env variable and propagating to builder #4 2016-03-06 13:39:36 +01:00
mudler 42dab39689 [builder] checking if installation of packages is required at all #3 2016-03-06 13:24:54 +01:00
mudler aebe2c8783 [builder] Speed up Available/Installed Packages computation #3 2016-03-06 13:13:55 +01:00
mudler f37168a9e8 [builder] enabling depth override with DEPENDENCY_SCAN_DEPTH env variable #4 2016-03-06 13:03:14 +01:00
Ettore Di Giacinto c40be91df5 Merge pull request #1 from optiz0r/bugfix_dont_reinstall_deps
Fix equo query to prevent dependencies being reinstalled
2016-03-06 12:38:59 +01:00
Ettore Di Giacinto aa31b5865b Merge pull request #2 from optiz0r/feature_disable_mirrorsort
Allow disabling mirrorsort with EQUO_MIRRORSORT=0 env var
2016-03-06 12:33:30 +01:00
Ben Roberts cea7504964 Allow disabling mirrorsort with EQUO_MIRRORSORT=0 env var
When doing repeated testing, the mirrorsort can add unwanted delay.
This commit adds support for setting EQUO_MIRRORSORT=0 to disable this
and use the default sort order while testing.
It preserves the previous behaviour and defaults to 1.
2016-03-05 22:52:20 +00:00
Ben Roberts 3d51d160c5 Remove workaround for equery output not being quiet as requested 2016-03-05 22:47:49 +00:00
Ben Roberts cbd7a010ba Fix equo query to prevent dependencies being reinstalled
Call to equo query puts arg '--quiet' in the wrong place, receiving
prettified output which doesn't match string comparisons against
package names, leading to all dependencies being reinstalled every
time. This commit puts the --quiet arg in to correct place so that
only missing dependencies are installed.
2016-03-05 20:17:19 +00:00
mudler c3e313ef60 add sabayon-tbz2truncate v0.6.6 2016-03-03 00:43:00 +01:00
mudler 0f1f702c66 add sabayon-tbz2extract and sabayon-xpakextract v0.6.5 2016-03-02 21:19:12 +01:00
mudler c9effe3053 portage should be mounted before the other caches directories v0.6.4 2016-03-02 17:21:08 +01:00
mudler 20056cb0d5 [sabayon-buildpackages] adding PORTAGE_CACHE env variable v0.6.3 2016-03-02 14:07:50 +01:00
mudler 1076f1c2e3 ENTROPY_DOWNLOADED_PACKAGES defaults to entropy defaults v0.6.2 2016-02-28 15:48:54 +01:00
mudler f29cd8dabc [sabayon-buildpackages] enabling mounting of ENTROPY_DOWNLOADED_PACKAGES, but must be in complete form (localdirectory:containerdirectory) since it's arch-dependent v0.6.1 2016-02-28 13:52:41 +01:00
mudler a228567ab9 [sabayon-createrepo] dumb fix v0.6 2016-02-27 12:11:44 +01:00
mudler 26389080f2 calling equo rm if necessary 2016-02-26 23:49:40 +01:00
mudler 59ef11dc13 [sabayon-buildpackages] now with REMOTE_OVERLAY you can specify a git repository to clone instead of a local one v0.5.9 2016-02-25 23:00:50 +01:00
mudler aa11986503 [sabayon-buildpackages] adding DISTFILES env v0.5.8 2016-02-25 21:48:17 +01:00
mudler a37db57b82 entrypoint in createrepo is forced v0.5.7 2016-02-24 22:11:48 +01:00
mudler 88fb0d890a adding DOCKER_OPTS 2016-02-24 22:06:28 +01:00
mudler 1d14348bd8 adding --remove to remove packages with equo before the build v0.5.6 2016-02-24 17:52:33 +01:00
mudler 4af1209a33 fix OUTPUT_DIR instead WORKSPACE v0.5.5 2016-02-24 14:47:25 +01:00
mudler a13f89ee22 adding tools to remove packages and cleanup 2016-02-23 22:50:27 +01:00
mudler fae9e91583 adding brokenlibs checker scripts 2016-02-22 16:37:54 +01:00
mudler c7abf2e24b Adding sabayon-entropypreservedlibs, enabling ENTROPY_REPO environment to define which repo enable before upgrade in the builder script v0.5.4 2016-02-21 23:27:27 +01:00
Ettore Di Giacinto b07d658d88 [script/builder] default repo is main v0.5.3 2016-02-19 22:42:39 +01:00
mudler 18148617ea [builder] disabling quiet build as default emerge options 2016-02-15 00:01:28 +01:00
mudler 11f56726d5 [createrepo] using custom image for eit usage v0.5.2 2016-02-12 11:21:00 +01:00
mudler ff9fb250a2 try to start docker if not running (it will save a lot of pandas) v0.5.1 v.0.5.1 2016-02-09 01:05:48 +01:00
Ettore Di Giacinto aa5e41c073 Update README.md v0.5 2016-02-08 22:27:21 +01:00
mudler 68cb54c5d0 Added more Env variable for customization, now directory structure is created on user behalf if there is actually a need 2016-02-08 22:25:57 +01:00