Summary: | portability of xorg/util/macros/tree/xorg-macros.m4.in | ||
---|---|---|---|
Product: | xorg | Reporter: | Jeremy C. Reed <reed> |
Component: | Build/Modular | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | major | ||
Priority: | medium | CC: | jeremyhu, jon.turney, memsize |
Version: | git | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | 2012BRB_Reviewed | ||
i915 platform: | i915 features: |
Description
Jeremy C. Reed
2012-06-05 10:12:38 UTC
Just to clarify: Shell variables aren't allowed to have spaces in their names. I'd rather XORG_TESTSET_CFLAG use an appropriate environment variable as the solution. The suggested change would result in -Werror=implicit appearing twice. Adding Jon, since this is fallout from the result caching changes. OBATA Akio writes that the problem may have been solved in the meantime: http://mail-index.netbsd.org/pkgsrc-users/2012/06/09/msg016498.html If I'm understanding correctly, the current version of xorg-macros doesn't trip over the shell bug which caused this to fail on NetBSD. So, I don't think any further action needs to be taken and I'm marking this bug as resolved. Please re-open this bug if my understanding is defective. (In reply to comment #0) > Regardless if this is a bug or not in the sh (note this sh is used on > non-NetBSD platforms too), is it okay to split up the check to two macros? I can't really speak to if this is desirable. At the moment, we do one check to see if the compiler supports both flags. > (In reply to comment #0)
> > Regardless if this is a bug or not in the sh (note this sh is used on
> > non-NetBSD platforms too), is it okay to split up the check to two macros?
>
> I can't really speak to if this is desirable. At the moment, we do one check
> to see if the compiler supports both flags.
To answer the question, one must follow the evolution of the macros as changes need to be backward compatible. Older xorg packages must behave the same way as they did when built with the latest xorg-utils package. Another theoretical reason is for functional decomposition to improve reusability.
|
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.