Received: from cpanel7.indieserve.net (cpanel7.indieserve.net [199.212.143.8]) by mx.groups.io with SMTP id smtpd.web11.671.1586294970363642296 for ; Tue, 07 Apr 2020 14:29:30 -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]:46050 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 1jLvmi-0029qn-Vl; Tue, 07 Apr 2020 17:29:29 -0400 Date: Tue, 7 Apr 2020 17:29:26 -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. > > The scripts are written into the package files when the packages > gets created; they become 'post-install scriptlets' that every > package manager supports and executes if they are present. i assume the same holds for pre-install scriptlets, even though the docs claim otherwise. rday