From patchwork Sat Nov 29 10:55:56 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 415986 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 9CC271401DD for ; Sat, 29 Nov 2014 21:56:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 22D1692451; Sat, 29 Nov 2014 10:56:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lPYM+RW2lXsw; Sat, 29 Nov 2014 10:56:05 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id C555A922CF; Sat, 29 Nov 2014 10:56:05 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 1035B1C25F1 for ; Sat, 29 Nov 2014 10:56:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0A2CC91F57 for ; Sat, 29 Nov 2014 10:56:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Pab-IzeQNyVH for ; Sat, 29 Nov 2014 10:56:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wi0-f173.google.com (mail-wi0-f173.google.com [209.85.212.173]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8A859922CF for ; Sat, 29 Nov 2014 10:56:03 +0000 (UTC) Received: by mail-wi0-f173.google.com with SMTP id r20so20463637wiv.6 for ; Sat, 29 Nov 2014 02:56:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id; bh=xB+clPU80StqrwBrRfJAULL0MVR1pRElvVXGEr0Oot0=; b=Vd6Gnqolm4D1oI/61p3wxFox4kzGwWLXzc4uyLdfn8pX3pyKZ646OYU2iHPHANT1j3 tIQA1ZN11LvUgDD2CsNfGCRJDjrhVi8bAjn4jHryD7sMOQnY7CqmH60mD8q02AAu7AOM 1ZfE4zTADS+z3sFnqn2BIjD2Z4COqCx4EMbH1lwjQKkscAvVYdsd+hVNX+1ObcSckUrm 2AQmMBndFTozrfgMFxFfujIuSXe98fj6IIDQybeYB5rSsxC0NaDMRFtDwd/U8re0Ofn9 vglHhrKVEMvm8QT0/uZojCwkMvtOSz8o+SeZi1CdRkQEkCOhpwpyhM4HO6Tp3XhgXX+x Df1A== X-Received: by 10.194.249.70 with SMTP id ys6mr74625179wjc.61.1417258562199; Sat, 29 Nov 2014 02:56:02 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id qg11sm12636664wic.17.2014.11.29.02.56.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 29 Nov 2014 02:56:01 -0800 (PST) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sat, 29 Nov 2014 11:55:56 +0100 Message-Id: <1417258556-16797-1-git-send-email-yann.morin.1998@free.fr> X-Mailer: git-send-email 1.9.1 Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH] package/mutt: specify the mailpath 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" mutt's ./configure looks for different paths for where to look for incoming mails. This is absolutely worng in the case of cross-compilation, because the path it may find on the host may not exist on the target. Not only that, but some host may not even have any of the paths ./configure looks for. Fix that by specifying the mailpath, and set it to the value documented in the FHS [0] Since Buildroot only guarantees /tmp to be writable, make /var/mail a symlink to /tmp . [0] http://refspecs.linuxfoundation.org/FHS_2.3/fhs-2.3.html#VARMAILUSERMAILBOXFILES Reported-by: Vicente Olivert Riera Signed-off-by: "Yann E. MORIN" --- package/mutt/mutt.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/mutt/mutt.mk b/package/mutt/mutt.mk index b4f18b0..92457a1 100644 --- a/package/mutt/mutt.mk +++ b/package/mutt/mutt.mk @@ -57,4 +57,11 @@ MUTT_CONF_ENV += \ mutt_cv_iconv_good=yes \ mutt_cv_iconv_nontrans=no +MUTT_CONF_OPTS += --with-mailpath=/var/mail + +define MUTT_VAR_MAIL + ln -sf /tmp $(TARGET_DIR)/var/mail +endef +MUTT_POST_INSTALL_TARGET_HOOKS += MUTT_VAR_MAIL + $(eval $(autotools-package))