Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] xrdb - can't open include file
@ 2020-03-19  2:59 iio7
  2020-03-19  3:05 ` iio7
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  2:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2250 bytes --]

New issue by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207

Description:
### System

* xuname:  Linux Void 5.4.26_1
* package:  xorg-7.6_5

### Expected behavior

Be able to include files in .Xresources.

### Actual behavior

Can't open include files

### Steps to reproduce the behavior

Create a basic `.Xresources` and an include file.

```
$ cat .Xresources
XTerm*termName: xterm-256color
XTerm*utf8: 1
XTerm*renderFont: true
XTerm*faceName: "Liberation Mono":size=9:antialias=true:autohint=true
XTerm*borderWidth: 0
XTerm*autohint: true
XTerm*locale: true
XTerm*metaSendsEscape: true
XTerm*backarrowKey: false
XTerm*bellIsUrgent: false
XTerm*cursorBlink: false
XTerm*vt100.saveLines: 10000
XTerm*selectToClipboard: true
XTerm*ScrollKey: true
#include "colortheme.Xresource"
```

The include file:

```
$ cat colortheme.Xresource
#define base00 #282828
#define base01 #3c3836
#define base02 #504945
#define base03 #665c54
#define base04 #bdae93
#define base05 #d5c4a1
#define base06 #ebdbb2
#define base07 #fbf1c7
#define base08 #fb4934
#define base09 #fe8019
#define base0A #fabd2f
#define base0B #b8bb26
#define base0C #8ec07c
#define base0D #83a598
#define base0E #d3869b
#define base0F #d65d0e
*.foreground:   base05
#ifdef background_opacity
*.background:   [background_opacity]base00
#else
*.background:   base00
#endif
*.cursorColor:  base05
*.color0:       base00
*.color1:       base08
*.color2:       base0B
*.color3:       base0A
*.color4:       base0D
*.color5:       base0E
*.color6:       base0C
*.color7:       base05
*.color8:       base03
*.color9:       base08
*.color10:      base0B
*.color11:      base0A
*.color12:      base0D
*.color13:      base0E
*.color14:      base0C
*.color15:      base07
*.color16:      base09
*.color17:      base0F
*.color18:      base01
*.color19:      base02
*.color20:      base04
*.color21:      base06
```

Then load Xresources:

```
$ xrdb .Xresources
.Xresouces:15: error: Can't open include file "colortheme.Xresource"
```

I have the identical setup running on multiple Linux distributions and on FreeBSD where it works so I suspect a bug somewhere.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
@ 2020-03-19  3:05 ` iio7
  2020-03-19  3:05 ` [ISSUE] [CLOSED] " iio7
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  3:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 305 bytes --]

New comment by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600963129

Comment:
I just figured out that it requires the full path `/home/foo/` to work here. On Arch, Ubuntu and FreeBSD I can do it without as includes starts from the home folder.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ISSUE] [CLOSED] xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
  2020-03-19  3:05 ` iio7
@ 2020-03-19  3:05 ` iio7
  2020-03-19  3:08 ` iio7
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  3:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]

Closed issue by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207

Description:
### System

* xuname:  Linux Void 5.4.26_1
* package:  xorg-7.6_5

### Expected behavior

Be able to include files in .Xresources.

### Actual behavior

Can't open include files

### Steps to reproduce the behavior

Create a basic `.Xresources` and an include file.

```
$ cat .Xresources
XTerm*termName: xterm-256color
XTerm*utf8: 1
XTerm*renderFont: true
XTerm*faceName: "Liberation Mono":size=9:antialias=true:autohint=true
XTerm*borderWidth: 0
XTerm*autohint: true
XTerm*locale: true
XTerm*metaSendsEscape: true
XTerm*backarrowKey: false
XTerm*bellIsUrgent: false
XTerm*cursorBlink: false
XTerm*vt100.saveLines: 10000
XTerm*selectToClipboard: true
XTerm*ScrollKey: true
#include "colortheme.Xresource"
```

The include file:

```
$ cat colortheme.Xresource
#define base00 #282828
#define base01 #3c3836
#define base02 #504945
#define base03 #665c54
#define base04 #bdae93
#define base05 #d5c4a1
#define base06 #ebdbb2
#define base07 #fbf1c7
#define base08 #fb4934
#define base09 #fe8019
#define base0A #fabd2f
#define base0B #b8bb26
#define base0C #8ec07c
#define base0D #83a598
#define base0E #d3869b
#define base0F #d65d0e
*.foreground:   base05
#ifdef background_opacity
*.background:   [background_opacity]base00
#else
*.background:   base00
#endif
*.cursorColor:  base05
*.color0:       base00
*.color1:       base08
*.color2:       base0B
*.color3:       base0A
*.color4:       base0D
*.color5:       base0E
*.color6:       base0C
*.color7:       base05
*.color8:       base03
*.color9:       base08
*.color10:      base0B
*.color11:      base0A
*.color12:      base0D
*.color13:      base0E
*.color14:      base0C
*.color15:      base07
*.color16:      base09
*.color17:      base0F
*.color18:      base01
*.color19:      base02
*.color20:      base04
*.color21:      base06
```

Then load Xresources:

```
$ xrdb .Xresources
.Xresouces:15: error: Can't open include file "colortheme.Xresource"
```

I have the identical setup running on multiple Linux distributions and on FreeBSD where it works so I suspect a bug somewhere.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
  2020-03-19  3:05 ` iio7
  2020-03-19  3:05 ` [ISSUE] [CLOSED] " iio7
@ 2020-03-19  3:08 ` iio7
  2020-03-19  3:15 ` iio7
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  3:08 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 230 bytes --]

New comment by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600963877

