Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
@ 2019-07-04  6:07 voidlinux-github
  2019-07-05  0:10 ` voidlinux-github
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: voidlinux-github @ 2019-07-04  6:07 UTC (permalink / raw)
  To: ml

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

New issue by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12807
Description: ### System

* xuname:  `Void 4.19.56_1 x86_64 GenuineIntel notuptodate rFF`
  *output of ``xuname`` (part of xtools)*
* package:  `wxWidgets-gtk3-devel-3.0.4_1`
  *affected package(s) including the version*

### Expected behavior

building and cross-building using `wx-config-gtk3` should be fine, whatever the target architecture is.

### Actual behavior

building and cross-building using `wx-config-gtk3`:
* fine for aarch64* or x86_64*
* fails for i686* or armv7l*

### Steps to reproduce the behavior

Build passwordsafe (as PR #11854) or filezilla for instance.

### Additional infos

`wx-config-gtk3` is a symlink , that is not consistent in packages: sometime absolute, sometime relative.  
So `generic_wrapper` don't wrap it for i686, that make build fails then.

Example on some package(s):

```
$ for i in repocache/wxWidgets-gtk3-devel-3.0.4_1.*.xbps; 
     do echo ; echo "# $i" ; tar tvJf $i | grep wx-config
done

# repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64-musl.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.i686.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib32/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.x86_64.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib/wx/config/gtk3-unicode-3.0
```




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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
@ 2019-07-05  0:10 ` voidlinux-github
  2019-07-05  0:13 ` voidlinux-github
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: voidlinux-github @ 2019-07-05  0:10 UTC (permalink / raw)
  To: ml

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

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-508593416
Comment:
The problem is that we only overwrite the symlink when cross compiling: 
https://github.com/void-linux/void-packages/blob/462ee5b0468ef5249d1c7ac4466385ec0117cc16/srcpkgs/wxWidgets-gtk3/template#L54-L68

In regards of your issue, you don't need to cross compile i686 on a x86_64 host, just create a seperate masterdir and compile it in there.`./xbps-src -m masterdir-i686 binary-bootsrap i686` and then compile with `./xbps-src -m masterdir-i686 pkg PACKAGE`


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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
  2019-07-05  0:10 ` voidlinux-github
@ 2019-07-05  0:13 ` voidlinux-github
  2019-07-06  6:34 ` voidlinux-github
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: voidlinux-github @ 2019-07-05  0:13 UTC (permalink / raw)
  To: ml

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

New comment by Johnnynator on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-508593416
Comment:
The problem is that we only overwrite the symlink when cross compiling: 
https://github.com/void-linux/void-packages/blob/462ee5b0468ef5249d1c7ac4466385ec0117cc16/srcpkgs/wxWidgets-gtk3/template#L54-L68

In regards of your issue, you don't need to cross compile i686 on a x86_64 host, just create a seperate masterdir and compile it in there.`./xbps-src -m masterdir-i686 binary-bootsrap i686` and then compile with `./xbps-src -m masterdir-i686 pkg PACKAGE`

Edit: Trying to build packages natively for a by the builders cross compiled arch or vice versa can let you run into breakage sadly quite easily. This specific issue might be one that is at least easy to fix


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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
  2019-07-05  0:10 ` voidlinux-github
  2019-07-05  0:13 ` voidlinux-github
@ 2019-07-06  6:34 ` voidlinux-github
  2019-07-06 10:54 ` voidlinux-github
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: voidlinux-github @ 2019-07-06  6:34 UTC (permalink / raw)
  To: ml

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

New comment by newbluemoon on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-508901770
Comment:
I think the underlying problem is that i686 puts stuff under `lib32` which no other target does. So I guess that’s why the links aren’t relative. And the wrapper isn’t created. But even when fixing this manually and running `wx-config-gtk3` from within the `chroot`ed masterdir it lists:
```
./wx-config-gtk3 --prefix=/usr/i686-pc-linux-gnu --cflags
-I/usr/lib32/wx/include/gtk3-unicode-3.0 -I/usr/i686-pc-linux-gnu/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
```

Why isn’t `--prefix` used for the first include? That’s where filezilla’s `configure` script fails again.

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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
                   ` (2 preceding siblings ...)
  2019-07-06  6:34 ` voidlinux-github
