Received: from cpanel7.indieserve.net (cpanel7.indieserve.net [199.212.143.8]) by mx.groups.io with SMTP id smtpd.web11.7.1586296211097191786 for ; Tue, 07 Apr 2020 14:50:11 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: crashcourse.ca, ip: 199.212.143.8, mailfrom: rpjday@crashcourse.ca) Received: from cpef81d0f814063-cmf81d0f814060.cpe.net.cable.rogers.com ([174.114.57.56]:46142 helo=localhost.localdomain) by cpanel7.indieserve.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1jLw6j-002DP4-EE; Tue, 07 Apr 2020 17:50:10 -0400 Date: Tue, 7 Apr 2020 17:50:06 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost.localdomain To: Alexander Kanavin cc: OE Core mailing list Subject: Re: [OE-core] clarify use of "$D" in pkg_postinst routines? In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel7.indieserve.net X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel7.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel7.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Content-Type: text/plain; charset=US-ASCII On Tue, 7 Apr 2020, Alexander Kanavin wrote: > These run > - at image creation time in the context of package manager > (dnf/apt/opkg) installing packages into the image rootfs > directory. The code that executes the package manager specifically > exports $D into the environment before launching it. > - at runtime when packages are installed or updated through the same > package manager. Then, $D is absent. i think i'm going to use meta-selftest/recipes-test/postinst/postinst_1.0.bb as the basis for writing a more extensive section on this topic, 'cuz writing this up is the only way i'm going to understand this. there are definitely subtleties here that are not documented in the manuals. rday