Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] libcurl-devel should depend on libunistring-devel for static linking
@ 2024-06-25  2:04 MoSal
  2024-06-25  2:25 ` oreo639
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: MoSal @ 2024-06-25  2:04 UTC (permalink / raw)
  To: ml

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

New issue by MoSal on void-packages repository

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

Description:
### Is this a new report?

Yes

### System Info

Void 6.6.35-2-lts x86_64-musl GenuineIntel uptodate rFF

### Package(s) Affected

libcurl-devel-8.8.0_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

_No response_

### Expected behaviour

Linking against libcurl statically should work.

### Actual behaviour

Linking against libcurl statically fails due to:
* Missing libunistring-devel package dependency
* Missing ` -lunistring` from the `Libs.private` line in `/usr/lib/pkgconfig/libcurl.pc`
```
Libs.private: -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lzstd -lzstd -lz
```


### Steps to reproduce

## Example file `t.c`:

```
#include <curl/curl.h>

int main() {
  curl_version_info_data *curl_info = curl_version_info(CURLVERSION_NOW);
  return 0;
}
```

## Build and link statically (after installing `libunistring-devel`):

```
% gcc -o t t.c --static `pkg-config --libs --static libcurl`
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libpsl.a(libpsl_la-psl.o): in function `psl_str_to_utf8lower':
(.text+0x13b4): undefined reference to `u8_strlen'
/usr/sbin/ld: (.text+0x13c9): undefined reference to `uninorm_nfkc'
/usr/sbin/ld: (.text+0x13d6): undefined reference to `u8_tolower'
/usr/sbin/ld: (.text+0x142f): undefined reference to `uninorm_nfkc'
/usr/sbin/ld: (.text+0x1434): undefined reference to `u8_tolower'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(lookup.o): in function `idn2_lookup_u8':
(.text+0x4e3): undefined reference to `u8_strlen'
/usr/sbin/ld: (.text+0x4f4): undefined reference to `u8_to_u32'
/usr/sbin/ld: (.text+0x613): undefined reference to `u32_to_u8'
/usr/sbin/ld: (.text+0x676): undefined reference to `u32_cmp'
/usr/sbin/ld: (.text+0x9c7): undefined reference to `u32_to_u8'
/usr/sbin/ld: (.text+0xa9a): undefined reference to `u32_to_u8'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(lookup.o): in function `idn2_to_ascii_4i2.part.0':
(.text+0xc25): undefined reference to `u32_cpy'
/usr/sbin/ld: (.text+0xc40): undefined reference to `u32_to_u8'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(lookup.o): in function `idn2_lookup_ul':
(.text+0xcef): undefined reference to `u8_strconv_from_encoding'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(lookup.o): in function `idn2_to_ascii_4z':
(.text+0xe2b): undefined reference to `u32_strlen'
/usr/sbin/ld: (.text+0xe3c): undefined reference to `u32_to_u8'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_8z4z':
(.text+0xae): undefined reference to `u8_to_u32'
/usr/sbin/ld: (.text+0xf1): undefined reference to `u32_cpy'
/usr/sbin/ld: (.text+0x127): undefined reference to `u32_cpy_alloc'
/usr/sbin/ld: (.text+0x1c1): undefined reference to `u32_cpy'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_4z4z.part.0':
(.text+0x271): undefined reference to `u32_strlen'
/usr/sbin/ld: (.text+0x284): undefined reference to `u32_to_u8'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_44i':
(.text+0x390): undefined reference to `u32_cpy'
/usr/sbin/ld: (.text+0x3c6): undefined reference to `u32_strlen'
/usr/sbin/ld: (.text+0x42a): undefined reference to `u32_cpy'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_8z8z':
(.text+0x49a): undefined reference to `u32_strlen'
/usr/sbin/ld: (.text+0x4ad): undefined reference to `u32_to_u8'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_8zlz':
(.text+0x563): undefined reference to `u8_strconv_to_encoding'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(decode.o): in function `idn2_to_unicode_lzlz':
(.text+0x5f0): undefined reference to `u8_strconv_from_encoding'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(libunistring_la-nfc.o):(.data.rel.ro+0x10): undefined reference to `uc_composition'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(libunistring_la-u32-normalize.o): in function `u32_normalize':
(.text+0x2f8): undefined reference to `u32_cpy'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(idna.o): in function `_idn2_u8_to_u32_nfc':
(.text+0x32): undefined reference to `u8_to_u32'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(idna.o): in function `_idn2_label_test':
(.text+0x3a0): undefined reference to `uc_is_general_category'
/usr/sbin/ld: /usr/lib64/gcc/x86_64-linux-musl/13.2.0/../../../../lib64/libidn2.a(libunistring_la-categ_of.o): in function `uc_general_category':
(.text+0x113): undefined reference to `_UC_CATEGORY_NONE'
collect2: error: ld returned 1 exit status
```

