From patchwork Wed Nov 4 18:46:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?No=C3=A9=20Rubinstein?= X-Patchwork-Id: 540131 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id 6E965140770 for ; Thu, 5 Nov 2015 05:46:36 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=tykOr7sA; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id A7BB43308B; Wed, 4 Nov 2015 18:46:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sor07NSuAFh2; Wed, 4 Nov 2015 18:46:31 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 224D53307C; Wed, 4 Nov 2015 18:46:31 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id BB34F1BFA75 for ; Wed, 4 Nov 2015 18:46:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id B849F89020 for ; Wed, 4 Nov 2015 18:46:27 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xrTHCBe7V4QQ for ; Wed, 4 Nov 2015 18:46:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E9CB688FFD for ; Wed, 4 Nov 2015 18:46:26 +0000 (UTC) Received: by wmff134 with SMTP id f134so49392895wmf.0 for ; Wed, 04 Nov 2015 10:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=gP53Wtk41uopwFxpx3K7AnM+/c8U0O949zjLb3xjpAE=; b=tykOr7sA3l9Y70/jKK9m42gMU/6x0y95exHUoDUc2ze+MV6CTUtN0WD2hQfYqDZH5E I4Aj8T+Vq4QjoHb1OeNoJvcZgomFvdg7q0/gUoGkOmAb3XRAA33xkFV+UbcP6SQM7plo +25s8EApMURYr0P9aZahnnMKD22oq1R/uD4+feOn0lhAbOiSdAo3lWSVsLvyUrjRK32F 3M9bkzSk7c/B8Cgf1JC2pkp+G9pQjty9AQcuwK7xIbRTtFAIvdbexfRcUmLy+aGDtBsK Txvr3BeAR6ZQn6VEk3tcC/GD9cQvb4WJ11aeHSHOuMBlz1+nc+/XVwc0EEABenaeyj7y 8Bbw== X-Received: by 10.28.139.18 with SMTP id n18mr29490521wmd.63.1446662785608; Wed, 04 Nov 2015 10:46:25 -0800 (PST) Received: from nrubinstein-de.aldebaran.lan ([195.190.86.18]) by smtp.gmail.com with ESMTPSA id kd8sm2935838wjc.27.2015.11.04.10.46.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Nov 2015 10:46:24 -0800 (PST) From: "=?UTF-8?q?No=C3=A9=20Rubinstein?=" X-Google-Original-From: =?UTF-8?q?No=C3=A9=20Rubinstein?= To: buildroot@buildroot.org Date: Wed, 4 Nov 2015 19:46:07 +0100 Message-Id: <1446662767-15730-2-git-send-email-nrubinstein@aldebaran.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446662767-15730-1-git-send-email-nrubinstein@aldebaran.com> References: <1446662767-15730-1-git-send-email-nrubinstein@aldebaran.com> MIME-Version: 1.0 Cc: =?UTF-8?q?No=C3=A9=20Rubinstein?= Subject: [Buildroot] [PATCH 2/2] package/python-web2py: fix permissions X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The PYTHON_WEB2PY_PERMISSIONS table was using the user and group names instead of the uid and gid, causing makedevs to retrieve the uid and gid from the host system. Signed-off-by: NoƩ Rubinstein --- package/python-web2py/python-web2py.mk | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/package/python-web2py/python-web2py.mk b/package/python-web2py/python-web2py.mk index 313114a..db9ed8d 100644 --- a/package/python-web2py/python-web2py.mk +++ b/package/python-web2py/python-web2py.mk @@ -32,8 +32,16 @@ define PYTHON_WEB2PY_INSTALL_INIT_SYSTEMD $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/web2py.service endef +# www-data user and group are used for web2py. Because these user and group +# are already set by buildroot, it is not necessary to redefine them. +# See system/skeleton/etc/passwd +# username: www-data uid: 33 +# groupname: www-data gid: 33 +# +# So, we just need to create the directories used by web2py with the right +# ownership. define PYTHON_WEB2PY_PERMISSIONS - /var/www/web2py r 750 www-data www-data - - - - - + /var/www/web2py r 750 33 33 - - - - - endef $(eval $(generic-package))