mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] Error configuring utils-linux 2.41
@ 2025-06-04  8:30 ruggero rossi via ptxdist
  2025-06-04 20:33 ` Roland Hieber
  0 siblings, 1 reply; 3+ messages in thread
From: ruggero rossi via ptxdist @ 2025-06-04  8:30 UTC (permalink / raw)
  To: ptxdist; +Cc: ruggero rossi

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

I'm maintaining a system that still uses an old libc version not including
librt and libpthread.

Migrating to ptxdist 2025.05.0, I got an error while configuring
utils-linux 2.41.

meson says:
../util-linux-2.41/meson.build:1482:22: ERROR: Object
<[ExternalLibraryHolder] holds [ExternalLibrary]: <ExternalLibrary rt:
True>> of type ExternalLibrary does not support the `+` operator.

The bug is a missing + at line 1478 of meson.build.

A patch is attached.

The bug has been already found and corrected upstream. I expect it will be
fixed in version 2.42.

Best regards,

Ruggero



[-- Attachment #2: 0100-meson-fix-posixipc_libs-configuration.patch --]
[-- Type: text/x-patch, Size: 559 bytes --]

Index: util-linux-2.41/meson.build
===================================================================
--- util-linux-2.41.orig/meson.build
+++ util-linux-2.41/meson.build
@@ -1475,7 +1475,7 @@ has_seminfo_type = cc.has_type('struct s
 
 posixipc_libs = []
 if not cc.has_function('shm_open') and conf.get('HAVE_SYS_MMAN_H').to_string() == '1'
-  posixipc_libs = cc.find_library('rt', required : true)
+  posixipc_libs += cc.find_library('rt', required : true)
 endif
 
 if not cc.has_function('sem_close') and conf.get('HAVE_SEMAPHORE_H').to_string() == '1'

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

end of thread, other threads:[~2025-06-05  5:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-06-04  8:30 [ptxdist] Error configuring utils-linux 2.41 ruggero rossi via ptxdist
2025-06-04 20:33 ` Roland Hieber
2025-06-05  5:45   ` ruggero rossi via ptxdist

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox