Skip to content

spec file: Add Requires: %{name} to subpackage#290

Merged
nephros merged 2 commits intomasterfrom
Olf0-patch-1
Mar 17, 2022
Merged

spec file: Add Requires: %{name} to subpackage#290
nephros merged 2 commits intomasterfrom
Olf0-patch-1

Conversation

@Olf0
Copy link
Contributor

@Olf0 Olf0 commented Feb 28, 2022

testcases, because they do depend on Patchmanager to run.

@Olf0
Copy link
Contributor Author

Olf0 commented Feb 28, 2022

Oh, I merged PR #289 and tagged the release 3.2.2 first and then remembered that I thought of this yesterday night, so I missed the chance to also put his into PR #289. 🙁

@Olf0 Olf0 self-assigned this Feb 28, 2022
@Olf0 Olf0 added bug something that needs fixing infrastructure building, packaging, hosting etc. trivial labels Feb 28, 2022
@Olf0 Olf0 added this to the 3.2.3 milestone Feb 28, 2022
Copy link
Contributor

@nephros nephros left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well in theory you could have it installed and "use" the "app" and the "patches" without patchmanager proper, which is why I left the dep off.

I don't think the dependency is strictly necessary or useful, but have no real objection to the change, so approving.

It should not ever depend on a version of PM though.

@Olf0
Copy link
Contributor Author

Olf0 commented Mar 3, 2022

Well in theory you could have it installed and "use" the "app" and the "patches" without patchmanager proper, which is why I left the dep off.

You mean, by applying the patch files via patch utility?
And the fact that the app can always run without Patchmanager?

I don't think the dependency is strictly necessary or useful, but have no real objection to the change, so approving.

I think (see above) I now understand the »not strictly necessary« part, but »not useful« surprises me: I would consider the statement »in theory you could have it installed and "use" [it] without patchmanager proper« as academic (as "in theory" indicates).
Practically the Patchmanager Testcases app and accompanied set of Patches exist for testing Patchmanager, right?

It should not ever depend on a version of PM though.

Ack, agreed, that currently does not make any sense: While Patchmanager and Patchmanager Testcases will carry same the version number the way both packages are generated, there (currently) is no version dependency at all. Only the »not ever« puzzles me, because if a json-Patch contains metadata (to test), which requires a certain minimal version of Patchmanager to be correctly evaluated, this may change. But the again, it would simply mean that a specific test is failing.

I really do not want to simply discard your objection, especially because the test cases are "your baby".
OTOH I do want to avoid the situations like the one we observed with Vlad: "Why does starting the app do nothing except for telling that no Patches were deployed?" Without Patchmanager installed this becomes even harder to comprehend.

P.S.: An "easy way out" would be a Recommends: weak dependency, which effectively does nothing on SailfishOS. That needs rpm ≥ 4.13 (to be recognised as a keyword) and SFOS 3.2.1 already deploys v4.14.1.
But as it is effectively a no-op, I really want to make sure that this is the right thing to do and we basically agree.

@Olf0 Olf0 requested a review from nephros March 15, 2022 19:23
@Olf0 Olf0 added enhancement this improves something and removed bug something that needs fixing labels Mar 17, 2022
@nephros nephros merged commit de364a5 into master Mar 17, 2022
@nephros nephros deleted the Olf0-patch-1 branch March 17, 2022 18:06
@nephros
Copy link
Contributor

nephros commented Mar 17, 2022

Well in theory you could have it installed and "use" the "app" and the "patches" without patchmanager proper, which is why I left the dep off.

You mean, by applying the patch files via patch utility? And the fact that the app can always run without Patchmanager?

Precisely.

I don't think the dependency is strictly necessary or useful, but have no real objection to the change, so approving.

I think (see above) I now understand the »not strictly necessary« part, but »not useful« surprises me: I would consider the statement »in theory you could have it installed and "use" [it] without patchmanager proper« as academic (as "in theory" indicates). Practically the Patchmanager Testcases app and accompanied set of Patches exist for testing Patchmanager, right?

Academic is a good word for my "objections", which is why I just hit the merge button.

(I had a longer reply for this typed up, but it got lost in a fatfingered reload and I'm not typing it again, sorry.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement this improves something infrastructure building, packaging, hosting etc. trivial

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants