Merge lp:~sil2100/livecd-rootfs/pocket-desktop into lp:livecd-rootfs
| Status: | Merged |
|---|---|
| Merged at revision: | 1206 |
| Proposed branch: | lp:~sil2100/livecd-rootfs/pocket-desktop |
| Merge into: | lp:livecd-rootfs |
| Diff against target: |
100 lines (+21/-13) 2 files modified
live-build/auto/build (+9/-7) live-build/auto/config (+12/-6) |
| To merge this branch: | bzr merge lp:~sil2100/livecd-rootfs/pocket-desktop |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Colin Watson | Approve on 2015-09-21 | ||
| Michael Vogt | 2015-09-17 | Approve on 2015-09-21 | |
| Łukasz Zemczak | Needs Fixing on 2015-09-18 | ||
|
Review via email:
|
|||
Commit Message
Add support for pocket-desktop. We do this through SUBPROJECT right now as adding a new project would require modifying multiple lines and copy-pasting the whole hook list - which is complete boilerplate and makes maintenance troublesome, as any change to ubuntu-touch hooks would have to be duplicated in ubuntu-pd (symlinks don't work).
Description of the Change
Add support for pocket-desktop. We do this through SUBPROJECT right now as adding a new project would require modifying multiple lines and copy-pasting the whole hook list - which is complete boilerplate and makes maintenance troublesome, as any change to ubuntu-touch hooks would have to be duplicated in ubuntu-pd (symlinks don't work).
Steve said he would prefer to have it as a separate project, and I can surely make it a separate project, but... It would pain me very much to add so much unnecessary changes for something that can be done with a 3 line diff with SUBPROJECT. I leave it up to the reviewers.
Another reason to keep it as a subproject: if we add a new project, we need to modify cdimage code. Subprojects do not require any real changes.
| Łukasz Zemczak (sil2100) wrote : | # |
| Łukasz Zemczak (sil2100) wrote : | # |
From what I saw in the ubuntu-cdimage code, it seems that new subprojects are handled automatically, simply using everything from the base project + appending the subproject name. I wonder if I saw that right. Anyway, if yes, then that's another good reason for using subproject.
| Michael Vogt (mvo) wrote : | # |
I'm ok with this change, I would rather see a two lines diff like this than to duplicate all the boilerplate. If it turns out to be a problem we can always revert these two lines here and revert to the full project.
- 1206. By Łukasz Zemczak on 2015-09-18
-
Fix indent
| Colin Watson (cjwatson) wrote : | # |
I can see why this looks tempting, but it's going to cause a lot of problems in cdimage. We have a hardwired assumption there that subprojects are only used for a very few things, and that they always have a different image type from the master project (so ubuntu-
| Colin Watson (cjwatson) wrote : | # |
Also, symlinking the whole directory will work fine. Symlinking individual files might not, but that could easily be fixed by changing "cp -af" to "cp -Rf --preserve=all".
| Łukasz Zemczak (sil2100) wrote : | # |
ACK! After discussion with Colin I can see the possible problems, changing to the project approach. I'll use a symlink and hope for the best ;)
- 1207. By Łukasz Zemczak on 2015-09-18
-
Switch to the project approach, add a symlink for the hooks
| Colin Watson (cjwatson) wrote : | # |
Mostly looks OK, but I think the metapackage handling needs to be fixed. See below.
- 1208. By Łukasz Zemczak on 2015-09-21
-
As suggested by Colin, first add the meta packages, then the other deps.
- 1209. By Łukasz Zemczak on 2015-09-21
-
Install the meta package as part of one add_package install call.

I know I already had a similar branch before and marked it as rejected, but now I want to re-try a similar approach just with the meta-package instead.
I can change it to doing a separate project (like ubuntu-touch) if the reviewers decide it's a better choice.