Bug 1361 - RFE: Allow enabling/disabling of more extensions
Summary: RFE: Allow enabling/disabling of more extensions
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: git
Hardware: All All
: high enhancement
Assignee: Roland Mainz
QA Contact:
URL:
Whiteboard:
Keywords:
: 1000 1005 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-13 17:44 UTC by Roland Mainz
Modified: 2019-06-11 08:54 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
[FIXED_X11R68x] Patch for 2004-09-14-trunk (24.24 KB, patch)
2004-09-13 17:49 UTC, Roland Mainz
roland.mainz: 6.8-branch+
Details | Splinter Review
Proposed fix for runtime bustage (fix for 2004-09-14-trunk) (2.61 KB, patch)
2004-09-14 06:14 UTC, Roland Mainz
no flags Details | Splinter Review
[FIXED_X11R68x] Fix for runtime bustage (patch for 2004-09-14-trunk (4.03 KB, patch)
2004-09-14 16:19 UTC, Roland Mainz
roland.mainz: 6.8-branch+
Details | Splinter Review
[FIXED_X11R68x] Prototype for 2nd round: make extensins optional for the Xorg server (patch for 2004-09-18-trunk) (7.72 KB, patch)
2004-09-18 10:08 UTC, Roland Mainz
roland.mainz: 6.8-branch+
Details | Splinter Review
[FIXED_X11R68x] Patch to disable DRI from initializing when -XFree86-DRI is passed (765 bytes, patch)
2004-11-11 08:05 UTC, Kristian Høgsberg
roland.mainz: 6.8-branch+
Details | Splinter Review

Description Roland Mainz 2004-09-13 17:44:10 UTC
RFE: Allow enabling/disabling of more extensions via +extension/-extension.
Right now only a very small subset of the available Xserver extensions can be
turned-off.
Comment 1 Roland Mainz 2004-09-13 17:49:23 UTC
Created attachment 894 [details] [review]
[FIXED_X11R68x] Patch for 2004-09-14-trunk
Comment 2 Roland Mainz 2004-09-13 17:52:23 UTC
Patch checked-in...

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.366; previous revision: 1.365
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v  <--  dixsym.c
new revision: 1.6; previous revision: 1.5
/cvs/xorg/xc/programs/Xserver/include/globals.h,v  <--  globals.h
new revision: 1.5; previous revision: 1.4
/cvs/xorg/xc/programs/Xserver/mi/miinitext.c,v  <--  miinitext.c
new revision: 1.13; previous revision: 1.12
/cvs/xorg/xc/programs/Xserver/os/utils.c,v  <--  utils.c
new revision: 1.7; previous revision: 1.6
Mailing the commit message to xorg-commit@pdx.freedesktop.org...

.. marking bug as FIXED.
Comment 3 Dave Airlie 2004-09-14 04:45:18 UTC
this patch breaks stuff, noXkbExtension is already defined in dixsym.c and
noPanoramiXExtension is defined in extsym.c,

current Xorg tree doesn't run on my system at least, until I comment out those
two lines of the patch....
Comment 4 Roland Mainz 2004-09-14 05:42:40 UTC
Dave Airlie wrote:
> this patch breaks stuff, noXkbExtension is already defined in dixsym.c and
> noPanoramiXExtension is defined in extsym.c,
> current Xorg tree doesn't run on my system at least, until I comment out those
> two lines of the patch....

Mhhh, at least "Xvfb"/"Xnest"/"Xprt" work "fine" here... may be the issue is
specific for the "Xorg" server... ;-( I'll take a look at the problem...

Some questions:
- Which platform do you use ?
- Do you use any special build options in host.def ?
- Which exact lines do you comment out ?
Comment 5 Dave Airlie 2004-09-14 05:47:49 UTC
Just using Fedora Code 2 with top of tree checkout no special def files...
Comment 6 Dave Airlie 2004-09-14 05:51:44 UTC
missed a question, commented out the SYMVAR(noXkbExtension) and
SYMVAR(noPanoramiXExtension), otherwise the X server crashes on startup with a
duplicate symbol issue...
Comment 7 Roland Mainz 2004-09-14 06:14:56 UTC
Created attachment 895 [details] [review]
Proposed fix for runtime bustage (fix for 2004-09-14-trunk)

Dave Airlie:
Can you please check whether the patch fixes your problem, please ?
Comment 8 Roland Mainz 2004-09-14 16:19:31 UTC
Created attachment 899 [details] [review]
[FIXED_X11R68x] Fix for runtime bustage (patch for 2004-09-14-trunk

Same patch as attachment #895 [details] [review], just added the Changelog entry.
Comment 9 Roland Mainz 2004-09-14 16:24:02 UTC
Umpf, no response from reporter since more than 10hours... I've checked-in the
fix for now in the hope that it cures the problem:
/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.367; previous revision: 1.366
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v  <--  dixsym.c
new revision: 1.7; previous revision: 1.6
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/extsym.c,v  <--  extsym.c
new revision: 1.5; previous revision: 1.4
Mailing the commit message to xorg-commit@pdx.freedesktop.org...

Marking bug as FIXED again.
Please reopen if there are any issues left...
Comment 10 Dave Airlie 2004-09-14 16:26:28 UTC
Patch looks okay to me from here... I'll test it out when I get back to the
system I was doing the work on,... (p.s. I had to go to bed in my timezone :-)
Comment 11 Egbert Eich 2004-09-16 01:07:49 UTC
Roland, you are aware that DAMAGE and COMPOSITE depend in XFIXES and there seems
to be another dependency on RENDER (which I don't recall right now)?
Comment 12 Roland Mainz 2004-09-16 01:19:54 UTC
Egbert Eich wrote:
> Roland, you are aware that DAMAGE and COMPOSITE depend in XFIXES and there 
> seems to be another dependency on RENDER (which I don't recall right now)?

Yes, I am aware about that. But I explicitly left out any dependicy checks since
it is unlikely that these are maintained (we're risking stale dependicies at
some point).
People who use these options should take care about the details and the init
code for the extensions itself should call |FatalError()| if mandatory
dependicies are not met.
Comment 13 Roland Mainz 2004-09-16 15:38:41 UTC
I am going to make a patch to solve the dependicy issue tomorrow...
Comment 14 Roland Mainz 2004-09-18 10:08:36 UTC
Created attachment 938 [details] [review]
[FIXED_X11R68x] Prototype for 2nd round: make extensins optional for the Xorg server (patch for 2004-09-18-trunk)

Egbert:
I am not sure what stuff is allowed in |staticExtensions| and what not. Can I
simply stick all extensions in that array and assume the loader code will
correctly figure out which extensions are really "static" (=built-in) or can I
only list extensions there which are really built-in ?
Comment 15 Roland Mainz 2004-09-18 10:13:14 UTC
sndirsch: Can you please check whether the patche fixes the problem for you ?

If the problem is gone the only remaining thing is Egbert's answer to the
question in comment #11. Depending on that I make a final patch (which cleans
another mess in that file up, too) ...
Comment 16 Stefan Dirsch 2004-09-18 13:12:47 UTC
> sndirsch: Can you please check whether the patche fixes the problem for  
> you ? 
 
Yes. DAMAGE no longer occurs in xdpyinfo, when disabled by  
 
  -extension DAMAGE 
 
option or specifying 
 
  "Option  "DAMAGE"        "Off" 
 
in "Extensions" section xorg.conf respectively. 
Comment 17 Adam Jackson 2004-09-21 22:42:43 UTC
*** Bug 1005 has been marked as a duplicate of this bug. ***
Comment 18 Roland Mainz 2004-10-08 19:45:05 UTC
*** Bug 1000 has been marked as a duplicate of this bug. ***
Comment 19 Roland Mainz 2004-11-09 21:44:05 UTC
Comment on attachment 894 [details] [review]
[FIXED_X11R68x] Patch for 2004-09-14-trunk

Requesting approval for X11R6.8.x (first part of bug 1361). This is clearly a
feature patch but it is something nice-to-have and SuSE and others ship this
patch with their version of X11R6.8.1 so the risk is low.
Comment 20 Roland Mainz 2004-11-09 21:45:27 UTC
Comment on attachment 899 [details] [review]
[FIXED_X11R68x] Fix for runtime bustage (patch for 2004-09-14-trunk

Requesting approval for X11R6.8.x (second part of bug 1361).
Comment 21 Roland Mainz 2004-11-09 21:47:24 UTC
Comment on attachment 938 [details] [review]
[FIXED_X11R68x] Prototype for 2nd round: make extensins optional for the Xorg server (patch for 2004-09-18-trunk)

Requesting approval for X11R6.8.x (third part of bug 1361). This is clearly a
feature patch but it is something nice-to-have and SuSE and others ship this
patch with their version of X11R6.8.1 so the risk is low.
Comment 22 Kristian Høgsberg 2004-11-11 08:05:33 UTC
Created attachment 1287 [details] [review]
[FIXED_X11R68x] Patch to disable DRI from initializing when -XFree86-DRI is passed

When DRI is disabled, the server shouldn't initialize DRI, since it can't be
used anyway.  The attached patch uses the noXFree86DRIExtension var from
previous patches to disable DRI if it has been disabled.
Comment 23 Roland Mainz 2004-11-19 07:33:21 UTC
Comment on attachment 894 [details] [review]
[FIXED_X11R68x] Patch for 2004-09-14-trunk

Approved for the X11R6.8.x branch in the 2004-11-17 release-wranglers phone
call.
Please don't commit it yourself, I'll handle that once the CVS service is
available again.
Comment 24 Roland Mainz 2004-11-19 07:33:39 UTC
Comment on attachment 899 [details] [review]
[FIXED_X11R68x] Fix for runtime bustage (patch for 2004-09-14-trunk

Approved for the X11R6.8.x branch in the 2004-11-17 release-wranglers phone
call.
Please don't commit it yourself, I'll handle that once the CVS service is
available again.
Comment 25 Roland Mainz 2004-11-19 07:33:54 UTC
Comment on attachment 938 [details] [review]
[FIXED_X11R68x] Prototype for 2nd round: make extensins optional for the Xorg server (patch for 2004-09-18-trunk)

Approved for the X11R6.8.x branch in the 2004-11-17 release-wranglers phone
call.
Please don't commit it yourself, I'll handle that once the CVS service is
available again.
Comment 26 Roland Mainz 2004-11-19 07:34:33 UTC
Comment on attachment 1287 [details] [review]
[FIXED_X11R68x] Patch to disable DRI from initializing when -XFree86-DRI is passed

Approved for the X11R6.8.x branch in the 2004-11-17 release-wranglers phone
call.
Please don't commit it yourself, I'll handle that once the CVS service is
available again.
Comment 27 Roland Mainz 2004-12-07 21:29:28 UTC
Comment on attachment 894 [details] [review]
[FIXED_X11R68x] Patch for 2004-09-14-trunk

Patch checked-in into X11R6.8.x stable branch:
/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.365.2.5; previous revision: 1.365.2.4
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v  <--  dixsym.c
new revision: 1.5.2.1; previous revision: 1.5
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/include/globals.h,v  <--	globals.h
new revision: 1.4.2.1; previous revision: 1.4
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/mi/miinitext.c,v	<--  miinitext.c
new revision: 1.12.2.1; previous revision: 1.12
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/os/utils.c,v  <--  utils.c
new revision: 1.6.2.1; previous revision: 1.6
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 28 Roland Mainz 2004-12-07 21:34:05 UTC
Comment on attachment 899 [details] [review]
[FIXED_X11R68x] Fix for runtime bustage (patch for 2004-09-14-trunk

Patch checked-in into X11R6.8.x stable branch:

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.365.2.6; previous revision: 1.365.2.5
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/dixsym.c,v  <--  dixsym.c
new revision: 1.5.2.2; previous revision: 1.5.2.1
/cvs/xorg/xc/programs/Xserver/hw/xfree86/loader/extsym.c,v  <--  extsym.c
new revision: 1.4.2.1; previous revision: 1.4
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 29 Roland Mainz 2004-12-07 21:39:10 UTC
Comment on attachment 938 [details] [review]
[FIXED_X11R68x] Prototype for 2nd round: make extensins optional for the Xorg server (patch for 2004-09-18-trunk)

Patch checked-in into X11R6.8.x stable branch:

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.365.2.7; previous revision: 1.365.2.6
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/mi/miinitext.c,v	<--  miinitext.c
new revision: 1.12.2.2; previous revision: 1.12.2.1
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 30 Roland Mainz 2004-12-07 21:45:44 UTC
Comment on attachment 1287 [details] [review]
[FIXED_X11R68x] Patch to disable DRI from initializing when -XFree86-DRI is passed

Patch checked-in into X11R6.8.x stable branch:

/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.365.2.8; previous revision: 1.365.2.7
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
/cvs/xorg/xc/programs/Xserver/GL/dri/dri.c,v  <--  dri.c
new revision: 1.6.2.1; previous revision: 1.6
cvs commit: Using deprecated info format strings.  Convert your scripts to use
the new argument format and remove '1's from your info file format strings.
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 31 Roland Mainz 2004-12-07 21:50:30 UTC
Grrr... for some xx@@@!!!-reason attachment #938 [details] [review] wasn't commited to Xorg trunk
yet (it was shipped with SuSE 9.2 so there was hopefully enouth testing... ;-/)
... ;-(

... therefore:
Attachment #938 [details] commited to Xorg trunk:
/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.583; previous revision: 1.582
/cvs/xorg/xc/programs/Xserver/mi/miinitext.c,v  <--  miinitext.c
new revision: 1.15; previous revision: 1.14
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 32 Roland Mainz 2004-12-07 21:53:39 UTC
Same problem (Patch not in Xorg trunk) applied to attachment #1287 [details] [review], too - fun...
;-((

Attachment #1287 [details] commited to Xorg trunk:
/cvs/xorg/xc/ChangeLog,v  <--  ChangeLog
new revision: 1.584; previous revision: 1.583
/cvs/xorg/xc/programs/Xserver/GL/dri/dri.c,v  <--  dri.c
new revision: 1.7; previous revision: 1.6
Mailing the commit message to xorg-commit@lists.freedesktop.org...
Comment 33 Adam Jackson 2005-04-03 14:36:28 UTC
mass update: the fix for this bug was applied to both HEAD and the stable 6.8 branch, but the bug was 
never closed.  closing now.
Comment 34 Michel Dänzer 2019-06-11 08:54:12 UTC
*** Bug 1000 has been marked as a duplicate of this bug. ***


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.