From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0264F1382C5 for ; Tue, 5 Jan 2021 00:28:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC50AE0986; Tue, 5 Jan 2021 00:28:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7093DE090F for ; Tue, 5 Jan 2021 00:28:51 +0000 (UTC) Received: by mail-il1-f171.google.com with SMTP id k8so27055406ilr.4 for ; Mon, 04 Jan 2021 16:28:50 -0800 (PST) X-Gm-Message-State: AOAM5313lqFAjEHcj80hnz3wb/0BrmlVM0aXzsiVoYPPw0ph8o0uuHkv Lok5FRn2TneQjlCPBW0W5cVrDwR3P3aB/KePAOE= X-Google-Smtp-Source: ABdhPJxRm7bZmpSClQDo08YaGin8n6qEetiuPDqgChsa6jIWDMLOKJWTHSkWW1Vc1mKHvsbPzgi1XN1nWhVHnVMadbk= X-Received: by 2002:a92:180b:: with SMTP id 11mr74504785ily.30.1609806528439; Mon, 04 Jan 2021 16:28:48 -0800 (PST) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: <20210103010904.1158863-1-floppym@gentoo.org> <20210103125208.0694a788@symphony.aura-online.co.uk> <20210104231826.3781d650@symphony.aura-online.co.uk> In-Reply-To: From: Mike Gilbert Date: Mon, 4 Jan 2021 19:28:37 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] [PATCH] systemd.eclass: remove SYSROOT from pkg-config output To: Gentoo Dev Content-Type: text/plain; charset="UTF-8" X-Archives-Salt: 5a56bb72-a6aa-498a-b221-a06a99ee8d88 X-Archives-Hash: 3d859c6e4f0c31de0ba75bf344045005 On Mon, Jan 4, 2021 at 6:45 PM Mike Gilbert wrote: > > On Mon, Jan 4, 2021 at 6:18 PM James Le Cuirot wrote: > > $ PKG_CONFIG_SYSROOT_DIR=/foo pkg-config --variable=udevdir udev > > /lib/udev > > > > The udevdir variable is not affected by PKG_CONFIG_SYSROOT_DIR at all. > > And why would it be? The man page says that this variable is only > > applied to -I and -L flags. I don't know for sure but I suspect that > > pkg-config just sees this as some arbitrary variable with no special > > path handling at all. I wonder what led you to think that this fix was > > necessary? > > Interesting! > > pkg-config behaves differently on my system: > > % PKG_CONFIG_SYSROOT_DIR=/foo pkg-config --variable=udevdir udev > /foo/lib/udev > > This appears to be a difference in behavior between dev-util/pkgconfig > and dev-util/pkgconf. I am using pkgconf, and I would guess you are > using pkgconfig. > > I guess I will ask pkgconf upstream for help on this; it seems like > this is probably an unintended behavior. It seems that the pkgconf behavior is intentional. https://github.com/pkgconf/pkgconf/issues/69 I opened an issue to see if we can get some kind of opt-out. https://github.com/pkgconf/pkgconf/issues/205