mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: ruggero rossi via ptxdist <ptxdist@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: ruggero rossi <rugrossi@googlemail.com>
Subject: [ptxdist] Error configuring utils-linux 2.41
Date: Wed, 4 Jun 2025 10:30:38 +0200	[thread overview]
Message-ID: <20250604103038.02d57f40@RR-Laptop> (raw)

[-- 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'

             reply	other threads:[~2025-06-04  8:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-04  8:30 ruggero rossi via ptxdist [this message]
2025-06-04 20:33 ` Roland Hieber
2025-06-05  5:45   ` ruggero rossi via ptxdist

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250604103038.02d57f40@RR-Laptop \
    --to=ptxdist@pengutronix.de \
    --cc=rugrossi@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox