New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<content_rating> handling #198
Comments
|
The specification actually indeed forbids this (a "must" is always binding) but it actually should not, in this case. Therefore, this is a bug in both the implementation and the specification. I will work on a fix tomorrow. |
Also update a few links, while looking into this. This is the second piece for resolving #198
|
I'm running Kali Linux (which is pretty much Debian Testing with regards to this issue at least) and I'm still getting the error after manually upgrading |
|
@antoszka This is likely a new issue - can you help to debug it? |
|
@ximion I think it might be that appstream 0.12.2-2 depends on libappstream4 >= 0.12.0, so some people who don't run a full sid and are just upgrading appstream only aren't automatically getting the new libappstream. This seems to be the case for Houmehr in the debian bug at least, since he still has libappstream4 0.12.2-1. |
|
Yes, certainly, I took care to upgrade both the client and the library: Including the other information you requested: |
...and you still get the error when running |
|
Yep: |
|
Same thing with |
|
@antoszka You don't happen to be able to either compile AppStream from source or get the libas/ascli debug symbols from somewhere? ;-) EDIT: |
|
I certainly can try compiling from source if there aren't too many pain-inducing deps :). Gimme a few minutes. |
|
If you are using Debian, you can also use the automatically generated debug symbols: https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols |
|
@ximion I'm using Kali Rolling, which is almost Debian Testing, but not quite, so I'd prefer not to risk adding the Debian debug repo. I'm trying to build the package, with mixed results as of now :) |
Does that help? :) |
|
@antoszka The most interesting part is missing, the library has no debug symbols. Maybe you can force GDB to load the libappstream library you have debug symbols for by also setting the |
|
Damn, when I use the locally built library I get no errors: Not sure how to go about debugging that further. Can we catch up on IRC to discuss that live? I'm |
|
@antoszka Are you sure you're on 0.12.2-2? Your |
|
@jbrobst I just noticed that too - I think this is the problem here, as it was with the Debian bug. |
|
@jbrobst Yes, I'm on |
|
@antoszka That's not really how it works... Since you only have Debian revision 1, it means that the patch that fixes this bug is not actually included, so you still have the old version which has this bug. |
|
OK, cool, I'll wait for my packager (Kali Linux) to pull in the newer Debian packages. I thought the fix is already in |
|
@antoszka It's normal to see certain bug fixes which are not yet part of a new upstream version included as patches in the source package which just increase the debian revision number in the version; I think it might be the most common use case for source package patches aside from debian-specific changes. In the case of this bug fix it won't hurt to manually install the .debs from unstable, once kali-rolling has a version exceeding 0.12.2-2 it will automatically be preferred by apt and thus updated as usual. |
|
Understood, thanks for all the help! |
So what do we include in an OARS content rating section when it has no age restrictions? There was a lot of pushback about including ~40 lines of |
|
@hughsie You just include an empty |
After running
apt updatetoday I got a fatal error fromappstreamcli refresh-cache. I believe the cause is the new version of stellarium uploaded to Debian unstable yesterday, whose appdata XML contains acontent_ratingtag without anycontent_attributechildren. It is unclear to me whether the appstream documentation forbids this:If it is forbidden, I think "must have one or more <content_attribute/> children" would be clearer. The code does assume this is the case, as
as_content_rating_to_variantcallsg_variant_builder_end(&values_b), which is an error if the indefinite array variantvalues_bhas not had anything added.On the other hand, the user that submitted the PR to stellarium seems to have used the OARS generation tool linked by the documentation for content_rating, which does generate a childless content_rating tag if you answer "None" to all of the questions.
So, either appstream needs to be modified to accept a content_rating tag with no children or the OARS tool needs to change what it generates when all questions are answered with "None" (perhaps along with the clarification to the content_rating documentation above).
The text was updated successfully, but these errors were encountered: