Git Product home page Git Product logo

Comments (9)

jsorg71 avatar jsorg71 commented on June 5, 2024 2

I created #122 for this

from xorgxrdp.

ljrk0 avatar ljrk0 commented on June 5, 2024 1

Well, I don't know what they guaranteed per spec: defined or defined to 1. In the latter case it's a bug on their side, in the former a reliance on unspecified behavior on this side.

But even in the latter case they might want to transition to only it being defined since the value '1' has no special meaning to them. XvExtension is no single case but it seems that pretty much every extension is handled that way and, with meson, merely defined than defined to a specific value.

If it did have an intended meaning in earlier X versions but they don't this anymore, one could of course check against the X version

#if defined(XvExtension) && (/* X Version >= 1.20 */ || XvExtension)

Since XvExtension will only evaluated when X Version < 1.20 this should work.

from xorgxrdp.

geiseri avatar geiseri commented on June 5, 2024 1

@jsorg71 thoughts on the proposed fix? It seems to be blowing up on Arch.

from xorgxrdp.

jsorg71 avatar jsorg71 commented on June 5, 2024

Thanks for reporting, I'll take a look. It seems 1.20 was releases May 10 2018.

from xorgxrdp.

jsorg71 avatar jsorg71 commented on June 5, 2024

This looks like a bug on their side. There is not a good way to fix it on our side.

from xorgxrdp.

jsorg71 avatar jsorg71 commented on June 5, 2024

checking for Xorg version does not fix it. you need to check for meson. It builds fine with autotools. This is a bug in the meson config in Xorg, it's still under development the way it looks.

from xorgxrdp.

ljrk0 avatar ljrk0 commented on June 5, 2024

Yes, it's impossible though to check whether the installed system was built using meson or not, however with Xorg 1.20 quite many distributors changed to meson, hence the version check.

We could also just go full-on, and kill the check for the value of `XvExtension* altogether, since I've not seen this anywhere else at all, it's probably code that just "happened to work" anyway. Or is there a specifying that such check is legal or even needed?

from xorgxrdp.

jsorg71 avatar jsorg71 commented on June 5, 2024

I think we can change it to
#if defined(XvExtension)
and get rid of the second part.
I checked with
meson configure -Dxv=false
and XvExtension is not defined in that case.

from xorgxrdp.

ljrk0 avatar ljrk0 commented on June 5, 2024

@jsorg71 Yep, this should work, at least for current Xorg, but glanicing into the sources of X makes it look as this should also work for older revisions, so LG2M.

from xorgxrdp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.