After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739338 - Preparatory work for building SDK/Platform in gnome-continuos
Preparatory work for building SDK/Platform in gnome-continuos
Status: RESOLVED OBSOLETE
Product: gnome-continuous
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Continuous maintainer(s)
GNOME Continuous maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-10-29 08:18 UTC by Alexander Larsson
Modified: 2021-06-05 16:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Wrap python trigger in shell (1.45 KB, patch)
2014-10-29 08:19 UTC, Alexander Larsson
accepted-commit_now Details | Review
fileutils: Support enumerating directories if matchDirs is true (2.07 KB, patch)
2014-10-29 08:20 UTC, Alexander Larsson
reviewed Details | Review
Use groups to pick components for different targets (21.16 KB, patch)
2014-10-29 08:20 UTC, Alexander Larsson
accepted-commit_now Details | Review
Add keep-only component property (1.71 KB, patch)
2014-10-29 08:20 UTC, Alexander Larsson
reviewed Details | Review

Description Alexander Larsson 2014-10-29 08:18:51 UTC
This is a set of patches needed for my work with using continuos to build a gnome platform.

The major change is in how we define what components go to a target, as they are now based on a generic grouping, rather than strict hiearchies. This is needed as the platform doesn't need some low-level hw/boot things that the other targets need.

Then there are some other minor additions/changes.
Comment 1 Alexander Larsson 2014-10-29 08:19:58 UTC
Created attachment 289566 [details] [review]
Wrap python trigger in shell

The platform component doesn't have python, so starting python
directly from the systemd trigger fails. However, it also doesn't
need systemd, so we wrap it in a shellscript that checks for the
existance of python first.
Comment 2 Alexander Larsson 2014-10-29 08:20:01 UTC
Created attachment 289567 [details] [review]
fileutils: Support enumerating directories if matchDirs is true

This is needed as i want to use walkDir to clean up stuff, including
directories.
Comment 3 Alexander Larsson 2014-10-29 08:20:05 UTC
Created attachment 289568 [details] [review]
Use groups to pick components for different targets

Right now we're using a single-value "component" property to pick
what targets to put each component in. Then there is some hardcoded
logic to pick which of these to put in each target. In order to handle
the hwtest and the runtime sharing packages a "minial" component was
introduced to allow some components to be in multiple targets.

However, such a setup requires a strict hierarchical definition of all
components, which scales badly with adding more targets with different
subsets. Instead we switch to a groups based system, where all the
components which previously had "component = minimal" now have "groups =
runtime, hwtest" and the other components just keeps the old component
as the single group.

We also define a "targets" toplevel item that lists the targets
to compose and which groups each should contain, and which subtrees
to use when composing.

This doesn't change what is built or how, but it makes things more
flexible when adding more targets in the future.
Comment 4 Alexander Larsson 2014-10-29 08:20:08 UTC
Created attachment 289569 [details] [review]
Add keep-only component property

If this is set then only the listed files will be part of the component.
Everything else will be deleted.

This is needed to create a simple libudev package from the systemd
sources, as it can't (easily) install libudev only.
Comment 5 Colin Walters 2014-10-30 21:58:01 UTC
Review of attachment 289566 [details] [review]:

Ok.
Comment 6 Colin Walters 2014-10-31 02:44:26 UTC
Review of attachment 289567 [details] [review]:

Is it intentional the matches don't apply to the subdir too?  For example if matchName doesn't match when matchDirs, we still do the callback?

If so, maybe call the parameter "directoryCallbacks" or something?
Comment 7 Colin Walters 2014-10-31 02:47:36 UTC
Review of attachment 289568 [details] [review]:

This is very much superior to what we had before, thanks =)
Comment 8 Colin Walters 2014-10-31 02:50:43 UTC
Review of attachment 289569 [details] [review]:

::: src/js/tasks/task-build.js
@@ +454,3 @@
+				     }
+				 }
+				 GSystem.file_unlink(filePath, cancellable);

This leaves empty directories around, no?  Maybe that doesn't matter too much in most cases, but e.g. I'd not expect there to be a /usr/lib/systemd/system in the SDK.

This might also be an appropriate place for regexps instead of string prefix matches (maybe...globs would be annoying to implement).
Comment 9 André Klapper 2021-06-05 16:29:53 UTC
gnome-continuous is not under active development anymore. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-continuous

Closing all its open tickets as part of housekeeping.