Comment:
It is also demonstrated here without a full path: https://wiki.gentoo.org/wiki/X_resources

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (2 preceding siblings ...)
  2020-03-19  3:08 ` iio7
@ 2020-03-19  3:15 ` iio7
  2020-03-19  3:18 ` iio7
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  3:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 215 bytes --]

New comment by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600965469

Comment:
Actually I believe this is a bug, it's supposed to read from the home path.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (3 preceding siblings ...)
  2020-03-19  3:15 ` iio7
@ 2020-03-19  3:18 ` iio7
  2020-03-19  3:36 ` pullmoll
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19  3:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 312 bytes --]

New comment by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600965469

Comment:
Actually I believe this is a bug, it's supposed to read from the home path.
Anyway, it can also be solved by using the `-I` option:

```
$ xrdb -I$HOME .Xresources
```

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (4 preceding siblings ...)
  2020-03-19  3:18 ` iio7
@ 2020-03-19  3:36 ` pullmoll
  2020-03-19  3:42 ` pullmoll
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pullmoll @ 2020-03-19  3:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 645 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600970523

Comment:
/methinks this is a bug or flaw in how the package `mcpp` parses the `.Xresources` file. In case other distributions use e.g. the regular GNU cpp as preprocessor this may explain why it works without prepending the full path, because (most probably) `/usr/bin/cpp` looks for include files in the current directory. **This is just a wild guess, though.**

We could perhaps circumvent this problem if we passed `-I$HOME` to the call to `/usr/bin/mcpp` somehow, I just don't know how to achieve that.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (5 preceding siblings ...)
  2020-03-19  3:36 ` pullmoll
@ 2020-03-19  3:42 ` pullmoll
  2020-03-19 20:57 ` iio7
  2020-03-19 20:57 ` [ISSUE] [CLOSED] " iio7
  8 siblings, 0 replies; 10+ messages in thread
From: pullmoll @ 2020-03-19  3:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 337 bytes --]

New comment by pullmoll on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-600971950

Comment:
Just read your most recent post and can confirm it by looking at the source. Various command line arguments for `xrdb` are forwarded to the C preprocessor and specifically `-I` is passed along.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (6 preceding siblings ...)
  2020-03-19  3:42 ` pullmoll
@ 2020-03-19 20:57 ` iio7
  2020-03-19 20:57 ` [ISSUE] [CLOSED] " iio7
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19 20:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

New comment by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207#issuecomment-601413040

Comment:
Yes, `-I` solves the problem. I think I'm just gonna close this one as it works well.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ISSUE] [CLOSED] xrdb - can't open include file
  2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
                   ` (7 preceding siblings ...)
  2020-03-19 20:57 ` iio7
@ 2020-03-19 20:57 ` iio7
  8 siblings, 0 replies; 10+ messages in thread
From: iio7 @ 2020-03-19 20:57 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]

Closed issue by iio7 on void-packages repository

https://github.com/void-linux/void-packages/issues/20207

Description:
### System

* xuname:  Linux Void 5.4.26_1
* package:  xorg-7.6_5

### Expected behavior

Be able to include files in .Xresources.

### Actual behavior

Can't open include files

### Steps to reproduce the behavior

Create a basic `.Xresources` and an include file.

```
$ cat .Xresources
XTerm*termName: xterm-256color
XTerm*utf8: 1
XTerm*renderFont: true
XTerm*faceName: "Liberation Mono":size=9:antialias=true:autohint=true
XTerm*borderWidth: 0
XTerm*autohint: true
XTerm*locale: true
XTerm*metaSendsEscape: true
XTerm*backarrowKey: false
XTerm*bellIsUrgent: false
XTerm*cursorBlink: false
XTerm*vt100.saveLines: 10000
XTerm*selectToClipboard: true
XTerm*ScrollKey: true
#include "colortheme.Xresource"
```

The include file:

```
$ cat colortheme.Xresource
#define base00 #282828
#define base01 #3c3836
#define base02 #504945
#define base03 #665c54
#define base04 #bdae93
#define base05 #d5c4a1
#define base06 #ebdbb2
#define base07 #fbf1c7
#define base08 #fb4934
#define base09 #fe8019
#define base0A #fabd2f
#define base0B #b8bb26
#define base0C #8ec07c
#define base0D #83a598
#define base0E #d3869b
#define base0F #d65d0e
*.foreground:   base05
#ifdef background_opacity
*.background:   [background_opacity]base00
#else
*.background:   base00
#endif
*.cursorColor:  base05
*.color0:       base00
*.color1:       base08
*.color2:       base0B
*.color3:       base0A
*.color4:       base0D
*.color5:       base0E
*.color6:       base0C
*.color7:       base05
*.color8:       base03
*.color9:       base08
*.color10:      base0B
*.color11:      base0A
*.color12:      base0D
*.color13:      base0E
*.color14:      base0C
*.color15:      base07
*.color16:      base09
*.color17:      base0F
*.color18:      base01
*.color19:      base02
*.color20:      base04
*.color21:      base06
```

Then load Xresources:

```
$ xrdb .Xresources
.Xresouces:15: error: Can't open include file "colortheme.Xresource"
```

I have the identical setup running on multiple Linux distributions and on FreeBSD where it works so I suspect a bug somewhere.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-03-19 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-19  2:59 [ISSUE] xrdb - can't open include file iio7
2020-03-19  3:05 ` iio7
2020-03-19  3:05 ` [ISSUE] [CLOSED] " iio7
2020-03-19  3:08 ` iio7
2020-03-19  3:15 ` iio7
2020-03-19  3:18 ` iio7
2020-03-19  3:36 ` pullmoll
2020-03-19  3:42 ` pullmoll
2020-03-19 20:57 ` iio7
2020-03-19 20:57 ` [ISSUE] [CLOSED] " iio7

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).