Bug 448633

Summary: apcupsd-3.14.1-init.patch
Product: [Fedora] Fedora Reporter: Nerijus Baliūnas <nerijus>
Component: apcupsdAssignee: Tomas Smetana <tsmetana>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 9CC: akropel1
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 3.14.4-2.fc9 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-06-14 04:16:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nerijus Baliūnas 2008-05-27 23:55:56 UTC
apcupsd src rpm contains apcupsd-3.14.1-init.patch, which includes:

+    condrestart)
+       [ -f /var/lock/subsys/ypbind ] && $0 restart || :
+       ;;

What does /var/lock/subsys/ypbind have to do with apcupsd?

Comment 1 Tomas Smetana 2008-05-28 07:21:20 UTC
I'll fix this together with rebase to 3.14.4.  Thanks for reporting.

Comment 2 Nerijus Baliūnas 2008-05-28 11:02:07 UTC
BTW, you can use smp flags for make in 3.14.4, as makefile system was completely
rewritten (and powerflute with nls removed).

Comment 3 Fedora Update System 2008-05-28 12:40:16 UTC
apcupsd-3.14.4-1.fc9 has been submitted as an update for Fedora 9

Comment 4 Fedora Update System 2008-05-31 02:15:24 UTC
apcupsd-3.14.4-1.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update apcupsd'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4761

Comment 5 Nerijus Baliūnas 2008-06-01 13:30:51 UTC
gettext-devel and ncurses-devel are no longer needed in spec file, as powerflute
and nls were removed.

Why an old patch apcupsd-3.14.1-cloexec.patch was added again? Wasn't it fixed
in apcupsd 3.14.2?

* Wed Oct 10 2007 - Orion Poplawski <orion.com> - 3.14.2-1
- Update to 3.14.2, remove upstreamed patches

* Wed Aug  1 2007 - Orion Poplawski <orion.com> - 3.14.1-3
- Add patch to close open file descriptors (bug #247162)

Install binaries: is still /usr/sbin, but according to bug #346271, if /usr is a
separate filesystem, it will be unmounted at the point of killpower. Could you
please install binaries in /sbin, as nut package does?


Comment 6 Tomas Smetana 2008-06-02 06:06:15 UTC
I have added the cloexec patch back for I failed to find the changes in the
upstream code and I'll take a look at moving the binaries to /sbin.

Comment 7 Adam Kropelin 2008-06-02 22:41:53 UTC
This was fixed upstream in a different way:

src/lib/apcexec.c:178:
/* Don't leak unnecessary fds to child */
for (int i=0; i<sysconf(_SC_OPEN_MAX); i++) {
   if (i != STDIN_FILENO && i != STDOUT_FILENO && i != STDERR_FILENO) {
      if (close(i) == 0)
         Dmsg1(200, "exec closed fd %d\n", i);
   }
}


Comment 8 Tomas Smetana 2008-06-03 06:26:00 UTC
Thanks. I'll drop the path again then.

Comment 9 Fedora Update System 2008-06-06 10:36:02 UTC
apcupsd-3.14.4-2.fc9 has been submitted as an update for Fedora 9

Comment 10 Fedora Update System 2008-06-14 04:16:21 UTC
apcupsd-3.14.4-2.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.