Summary: | XORG_RELEASE_VERSION macro has undesired side-effects | ||
---|---|---|---|
Product: | xorg | Reporter: | Gaetan Nadon <memsize> |
Component: | Build/Modular | Assignee: | Gaetan Nadon <memsize> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | minor | ||
Priority: | low | CC: | alan.coopersmith, jeremyhu, peter.hutterer |
Version: | git | Keywords: | janitor |
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | 2011BRB_Reviewed | ||
i915 platform: | i915 features: |
Description
Gaetan Nadon
2009-10-30 08:41:25 UTC
On Fri, Oct 30, 2009 at 08:41:26 -0700, bugzilla-daemon@freedesktop.org wrote: > Solutions > --------- > > 1) Deprecate the option (not the macro) with an abort if used. This leaves the > public interface in place, but with a deprecation note. > > 2) Remove the option altogether which will also remove the public interface > > 3) Do #1 and then a year or so later later, do #2 > I'd go for #2, I think. The option hasn't been used in years. (In reply to comment #1) > On Fri, Oct 30, 2009 at 08:41:26 -0700, bugzilla-daemon@freedesktop.org wrote: > > > Solutions > > --------- > > > > 1) Deprecate the option (not the macro) with an abort if used. This leaves the > > public interface in place, but with a deprecation note. > > > > 2) Remove the option altogether which will also remove the public interface > > > > 3) Do #1 and then a year or so later later, do #2 > > > I'd go for #2, I think. The option hasn't been used in years. > If I understand correctly, this option was used by X.Org only when supplying tarballs to O/S builders. The distro builders would never use this option themselves, it was a naming scheme to help them select which tarball to build in the regular fashion. If this option always remained within the confine of X.Org walls, then it can be removed safely, and even be reintroduced later without breaking anyone's script. All 251 modules have this option and for many of them, it's the only one and it'll be deprecated. And it's only useful (was) to the X.Org tarball supplier. I think it's a strong case for removing it. Alan? Thanks (In reply to comment #2) > If this option always remained within the confine of X.Org walls, then it can > be removed safely, and even be reintroduced later without breaking anyone's > script. > > All 251 modules have this option and for many of them, it's the only one and > it'll be deprecated. And it's only useful (was) to the X.Org tarball supplier. > I think it's a strong case for removing it. > > Alan? I certainly don't know of anyone still using it or any reason to keep it. We'd discussed on xorg-devel a few months ago removing XORG_RELEASE_VERSION entirely for xorg-macros-1.3, but kept it in because of the useful version variable settings that got added to it after the original release. Since nobody is still using this, can we close it out, or do you want to keep this open for eventual removal? We should decide now how long we want to keep it around (and deprecated). The offending part has been removed, the variable definitions remain. # XORG_RELEASE_VERSION # -------------------- # Defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. AC_DEFUN([XORG_RELEASE_VERSION],[ AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], [`echo $PACKAGE_VERSION | cut -d . -f 1`], [Major version of this package]) PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` if test "x$PVM" = "x"; then PVM="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], [$PVM], [Minor version of this package]) PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` if test "x$PVP" = "x"; then PVP="0" fi AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], [$PVP], [Patch version of this package]) ]) |
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.