Merge lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test into lp:~checkbox-dev/checkbox/checkbox-packaging

Proposed by Daniel Manrique
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 9
Merged at revision: 7
Proposed branch: lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test
Merge into: lp:~checkbox-dev/checkbox/checkbox-packaging
Diff against target: 26 lines (+6/-3)
1 file modified
debian/control (+6/-3)
To merge this branch: bzr merge lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test
Reviewer Review Type Date Requested Status
Zygmunt Krynicki (community) Approve
Daniel Manrique (community) Needs Resubmitting
Review via email: mp+171640@code.launchpad.net

Commit message

This adds some gstreamer1.0 packages as recommends for checkbox, so that they are correctly installed when installing the PPA version of checkbox.

Description of the change

This adds some gstreamer1.0 packages as recommends for checkbox, so that they are correctly installed when installing the PPA version of checkbox.

The implication of this change is that checkbox will be UNINSTALLABLE on Precise *unless* the gstreamer developers PPA is added, since a few of the required gstreamer packages are not in the Precise archive.

For instance, this means that we will have to add the gstreamer PPA to our preseeds to enable checkbox for Precise to be installed during certification and/or SRU testing.

Please be as brutal as you want with this merge request, I'd rather have to rework things than land stuff that will be nonfunctional or make checkbox uninstallable.

To post a comment you must log in.
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Actually, thinking about it, do you think we should have:

Recommends: gstreamer-1.0-blarg | gstreamer-0.10-blarg

Revision history for this message
Daniel Manrique (roadmr) wrote :

On one hand, the test will simply not work unless gstreamer 1.0 is installed, so I could also just remove all the dependencies for gstreamer 0.10. Downside is that this will, as mentioned, make checkbox entirely uninstallable on Precise without the PPA.

On the other hand, I wonder if it would be worthwhile making it so that, if gstreamer 1.0 is not available, it doesn't get installed, we install gstreamer 0.10 for those tests that work well with either version, and the job's requirements ensure that the test won't run if the requirements are not met.

I could change the recommends/depends so that I list an alternative for every gstreamer-1.0 package. Thus, if 1.0 is available, it will install that; if not, it will fall back to 0.10.

Do you know if the | operator honors order? e.g. if I say "gstreamer-1.0 | gstreamer-0.10" will it prefer 1.0 always?

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

yes, it explicitly does ordering that way to make it deterministic

On Thu, Jun 27, 2013 at 5:46 PM, Daniel Manrique <
<email address hidden>> wrote:

> On one hand, the test will simply not work unless gstreamer 1.0 is
> installed, so I could also just remove all the dependencies for gstreamer
> 0.10. Downside is that this will, as mentioned, make checkbox entirely
> uninstallable on Precise without the PPA.
>
> On the other hand, I wonder if it would be worthwhile making it so that,
> if gstreamer 1.0 is not available, it doesn't get installed, we install
> gstreamer 0.10 for those tests that work well with either version, and the
> job's requirements ensure that the test won't run if the requirements are
> not met.
>
> I could change the recommends/depends so that I list an alternative for
> every gstreamer-1.0 package. Thus, if 1.0 is available, it will install
> that; if not, it will fall back to 0.10.
>
> Do you know if the | operator honors order? e.g. if I say "gstreamer-1.0 |
> gstreamer-0.10" will it prefer 1.0 always?
>
> --
>
> https://code.launchpad.net/~roadmr/checkbox/packaging-1194717-add-recommends-audio-test/+merge/171640
> You are reviewing the proposed merge of
> lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test into
> lp:~checkbox-dev/checkbox/checkbox-packaging.
>

9. By Daniel Manrique

Added alternatives for all gstreamer1.0 packages

Revision history for this message
Daniel Manrique (roadmr) wrote :

OK, based on that I reordered the dependencies and added gstreamer0.10 equivalents for all the 1.0 packages. The end result is that the package *should* be installable on vanilla Precise, without gstreamer PPA, but the audio test will *not* work, as message handling is very broken on gstreamer 0.10 (this is expressed both in the jobs that use audio_test and in the script itself which will bail if it can't load Gst 1.0). If the PPA is added, then it will give preference to the 1.0 packages and it should work even on Precise.

review: Needs Resubmitting
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve
Revision history for this message
Daniel Manrique (roadmr) wrote :

Merging manually since tarmac doesn't handle this checkbox-packaging branch yet.

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

anyone wants to add it to tarmac conifg?

On Fri, Jun 28, 2013 at 12:23 AM, <email address hidden> wrote:

> The proposal to merge
> lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test into
> lp:~checkbox-dev/checkbox/checkbox-packaging has been updated.
>
> Status: Approved => Merged
>
> For more details, see:
>
> https://code.launchpad.net/~roadmr/checkbox/packaging-1194717-add-recommends-audio-test/+merge/171640
> --
>
> https://code.launchpad.net/~roadmr/checkbox/packaging-1194717-add-recommends-audio-test/+merge/171640
> You are reviewing the proposed merge of
> lp:~roadmr/checkbox/packaging-1194717-add-recommends-audio-test into
> lp:~checkbox-dev/checkbox/checkbox-packaging.
>

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2013-06-01 14:18:12 +0000
3+++ debian/control 2013-06-27 18:30:34 +0000
4@@ -19,7 +19,7 @@
5 python3-mock,
6 python3-pkg-resources,
7 qt4-qmake
8-Vcs-Bzr: https://code.launchpad.net/~hardware-certification/checkbox/trunk
9+Vcs-Bzr: https://code.launchpad.net/~checkbox-dev/checkbox/trunk
10
11 Package: checkbox
12 Section: python
13@@ -33,8 +33,11 @@
14 ${python3:Depends},
15 ${shlibs:Depends}
16 Recommends: dpkg (>= 1.13),
17- gir1.2-gst-plugins-base-0.10 | gir1.2-gst-plugins-base-1.0,
18- gstreamer0.10-gconf | gstreamer1.0-plugins-good,
19+ gir1.2-gst-plugins-base-1.0 | gir1.2-gst-plugins-base-0.10,
20+ gir1.2-gstreamer-1.0 | gir1.2-gstreamer-0.10,
21+ gstreamer1.0-plugins-good | gstreamer0.10-gconf,
22+ gstreamer1.0-pulseaudio | gstreamer0.10-pulseaudio,
23+ libgstreamer1.0-0 | libgstreamer0.10-0,
24 lsb-release,
25 perl,
26 pm-utils,

Subscribers

People subscribed via source and target branches