From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id pjH8IMD/lWTVigAASxT56A (envelope-from ) for ; Fri, 23 Jun 2023 22:25:36 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 0BD6H8D/lWS3yAAAauVa8A (envelope-from ) for ; Fri, 23 Jun 2023 22:25:36 +0200 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 3853D2513F for ; Fri, 23 Jun 2023 22:25:36 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=J4Z4nYDp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1687551936; a=rsa-sha256; cv=none; b=NV1mJTyHo6cmR39xbR0Ihp9APeMwTc9ABpWwTcpzU8Fwodzkm4yhllYOfvVexgoe0Kto6U pjGeU1U3NpQ9J4XQgZWMybrtVHPeU0Z5cHYeaFH16VYGaUhHErk7nZJg7gmVhT8F4RWze6 SdzN1QZHI4FH8YGJc9z5SFp46T8NW2kH1GWBWOn0S8F/VcsEbf5dl+pxGoDJuEGCyW0X3E 1zO6nlTnWHXXwXhMScsAUYrrO3sM+tJDqp9V9jgy3kqOxU8QVXALSx8X0ajspWsFNFEDxy 46nnHw5V++RMxCxQdO9dEgEiNhGoY/8O9zUaD302NkOlfzsks1hNmjXmW+fvOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=J4Z4nYDp; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1687551936; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=SgdRagt9Un6sLTVex0Kp7YQf1SCeBM+33AyLYFSF7RA=; b=j9Olzr4TdsYai4WWLAECkrrOy2/AGsZhmqwMLJAbtEvi0vmZQN1TxuPWD1MX/Rbe1bTib0 9P8htiEXmjr9bYnyhCeoJp/7ppXVIVg2VVbb8wsRpLSQQioKg4oYJ2CQZAB3hGcG/2kKSJ r+/niCcclXgiBJCchDy9OD73IZgdByMMtbP0ati+hWt2F8cnZdjDSHl6DtI6Vge6TQx21V hV96mPfbTTXiIbMWsT/dKDvZNyi7JdgQvf9wQi7VhQx3bSOph3DciqF5f5dLVXze4VYpED J1S95d+vLyYV7/+5DprDrB8ZrOIFw1CaW3iZ6FPXzUh7y9YW8gP9hcEKglPOKA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCnKz-000537-LQ; Fri, 23 Jun 2023 16:24:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCnKx-00052l-UH for guix-devel@gnu.org; Fri, 23 Jun 2023 16:24:55 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1qCnKs-0003pM-6h for guix-devel@gnu.org; Fri, 23 Jun 2023 16:24:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=ZleaCu/RWUeWH0E F/XPFOJJcEMvMXjVTa4bmkfNC2XY=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=J4Z4nYDpl9dayqsU/cmM4MKeHMl1VE+Td+E6sxWP Wn5N5ySU6hgm73kQ+ulZWmUMDww1Jh7GzPR/LxYvuCN+bNdVb/afEG5KqwxI/t01UsaVbC P5yjF4TCOP+sizbgHVKAvi3Z+9A8WdILKYTCXv4YgXo1DVDvRpFrHqmlqzMnA= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id ee2876bc (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Fri, 23 Jun 2023 20:24:45 +0000 (UTC) Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-4f866a3d8e4so1489043e87.0 for ; Fri, 23 Jun 2023 13:24:44 -0700 (PDT) X-Gm-Message-State: AC+VfDy6dp6txE71Gr8maVzmPfBxFrXM5c8adTDsifX2/CUA9rJELPkp D4vK6j99Wyil6BXoafAm/lY3RkhgChv/0exK1Rs= X-Google-Smtp-Source: ACHHUZ7jz5sRffHDYfhh+/90TDSEiK9zuKMVhDF/EZvicgIruKQJTzI2wgyfKc1s+BayVdERtDFDuVJxUKcIQWy5lkE= X-Received: by 2002:a05:6512:3d1e:b0:4f9:696f:6b0b with SMTP id d30-20020a0565123d1e00b004f9696f6b0bmr4778492lfv.60.1687551883019; Fri, 23 Jun 2023 13:24:43 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Fri, 23 Jun 2023 13:24:06 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: package definition question: installation into system directory To: Andy Tai Cc: guix-devel@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.55 X-Migadu-Queue-Id: 3853D2513F X-Spam-Score: -3.55 X-TUID: nWeWfOGepbIZ Hi Andy, On Fri, Jun 23, 2023 at 11:44=E2=80=AFAM Andy Tai wrote: > > Hi, I was trying to create a package definition for xrdp. > > cannot create directory =E2=80=98/etc/xrdp=E2=80=99: Permission denied Installation paths must be located inside the output folder. The paths always point into the store. > make[3]: *** [Makefile:690: install-dist_sesmansysconfDATA] Error 1 You should be able to override the installation prefix at configure time. It will affect Automake's sysconfdir, which is probably at issue here. [1] (It may even work at 'make' time but I do not recommend It.) I believe the preferred way to override the installation prefix in Guix is via something like (arguments (list #: configure-flags (list (string-append "--prefix=3D" output)))). > it was trying to install (some PAM related file) into /etc > which fails. Curious how should such scenario be handled? The PAM-related file belongs into the package output. That makes it available for potential use. Users of your package can then include it in their system config via the PAM facilities in Guix System. An example for pam_limits can be seen here [3] except you probably want to use absolute paths to the PAM data. I suggested it for pam_limits in this patch [4] but it has not yet been accepted. Instead of the linux-pam package users of your package would refer to xrdp. Kind regards & please have a good weekend! Felix [1] https://www.gnu.org/prep/standards/html_node/Directory-Variables.html [2] https://guix.gnu.org/en/manual/devel/en/guix.html#index-gnu_002dbuild_0= 02dsystem [3] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/base.scm#n= 1604 [4] https://issues.guix.gnu.org/63383#3