Subject: [alpine-devel] util-linux-ng --enable-init git patch

From: Leonardo Arena <[email-masked]>
Date: Wed, 21 Jan 2009 11:52:43 +0100

APCUPSD needs shutdown command, and "--enable-init" option cause shutdown to
be compiled.

Please review attached patch
Leo
From fa6181bcf6feb5300cd5687b4da315a9afe516a8 Mon Sep 17 00:00:00 2001
From: Leonardo Arena <[email-masked]>
Date: Wed, 21 Jan 2009 10:47:16 +0000
Subject: [PATCH] extra/util-linux-ng: --enable-init added

---
 extra/util-linux-ng/APKBUILD |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/extra/util-linux-ng/APKBUILD b/extra/util-linux-ng/APKBUILD
index 4dd5c3e..d5cb509 100644
--- a/extra/util-linux-ng/APKBUILD
+++ b/extra/util-linux-ng/APKBUILD
@@ -24,7 +24,8 @@ build() {
 		--disable-init \
 		--disable-nls \
 		--disable-kill \
-		--without-pam
+		--without-pam \
+		--enable-init
 		
 	make || return 1
 	make install DESTDIR=$pkgdir
-- 
1.6.1

---

From: Natanael Copa <[email-masked]>
Date: Wed, 21 Jan 2009 13:02:41 +0100

On Wed, 2009-01-21 at 11:52 +0100, Leonardo Arena wrote:
> 
> APCUPSD needs shutdown command, and "--enable-init" option cause
> shutdown to be compiled.
> 
> differences
> between files
> attachment
> (0001-extra-util-linux-ng-enable-init-added.patch)
> 

Could you please check if /sbin/init gets included? I see that shutdown
is provided by sysvinit on gentoo.

I am a bit sceptic that /sbin/init might mess with booting alpine.
Ideally, apcupsd should use busybox tools to shutdown (e.g halt)

I will commit and move to testing repository for now.

-nc

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---

---

From: Leonardo Arena <[email-masked]>
Date: Wed, 21 Jan 2009 13:27:11 +0100

> is provided by sysvinit on gentoo.

No, it does not include /sbin/init