Hello, yesterday I figured out, that the ebuild for apcupsd in the current tree (version 3.10.13) doesn't honour virtual/snmp, but instead merges net-snmp, if snmp is in the use flags. This caused me some trouble since we have net-snmpd running and the two aren't compatible in their commandline-switches. Thus, I tried to set the dependency to virtual/snmp and in addition updated the ebuild to the current stable version of apcupsd (3.10.14). After removing the ucd-snmp.patch, everything works fine to me on ~x86. Anyhow, this almost certainly breaks compatibility with ucd-snmp. So, would someone please test this and perhaps contribute a patch that finds out, whether we have ucd-snmp or net-snmp... Thanks in advance! Regards, Torsten
Created attachment 36706 [details] The new ebuild. Additionally, the files from $PORTDIR/sys-apps/apcupsd/files/3.10.13 have to be copied to $PORTDIR/sys-apps/apcupsd/files/3.10.14
Sorry folks, I had a typo in the description: Of course I wanted to say, that the old ebuild merges UCD-snmp, not NET-snmp. In fact, ucd-snmp overwrote my installation of net-snmp, which was the cause of all my troubles. Regards, Torsten
Any suggestion how to handle this? Is it possible to aply the patch only if ucd-snmp is installed already?
I bumped the version some days ago. Now i bumped to .15-r1, which DEPENDs on virtual/snmp. If that dependency is fullfilled by ucd-snmp the ebuild will apply the patch. If not it won't patch and should work for you. Please test it and report back if it works as intended.