From patchwork Fri Mar 30 10:35:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Zacarias X-Patchwork-Id: 149606 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 6C7D6B6F6E for ; Fri, 30 Mar 2012 21:36:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 31BCF101D68; Fri, 30 Mar 2012 10:36:05 +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 JA7RxoxlXzAt; Fri, 30 Mar 2012 10:36:03 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 319D4101D03; Fri, 30 Mar 2012 10:36:03 +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 AD0408F753 for ; Fri, 30 Mar 2012 10:36:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A141C8F731 for ; Fri, 30 Mar 2012 10:36:01 +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 rthiA1OG0bOT for ; Fri, 30 Mar 2012 10:36:00 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from loknar.toptech.com.ar (loknar.toptech.com.ar [74.118.36.95]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0B8268F49A for ; Fri, 30 Mar 2012 10:35:59 +0000 (UTC) Received: from asgard (host10.190-30-120.telecom.net.ar [190.30.120.10]) (authenticated bits=0) by loknar.toptech.com.ar (8.14.4/8.14.4) with ESMTP id q2UAZsMW008752 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 30 Mar 2012 07:35:57 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=zacarias.com.ar; s=dkey; t=1333103758; bh=a5N6mEWk3kLYto/Vp+QvbsVP5ngYqP+jBsXJt5BofE0=; h=From:To:Cc:Subject:Date:Message-Id; b=CQxhrZaFXIL7RR+na7LthdDqnWXMS53eQG2jxl9WVBhmBYY3wTMBL0jbGVW+Jr49y HXYELhaPrcsLYGtgbk5yDafojic0e4nSjlqtlFcmmXPQ2XYB/6rg6cEgRlJXRY68QL +snLl4/O61CXg+tgewOTX+29Hs5nGGV+wi2YiDSM= Received: by asgard (sSMTP sendmail emulation); Fri, 30 Mar 2012 07:35:53 -0300 From: Gustavo Zacarias To: buildroot@busybox.net Date: Fri, 30 Mar 2012 07:35:53 -0300 Message-Id: <1333103753-29248-1-git-send-email-gustavo@zacarias.com.ar> X-Mailer: git-send-email 1.7.3.4 X-Virus-Scanned: clamav-milter 0.97.3 at loknar X-Virus-Status: Clean Subject: [Buildroot] [PATCH] sudo: add fix for non-utmpx toolchains X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 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-bounces@busybox.net The utmpx defines for when the target systems lacks utmpx is incomplete, resulting in a build failure, so fix it. This can be triggered by a uClibc toolchain that lacks UTMPX in the configuration, or an older (<= 0.9.31) uClibc which lacks the functionality. Signed-off-by: Gustavo Zacarias --- package/sudo/sudo-1.8.4p4-utmpx.patch | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 package/sudo/sudo-1.8.4p4-utmpx.patch diff --git a/package/sudo/sudo-1.8.4p4-utmpx.patch b/package/sudo/sudo-1.8.4p4-utmpx.patch new file mode 100644 index 0000000..4e97406 --- /dev/null +++ b/package/sudo/sudo-1.8.4p4-utmpx.patch @@ -0,0 +1,19 @@ +Fix incomplete setutxent/endutxent defines for when there's no utmpx +Upstream bug #551 + +Signed-off-by: Gustavo Zacarias + +diff -Nura sudo-1.8.4p4.orig/src/utmp.c sudo-1.8.4p4/src/utmp.c +--- sudo-1.8.4p4.orig/src/utmp.c 2012-03-30 07:10:38.381706315 -0300 ++++ sudo-1.8.4p4/src/utmp.c 2012-03-30 07:10:52.605802501 -0300 +@@ -63,8 +63,8 @@ + #if !defined(HAVE_GETUTXID) && defined(HAVE_GETUTID) + # define getutxline(u) getutline(u) + # define pututxline(u) pututline(u) +-# define setutxent setutent(u) +-# define endutxent endutent(u) ++# define setutxent(u) setutent(u) ++# define endutxent(u) endutent(u) + #endif /* !HAVE_GETUTXID && HAVE_GETUTID */ + + #ifdef HAVE_GETUTXID