From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.dream-property.net ([82.149.226.172]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjeq-0005EJ-GT for openembedded-core@lists.openembedded.org; Wed, 16 May 2012 21:13:13 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.dream-property.net (Postfix) with ESMTP id 2436C315C372 for ; Wed, 16 May 2012 21:03:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.dream-property.net Received: from mail.dream-property.net ([127.0.0.1]) by localhost (mail.dream-property.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id R2ZScao97C+r for ; Wed, 16 May 2012 21:03:02 +0200 (CEST) Received: from [172.22.22.61] (drms-4d015b29.pool.mediaWays.net [77.1.91.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.dream-property.net (Postfix) with ESMTPSA id 979E9315C347 for ; Wed, 16 May 2012 21:03:02 +0200 (CEST) Message-ID: <4FB3F9E5.7020508@opendreambox.org> Date: Wed, 16 May 2012 21:03:01 +0200 From: Andreas Oberritter User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org References: <1337187331-4945-1-git-send-email-obi@opendreambox.org> <89109968-DC24-477E-9E9D-2F255D1EB93B@dominion.thruhere.net> <4FB3F434.2040703@opendreambox.org> <06EC3C03-3054-456C-96C2-4A21604BEE05@dominion.thruhere.net> In-Reply-To: <06EC3C03-3054-456C-96C2-4A21604BEE05@dominion.thruhere.net> Subject: Re: [PATCH] avahi-systemd: drop postrm, use prerm instead X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 May 2012 19:13:13 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 16.05.2012 20:50, Koen Kooi wrote: > > Op 16 mei 2012, om 20:38 heeft Andreas Oberritter het volgende geschreven: > >> On 16.05.2012 19:17, Koen Kooi wrote: >>> >>> Op 16 mei 2012, om 18:55 heeft Andreas Oberritter het volgende geschreven: >>> >>>> * Calling "systemctl disable" from postrm is too late and >>>> causes the following error: >>>> >>>> | Failed to issue method call: No such file or directory >>>> >>>> * Fix indentation of prerm for resulting shell snippet. >>>> * Messing with $D is not needed in *rm scripts. >>> >>> It very much is, you can offline remove scripts just like you can install them. >> >> What's the use case for removing packages offline > > e.g. BAD_RECOMMENDATIONS Packages in BAD_RECOMMENDATIONS don't get installed. So there's no need for them to get removed. Do you know any real use case? >> and where in OE is >> this used? Is the majority of prerm- and postrm-scripts prepared for that? > > Dunno if the majority is, but you're now actively making it worse. I doubt it unless proven wrong. Actually there's only one line matching opkg-cl.*remove, which is a very special case: openembedded-core/meta/classes/rootfs_ipk.bbclass: opkg-cl ${IPKG_ARGS} --force-depends remove update-rc.d base-passwd || true Regards, Andreas P.S.: No line matches opkg-cl.*upgrade