* [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary?
@ 2021-11-03 10:25 reedts
2021-11-03 19:40 ` mtboehlke
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reedts @ 2021-11-03 10:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]
New issue by reedts on void-packages repository
https://github.com/void-linux/void-packages/issues/33876
Description:
While investigating some strange problems on xsession startup using lightdm + i3, I found this line in `/etc/lightdm/Xsession` and was wondering whether the `-nocpp` option is used here for a specific reason: [see here](https://github.com/void-linux/void-packages/blob/a279abf769ef7cab6ebb49d8c99bf774a2ff97b8/srcpkgs/lightdm/files/xsession#L19)
As an example from the archlinux package sources for lightdm: they're omitting the `-nocpp` option (see [here](https://github.com/archlinux/svntogit-packages/blob/8d85fa6b8d07e4a82b24efc7635853110c2f93ed/trunk/Xsession#L19))
Furthermore, having a look at xrdb's source code, you can see [here](https://gitlab.freedesktop.org/xorg/app/xrdb/-/blob/master/xrdb.c#L917) that xrdb should correctly check for the existence of the default cpp preprocessor (`/usr/lib/cpp`) and automatically disables preprocessing of `.Xresources` if the binary cannot be found.
So, in my opinion it should be safe omitting `-noccp` in the global `/etc/lightdm/Xsession` script and would simultaneously allow the user to have their `.Xresources` preprocessed on session-startup if a preprocessor can be found.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
@ 2021-11-03 19:40 ` mtboehlke
2021-11-03 19:48 ` mtboehlke
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mtboehlke @ 2021-11-03 19:40 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 667 bytes --]
New comment by mtboehlke on void-packages repository
https://github.com/void-linux/void-packages/issues/33876#issuecomment-959879110
Comment:
I am not sure of the reason why `-nocpp` is included, perhaps to avoid the overhead of calling a pre-processor at all. The way we package xrdb, it falls back to mcpp when another cpp is not available, since mcpp is installed as a dependency. The overhead, though, should be pretty minimal.
I don't see why we can't just omit the `-nocpp`. That way if a user wants pre-processor macros, they can avoid having to rerun xrdb, and avoid the possibility of having their Xresources parsed incorrectly the first time around.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
2021-11-03 19:40 ` mtboehlke
@ 2021-11-03 19:48 ` mtboehlke
2021-11-03 19:49 ` mtboehlke
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mtboehlke @ 2021-11-03 19:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 709 bytes --]
New comment by mtboehlke on void-packages repository
https://github.com/void-linux/void-packages/issues/33876#issuecomment-959879110
Comment:
I am not sure of the reason why `-nocpp` is included, perhaps to avoid the overhead of calling a pre-processor at all. The way we package xrdb, it falls back to mcpp when another cpp is not available, since mcpp is installed as a dependency. The overhead, though, should be pretty minimal.
I don't see why we can't just omit the `-nocpp`. That way if a user wants pre-processor macros, they can avoid having to rerun xrdb, and avoid the possibility of having their Xresources parsed incorrectly the first time around.
Disclaimer: I have never used lightdm.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
2021-11-03 19:40 ` mtboehlke
2021-11-03 19:48 ` mtboehlke
@ 2021-11-03 19:49 ` mtboehlke
2021-11-03 21:25 ` mtboehlke
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mtboehlke @ 2021-11-03 19:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 709 bytes --]
New comment by mtboehlke on void-packages repository
https://github.com/void-linux/void-packages/issues/33876#issuecomment-959879110
Comment:
Disclaimer: I have never used lightdm.
I am not sure of the reason why `-nocpp` is included, perhaps to avoid the overhead of calling a pre-processor at all. The way we package xrdb, it falls back to mcpp when another cpp is not available, since mcpp is installed as a dependency. The overhead, though, should be pretty minimal.
I don't see why we can't just omit the `-nocpp`. That way if a user wants pre-processor macros, they can avoid having to rerun xrdb, and avoid the possibility of having their Xresources parsed incorrectly the first time around.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
` (2 preceding siblings ...)
2021-11-03 19:49 ` mtboehlke
@ 2021-11-03 21:25 ` mtboehlke
2022-06-10 2:14 ` github-actions
2022-06-24 2:15 ` [ISSUE] [CLOSED] " github-actions
5 siblings, 0 replies; 7+ messages in thread
From: mtboehlke @ 2021-11-03 21:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 704 bytes --]
New comment by mtboehlke on void-packages repository
https://github.com/void-linux/void-packages/issues/33876#issuecomment-959879110
Comment:
Disclaimer: I do not use lightdm.
I am not sure of the reason why `-nocpp` is included, perhaps to avoid the overhead of calling a pre-processor at all. The way we package xrdb, it falls back to mcpp when another cpp is not available, since mcpp is installed as a dependency. The overhead, though, should be pretty minimal.
I don't see why we can't just omit the `-nocpp`. That way if a user wants pre-processor macros, they can avoid having to rerun xrdb, and avoid the possibility of having their Xresources parsed incorrectly the first time around.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
` (3 preceding siblings ...)
2021-11-03 21:25 ` mtboehlke
@ 2022-06-10 2:14 ` github-actions
2022-06-24 2:15 ` [ISSUE] [CLOSED] " github-actions
5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2022-06-10 2:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 293 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/issues/33876#issuecomment-1151841573
Comment:
Issues become stale 90 days after last activity and are closed 14 days after that. If this issue is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [ISSUE] [CLOSED] lightdm Xsession: is xrdb "-nocpp" option necessary?
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
` (4 preceding siblings ...)
2022-06-10 2:14 ` github-actions
@ 2022-06-24 2:15 ` github-actions
5 siblings, 0 replies; 7+ messages in thread
From: github-actions @ 2022-06-24 2:15 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
Closed issue by reedts on void-packages repository
https://github.com/void-linux/void-packages/issues/33876
Description:
While investigating some strange problems on xsession startup using lightdm + i3, I found this line in `/etc/lightdm/Xsession` and was wondering whether the `-nocpp` option is used here for a specific reason: [see here](https://github.com/void-linux/void-packages/blob/a279abf769ef7cab6ebb49d8c99bf774a2ff97b8/srcpkgs/lightdm/files/xsession#L19)
As an example from the archlinux package sources for lightdm: they're omitting the `-nocpp` option (see [here](https://github.com/archlinux/svntogit-packages/blob/8d85fa6b8d07e4a82b24efc7635853110c2f93ed/trunk/Xsession#L19))
Furthermore, having a look at xrdb's source code, you can see [here](https://gitlab.freedesktop.org/xorg/app/xrdb/-/blob/master/xrdb.c#L917) that xrdb should correctly check for the existence of the default cpp preprocessor (`/usr/lib/cpp`) and automatically disables preprocessing of `.Xresources` if the binary cannot be found.
So, in my opinion it should be safe omitting `-noccp` in the global `/etc/lightdm/Xsession` script and would simultaneously allow the user to have their `.Xresources` preprocessed on session-startup if a preprocessor can be found.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2022-06-24 2:15 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 10:25 [ISSUE] lightdm Xsession: is xrdb "-nocpp" option necessary? reedts
2021-11-03 19:40 ` mtboehlke
2021-11-03 19:48 ` mtboehlke
2021-11-03 19:49 ` mtboehlke
2021-11-03 21:25 ` mtboehlke
2022-06-10 2:14 ` github-actions
2022-06-24 2:15 ` [ISSUE] [CLOSED] " github-actions
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).