From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id YHwSB6S4wF9+NgAA0tVLHw (envelope-from ) for ; Fri, 27 Nov 2020 08:28:20 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IOrUAqS4wF/eFAAA1q6Kng (envelope-from ) for ; Fri, 27 Nov 2020 08:28:20 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 60968940363 for ; Fri, 27 Nov 2020 08:28:19 +0000 (UTC) Received: from localhost ([::1]:48606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kiZ74-0004uq-5c for larch@yhetil.org; Fri, 27 Nov 2020 03:28:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:48456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiZ6q-0004u0-9E for help-guix@gnu.org; Fri, 27 Nov 2020 03:28:04 -0500 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:36405) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kiZ6n-0008EM-Vl for help-guix@gnu.org; Fri, 27 Nov 2020 03:28:04 -0500 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id CD3F020018; Fri, 27 Nov 2020 08:27:56 +0000 (UTC) From: Pierre Neidhardt To: Zhu Zihao , help-guix@gnu.org Subject: Re: Inject custom search specification into profile In-Reply-To: <86k0u7co46.fsf@163.com> References: <86wny7cupf.fsf@163.com> <86k0u7co46.fsf@163.com> Date: Fri, 27 Nov 2020 09:27:55 +0100 Message-ID: <87mtz3fblg.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@ambrevar.xyz; helo=relay7-d.mail.gandi.net X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.496, PDS_OTHER_BAD_TLD=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.86 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-TUID: EmAPVerFNY8Y --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi! The trick is that etc/profile exports environment variables for the packages that explicitly consume them, not for packages that are consumed by others. I don't know about Xfce, so I'll give you an example with pkg-config: if you install just webkitgtk to a profile, its lib/pkgconfig/*.pc files won't be detected by a `pkg-config` executable (that comes from a different profile). If you include `pkg-config` itself in the profile, then the profile *.pc files will be found. I suppose that for Xfce you need to install a component that looks up XDG_DATA_DIRS. Hope that helps! =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl/AuIsSHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/lL4H/jJ8gPXJQm6t99twyamLkEExY7zbJsIm +Dp3qP2WYtfNGJT0PntEGgB6Q+2tG0CO9XhAMKRyp9suNeTKlmBiA3xfwOY7sV9p GmMoDNBgtcSMpWlQyAEy1StEprBiXg2DhJ3wdzbrHuAH9q1lhChVvC+altEEqRIn Z6efd5vB6vOd8kKQdkPI/DbnGlR7H+srTW8NfK5v9cQeLFSZaYfjrvK4qjs6szj4 ymdUL/s7QF/DGxR3F55BEuIAUj9yKEIK4C2EQuyeilp3vghdstWiMlVq0uy9Hq+Z lOXFRmgfTNHmIOjYyHzLvwsQCC8D7L+i6cgUruQnsUoYZMPrbyDppuo= =dLmi -----END PGP SIGNATURE----- --=-=-=--