From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OjcX1-0001Yg-0m for garchives@archives.gentoo.org; Thu, 12 Aug 2010 18:29:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A38DE0A9A; Thu, 12 Aug 2010 18:29:33 +0000 (UTC) Received: from mail.caf.com.tr (mail.caf.com.tr [88.250.85.68]) by pigeon.gentoo.org (Postfix) with ESMTP id ABABCE0880 for ; Thu, 12 Aug 2010 18:29:30 +0000 (UTC) Received: from localhost (sunny.caf.com.tr [127.0.0.1]) by mail.caf.com.tr (Postfix) with ESMTP id E469639E36F for ; Thu, 12 Aug 2010 18:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=caf.com.tr; h= user-agent:content-disposition:content-type:content-type :mime-version:message-id:subject:subject:from:from:date:date :received:received:received; s=originating; t=1281637768; bh=JD9 p/FJmv3HT/jCF58pTm4e+m3nvglwvR948J33bdk4=; b=ngetGcrgoMlFdJpH0by b+/Vn9iZaQAd+1qrGuAUND9SB3KE3/fy2c7vZw2Sf+TGctrVRP/6RmhIT13tsP6Q aZrk4BrdrBGdM3QVbmFXssGfwgAPWWF0CZWXJGyarMpVJKZpUctInAQDAcCSeP7+ hNPmbhyS86qjeAAzAJjNa8vU= X-Virus-Scanned: amavisd-new at caf.com.tr Received: from mail.caf.com.tr ([127.0.0.1]) by localhost (sunny.caf.com.tr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id GQmwqp5YLvjy for ; Thu, 12 Aug 2010 18:29:28 +0000 (UTC) Received: from zptr-nb01.caf.com.tr (unknown [88.235.34.101]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.caf.com.tr (Postfix) with ESMTPSA id 734B839E35C for ; Thu, 12 Aug 2010 18:29:28 +0000 (UTC) Received: by zptr-nb01.caf.com.tr (Postfix, from userid 1000) id 6632E23EDA; Thu, 12 Aug 2010 21:29:27 +0300 (EEST) Date: Thu, 12 Aug 2010 21:29:27 +0300 From: Eray Aslan To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] keepdir /var/run/package/? Message-ID: <20100812182926.GA5771@zptr-nb01> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Archives-Salt: b38263a9-f043-48a0-a900-87379237936e X-Archives-Hash: 729d26aa5d6cfedeb5e1c456a49ca570 It is perfectly legal to clear /var/run across reboots. Below is a bug from a user that ran into some trouble because an init script assumes that /var/run/package/ exists for its PID file: http://bugs.gentoo.org/show_bug.cgi?id=332397 A quick grep through the tree shows 73 packages that keepdirs /var/run/package/. Perhaps not all of them are bugs but they are certainly redundant. A mass bug-filing is probably not the correct thing to do but perhaps we should document somewhere (devmanual?) that keepdir'ing a temp location should be avoided. Suggestion: --- a/ebuild-writing/common-mistakes/text.xml +++ b/ebuild-writing/common-mistakes/text.xml @@ -41,6 +41,18 @@ elog "They are listed in the INSTALL file in /usr/share/doc/${PF}" +
+Invalid use of <c>keepdir</c>in src_install + +The keepdir function should only be used to prevent directory removal +during uninstallation. In particular, using keepdir for a temporary +location - such as /var/run/package/ for a PID file - should be avoided. In +such a case, init script either should make sure that /var/run/package/ exists +or the package should use /var/run directly. Please note that /var/run can and +will be cleaned across reboots. + +
+ -- Eray