## Add Missing ` -lunistring` to `Libs.private` line in `/usr/lib/pkgconfig/libcurl.pc`
```
Libs.private: -lnghttp2 -lidn2 -lssh2 -lssh2 -lpsl -lssl -lcrypto -lssl -lcrypto -lzstd -lzstd -lz  -lunistring
```

## Build and link statically again

```
% gcc -o t t.c --static `pkg-config --libs --static libcurl`
```

Success.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
@ 2024-06-25  2:25 ` oreo639
  2024-06-25  2:32 ` MoSal
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  2:25 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187830058

Comment:
The issue here is that curl is missing Requires.private for libidn2.
This should be fixed upstream: https://github.com/curl/curl/commit/f057de5a1a950a90d1920021db152a4b695f1a8a

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
  2024-06-25  2:25 ` oreo639
@ 2024-06-25  2:32 ` MoSal
  2024-06-25  3:10 ` oreo639
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: MoSal @ 2024-06-25  2:32 UTC (permalink / raw)
  To: ml

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

New comment by MoSal on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187836760

Comment:
> The issue here is that curl is missing Requires.private for libidn2. This should be fixed upstream: [curl/curl@f057de5](https://github.com/curl/curl/commit/f057de5a1a950a90d1920021db152a4b695f1a8a)

Cool. The package dependency part remains.
`libcurl-devel` should pull `libunistring-devel`, directly or indirectly.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
  2024-06-25  2:25 ` oreo639
  2024-06-25  2:32 ` MoSal
@ 2024-06-25  3:10 ` oreo639
  2024-06-25  3:13 ` oreo639
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:10 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

Imo no. We don't list static linking dependencies in packages with only a handful of exceptions (e.g. glib for qemu-user-static).
There are distros like Fedora that have seperate `-static` packages but I'm not sure what the interest is for that in Void.
Ofc, that is just my personal two cents.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (2 preceding siblings ...)
  2024-06-25  3:10 ` oreo639
@ 2024-06-25  3:13 ` oreo639
  2024-06-25  3:15 ` oreo639
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:13 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

We don't list static linking dependencies in packages with only a handful of exceptions (e.g. glib for qemu-user-static).
There are distros like Fedora that have seperate `-static` packages but I'm not sure what the interest is for that in Void.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (3 preceding siblings ...)
  2024-06-25  3:13 ` oreo639
@ 2024-06-25  3:15 ` oreo639
  2024-06-25  3:19 ` oreo639
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:15 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

We don't list static linking dependencies in packages with only a handful of exceptions (e.g. in glib for qemu-user-static).
There are distros like Fedora that have seperate `-static` packages but I'm not sure what the interest is for that in Void.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (4 preceding siblings ...)
  2024-06-25  3:15 ` oreo639
@ 2024-06-25  3:19 ` oreo639
  2024-06-25  3:19 ` oreo639
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:19 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

We don't list static linking dependencies in packages with only a handful of exceptions (e.g. in glib for qemu-user-static).
There are distros like Fedora that have seperate `-static` packages but I'm not sure what the interest is for that in Void.

`libcurl-devel` should not pull in `libunistring-devel` because it doesn't depend on `libunistring-devel` (static or not), it is `libidn2-devel` that statically depends on `libunistring-devel`.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (5 preceding siblings ...)
  2024-06-25  3:19 ` oreo639
@ 2024-06-25  3:19 ` oreo639
  2024-06-25  3:20 ` oreo639
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:19 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

We don't list static linking dependencies in packages with only a handful of exceptions (e.g. in glib for qemu-user-static).
There are distros like Fedora that have seperate `-static` packages but I'm not sure what the interest is for that in Void.

Also, `libcurl-devel` should not pull in `libunistring-devel` because it doesn't depend on `libunistring-devel` (static or not), it is `libidn2-devel` that statically depends on `libunistring-devel`.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (6 preceding siblings ...)
  2024-06-25  3:19 ` oreo639
@ 2024-06-25  3:20 ` oreo639
  2024-06-25  3:22 ` MoSal
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:20 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because it doesn't depend on `libunistring-devel` (static or not), it is `libidn2-devel` that statically depends on `libunistring-devel`.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (7 preceding siblings ...)
  2024-06-25  3:20 ` oreo639
@ 2024-06-25  3:22 ` MoSal
  2024-06-25  3:23 ` oreo639
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: MoSal @ 2024-06-25  3:22 UTC (permalink / raw)
  To: ml

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

New comment by MoSal on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187895035

Comment:
> it is libidn2-devel that statically depends on libunistring-devel.

So it would be pulled indirectly, which is fine.

This is the first time I use void. So apologies for not understanding its ecosystem well.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (8 preceding siblings ...)
  2024-06-25  3:22 ` MoSal
@ 2024-06-25  3:23 ` oreo639
  2024-06-25  3:23 ` oreo639
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:23 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`.

Also, in general we don't list static linking dependencies in packages.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (9 preceding siblings ...)
  2024-06-25  3:23 ` oreo639
