unpushed

ocsinventory-agent-2.6.0-2.el7

FEDORA-EPEL-2019-c8a7cb01ef created by jcpunk 4 years ago for Fedora EPEL 7

Return OCS Inventory Agent to EPEL7

This update has been submitted for testing by jcpunk.

4 years ago

This update's test gating status has been changed to 'waiting'.

4 years ago

This update's test gating status has been changed to 'ignored'.

4 years ago

This update has been pushed to testing.

4 years ago
User Icon nerijus commented & provided feedback 4 years ago
karma

After systemctl enable --now ocsinventory-agent in /var/log/ocsinventory-agent/ocsinventory-agent.log:

[Wed 27 Nov 2019 12:43:21 AM EET] Running ocsinventory-agent --wait 100 --lazy --nolocal --server=... Failed to load Ocsinventory::Agent, syntax error at /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm line 56, near "};" Compilation failed in require at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33. BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/Ocsinventory/Agent.pm line 33. Compilation failed in require at (eval 1) line 1. BEGIN failed--compilation aborted at (eval 1) line 1.

Bodhi is disabling automatic push to stable due to negative karma. The maintainer may push manually if they determine that the issue is not severe.

4 years ago
User Icon nerijus commented & provided feedback 4 years ago
karma

I use the following patch for this error: --- Ocsinventory-Unix-Agent-2.6.0.orig/lib/Ocsinventory/Agent/Network.pm 2018-07-28 18:27:52.000000000 +0300 +++ Ocsinventory-Unix-Agent-2.6.0/lib/Ocsinventory/Agent/Network.pm 2019-07-02 09:31:55.271132600 +0300 @@ -49,13 +49,11 @@ my $version = 'OCS-NG_unified_unix_agent_v'; $version .= exists ($self->{config}->{VERSION})?$self->{config}->{VERSION}:''; $self->{ua}->agent($version); - $self->{config}->{user}.",". - my $password = $self->{config}->{password}.""; $self->{ua}->credentials( $uaserver, # server:port, port is needed $self->{config}->{realm}, $self->{config}->{user}, - $password, + $self->{config}->{password}, );

 #Setting SSL configuration depending on LWP version
User Icon nerijus commented & provided feedback 4 years ago
karma
--- Ocsinventory-Unix-Agent-2.6.0.orig/lib/Ocsinventory/Agent/Network.pm        2018-07-28 18:27:52.000000000 +0300
+++ Ocsinventory-Unix-Agent-2.6.0/lib/Ocsinventory/Agent/Network.pm     2019-07-02 09:31:55.271132600 +0300
@@ -49,13 +49,11 @@
     my $version = 'OCS-NG_unified_unix_agent_v';
     $version .= exists ($self->{config}->{VERSION})?$self->{config}->{VERSION}:'';
     $self->{ua}->agent($version);
-    $self->{config}->{user}.",".
-    my $password = $self->{config}->{password}."";
     $self->{ua}->credentials(
         $uaserver, # server:port, port is needed
         $self->{config}->{realm},
         $self->{config}->{user},
-        $password,
+        $self->{config}->{password},
     );

     #Setting SSL configuration depending on LWP version
User Icon nerijus commented & provided feedback 4 years ago
karma

You use the similar patch, but you have extra ; at the end of the line $self->{config}->{password};. If I remove ; then it works.

This update has been unpushed.

Yes, it fixes, but a small thing - package contains file /usr/share/perl5/vendor_perl/Ocsinventory/Agent/Network.pm.orig, which should probably be removed.


Please login to add feedback.

Metadata
Type
newpackage
Karma
-1
Signed
Content Type
RPM
Test Gating
Settings
Unstable by Karma
-3
Stable by Karma
disabled
Stable by Time
disabled
Dates
submitted
4 years ago
in testing
4 years ago

Automated Test Results