[Bug 346271] halt initscript does not properly handle apcupsd shutdowns
bugzilla at redhat.com
bugzilla at redhat.com
Sat Oct 24 20:29:23 UTC 2009
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=346271
--- Comment #25 from Kevin Verma <kevinverma at fedoraproject.org> 2009-10-24 16:29:20 EDT ---
(In reply to comment #16)
> I'm happy with either solution. I do like the simplicity of a static link
> though.
>
> --- apcupsd-3.14.4/src/Makefile.orig 2008-12-04 12:13:27.000000000 -0500
> +++ apcupsd-3.14.4/src/Makefile 2008-12-04 12:12:57.000000000 -0500
> @@ -27,7 +27,7 @@
> all-targets: apcupsd apcaccess apctest smtp $(POWERFLUTE)
>
> apcupsd: $(common_obj) $(apcupsd_obj) $(APCDRVLIBS) $(APCLIBS)
> - $(LINK) $(DRVLIBS)
> + $(LINK) -static $(DRVLIBS)
>
> apctest: $(common_obj) $(apctest_obj) $(APCDRVLIBS) $(APCLIBS)
> $(LINK) $(DRVLIBS)
I tried building a static rpm like in this comment, but it kept failing to
build. Can someone guide me if following patch I used is enough.
<snip>
--- apcupsd-3.14.7/src/Makefile 2009-08-01 17:31:59.000000000 +0530
+++ apcupsd-3.14.7p/src/Makefile 2009-09-17 05:09:04.742907034 +0530
@@ -24,11 +24,9 @@
all-targets: apcupsd apcaccess apctest smtp
-apcupsd: $(common_obj) $(apcupsd_obj) $(APCDRVLIBS) $(APCLIBS)
- $(LINK) $(DRVLIBS)
-
apctest: $(common_obj) $(apctest_obj) $(APCDRVLIBS) $(APCLIBS)
- $(LINK) $(DRVLIBS)
+# $(LINK) $(DRVLIBS)
+ $(LINK) -static $(DRVLIBS)
apcaccess: $(apcaccess_obj) $(APCLIBS)
$(LINK)
</snip>
currently its failing with the errors on http://pastebin.com/d72ab0e84
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the fedora-triage-list
mailing list