@ 2019-07-06 10:54 ` voidlinux-github
  2021-01-22 20:41 ` ericonr
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: voidlinux-github @ 2019-07-06 10:54 UTC (permalink / raw)
  To: ml

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

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-508916657
Comment:
Thanks for your inputs. I will give a try to provide a consistent wxWidgets-gtk3 package across all arch to make easier to use it whatever is the host & target combination.

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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
                   ` (3 preceding siblings ...)
  2019-07-06 10:54 ` voidlinux-github
@ 2021-01-22 20:41 ` ericonr
  2021-01-25  0:06 ` [ISSUE] [CLOSED] " yopito
  2021-01-25  0:06 ` yopito
  6 siblings, 0 replies; 8+ messages in thread
From: ericonr @ 2021-01-22 20:41 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-765672764

Comment:
I just did filezilla for i686 from an `x86_64-musl` host. Would that be enough to say this is no longer an issue?

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

* Re: [ISSUE] [CLOSED] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
                   ` (4 preceding siblings ...)
  2021-01-22 20:41 ` ericonr
@ 2021-01-25  0:06 ` yopito
  2021-01-25  0:06 ` yopito
  6 siblings, 0 replies; 8+ messages in thread
From: yopito @ 2021-01-25  0:06 UTC (permalink / raw)
  To: ml

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

Closed issue by yopito on void-packages repository

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

Description:
### System

* xuname:  `Void 4.19.56_1 x86_64 GenuineIntel notuptodate rFF`
  *output of ``xuname`` (part of xtools)*
* package:  `wxWidgets-gtk3-devel-3.0.4_1`
  *affected package(s) including the version*

### Expected behavior

building and cross-building using `wx-config-gtk3` should be fine, whatever the target architecture is.

### Actual behavior

Cross-building using `wx-config-gtk3` for i686 target arch fails.

### Steps to reproduce the behavior

Crossbuild filezilla for i686 for instance:
```
[...]
checking pkg-config is at least version 0.9.0... yes
checking for libfilezilla >= 0.17.1... yes
checking for wx-config-gtk3... /usr/bin/wx-config-gtk3
checking for wxWidgets version >= 3.0.4 (--unicode=yes --universal=no)... no
configure: error: 
    The requested wxWidgets build couldn't be found.
[...]
```

### Additional infos

`wx-config-gtk3` is a symlink , that is not consistent in packages: sometime absolute, sometime relative.  
So `generic_wrapper` don't wrap it for i686, that make build fails then.

Example on some package(s):

```
$ for i in repocache/wxWidgets-gtk3-devel-3.0.4_1.*.xbps; 
     do echo ; echo "# $i" ; tar tvJf $i | grep wx-config
done

# repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64-musl.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.aarch64.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> ../lib/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.i686.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib32/wx/config/gtk3-unicode-3.0

# repocache/wxWidgets-gtk3-devel-3.0.4_1.x86_64.xbps
lrwxrwxrwx 0/0               0 2018-09-10 14:43 ./usr/bin/wx-config-gtk3 -> /usr/lib/wx/config/gtk3-unicode-3.0
```
Edit: not strictly related to fails build of PR #11854, add output for filezilla/i686

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

* Re: wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch
  2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
                   ` (5 preceding siblings ...)
  2021-01-25  0:06 ` [ISSUE] [CLOSED] " yopito
@ 2021-01-25  0:06 ` yopito
  6 siblings, 0 replies; 8+ messages in thread
From: yopito @ 2021-01-25  0:06 UTC (permalink / raw)
  To: ml

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

New comment by yopito on void-packages repository

https://github.com/void-linux/void-packages/issues/12807#issuecomment-766465199

Comment:
yes, a kind of a non-issue ...

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

end of thread, other threads:[~2021-01-25  0:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04  6:07 [ISSUE] wxWidgets-gtk3: wx-config-gtk3 is not a consistent symlink across arch voidlinux-github
2019-07-05  0:10 ` voidlinux-github
2019-07-05  0:13 ` voidlinux-github
2019-07-06  6:34 ` voidlinux-github
2019-07-06 10:54 ` voidlinux-github
2021-01-22 20:41 ` ericonr
2021-01-25  0:06 ` [ISSUE] [CLOSED] " yopito
2021-01-25  0:06 ` yopito

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