@ 2024-06-25  3:23 ` oreo639
  2024-06-25  3:24 ` oreo639
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:23 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`.

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or because the dependencies headers are included in public headers)

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (10 preceding siblings ...)
  2024-06-25  3:23 ` oreo639
@ 2024-06-25  3:24 ` oreo639
  2024-06-25  3:24 ` oreo639
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:24 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or because the dependencies headers are included in public headers)

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (11 preceding siblings ...)
  2024-06-25  3:24 ` oreo639
@ 2024-06-25  3:24 ` oreo639
  2024-06-25  3:27 ` oreo639
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:24 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or because the dependencies headers are included in public headers). Not sure if curl is an exception.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (12 preceding siblings ...)
  2024-06-25  3:24 ` oreo639
@ 2024-06-25  3:27 ` oreo639
  2024-06-25  3:27 ` oreo639
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:27 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidently because the dependencies headers are included in public headers). Not sure if curl is an exception.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (13 preceding siblings ...)
  2024-06-25  3:27 ` oreo639
@ 2024-06-25  3:27 ` oreo639
  2024-06-25  3:27 ` oreo639
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:27 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if curl is an exception.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (14 preceding siblings ...)
  2024-06-25  3:27 ` oreo639
@ 2024-06-25  3:27 ` oreo639
  2024-06-25  3:28 ` oreo639
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:27 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if curl is an exception though.

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (15 preceding siblings ...)
  2024-06-25  3:27 ` oreo639
@ 2024-06-25  3:28 ` oreo639
  2024-06-25  3:29 ` oreo639
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:28 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if curl is an exception though.

If so, the fix for that would be adding libunistring-devel to here: https://github.com/void-linux/void-packages/blob/master/srcpkgs/libidn2/template#L17

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (16 preceding siblings ...)
  2024-06-25  3:28 ` oreo639
@ 2024-06-25  3:29 ` oreo639
  2024-06-25  3:29 ` oreo639
  2024-06-25  3:29 ` MoSal
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:29 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if this is an exception though.

If so, the fix for that would be adding libunistring-devel to here: https://github.com/void-linux/void-packages/blob/master/srcpkgs/libidn2/template#L17

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (17 preceding siblings ...)
  2024-06-25  3:29 ` oreo639
@ 2024-06-25  3:29 ` oreo639
  2024-06-25  3:29 ` MoSal
  19 siblings, 0 replies; 21+ messages in thread
From: oreo639 @ 2024-06-25  3:29 UTC (permalink / raw)
  To: ml

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

New comment by oreo639 on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187869747

Comment:
> Cool. The package dependency part remains.

`libcurl-devel` should not pull in `libunistring-devel` because libcurl does not depend on libunistring (static or not).
It is `libidn2-devel` that statically depends on `libunistring-devel`. (so the `depends=` would be added to `libidn2-devel`)

Also, in general we don't list static linking dependencies in packages with some exceptions (e.g. glib for qemu-user-static or incidentally because the dependencies headers are included in public headers). Not sure if curl is an exception though.

If so, the fix for that would be adding libunistring-devel to here: https://github.com/void-linux/void-packages/blob/master/srcpkgs/libidn2/template#L17

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

* Re: libcurl-devel should depend on libunistring-devel for static linking
  2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
                   ` (18 preceding siblings ...)
  2024-06-25  3:29 ` oreo639
@ 2024-06-25  3:29 ` MoSal
  19 siblings, 0 replies; 21+ messages in thread
From: MoSal @ 2024-06-25  3:29 UTC (permalink / raw)
  To: ml

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

New comment by MoSal on void-packages repository

https://github.com/void-linux/void-packages/issues/50980#issuecomment-2187900367

Comment:
`libpsl.a` uses symbols from `libunistring` too, just in case this gets missed.

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

end of thread, other threads:[~2024-06-25  3:29 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-25  2:04 [ISSUE] libcurl-devel should depend on libunistring-devel for static linking MoSal
2024-06-25  2:25 ` oreo639
2024-06-25  2:32 ` MoSal
2024-06-25  3:10 ` oreo639
2024-06-25  3:13 ` oreo639
2024-06-25  3:15 ` oreo639
2024-06-25  3:19 ` oreo639
2024-06-25  3:19 ` oreo639
2024-06-25  3:20 ` oreo639
2024-06-25  3:22 ` MoSal
2024-06-25  3:23 ` oreo639
2024-06-25  3:23 ` oreo639
2024-06-25  3:24 ` oreo639
2024-06-25  3:24 ` oreo639
2024-06-25  3:27 ` oreo639
2024-06-25  3:27 ` oreo639
2024-06-25  3:27 ` oreo639
2024-06-25  3:28 ` oreo639
2024-06-25  3:29 ` oreo639
2024-06-25  3:29 ` oreo639
2024-06-25  3:29 ` MoSal

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