Mac OS X package in downloads section has broken Compress::Zlib

Bug #736511 reported by Nick Phillips
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OCS Inventory: Unified Unix Agent
Opinion
Low
mortheres

Bug Description

Not strictly a bug in the agent, but the packaged version of the Agent on the OCS Inventory website contains a broken version of Compress::Zlib, causing the agent to fail on OS X 10.5 and older when used with a server that can't handle gzip compression.

The Compress::Zlib package is *not* pure perl in v2 and above, but the portions of it that are packaged with the agent only contain the perl parts of it. It also requires Compress::Raw::Zlib, which is not included. The result of this is that the agent cannot use Compress::Zlib on systems which don't already gave Compress::Raw::Zlib available.

On systems that *do* have Compress::Zlib::Raw available, there is no need to include Compress::Zlib at all. On systems that don't, you may be preventing them from using a perfectly adequate (older) version of Compress::Zlib that does not use Compress::Raw::Zlib.

You either need to remove Compress::Zlib from the package altogether (and accept that the agent will not work with non-gzip-aware servers on systems that don't have Compress::Zlib), or include a complete (probably older - I don't think Compress::Zlib v1.x needed any extras) version of Compress::Zlib in the package.

Cheers,

Nick

mortheres (mortheres)
Changed in ocsinventory-unix-agent:
assignee: nobody → mortheres (mortheres)
importance: Undecided → Low
Revision history for this message
mortheres (mortheres) wrote :

Hi Nick,

Thanks a lot for your report. We will keep your report in mind when we will provide the new packaged MacOSX agent 2.0 . We will make test but I think the better solution will be to include an older Compress::Zlib in OCSNG.app to make it works with all the systems. OCSNG.app will use the perl modules which are in its current "lib" directory and so may not be in conflict with another Compress:Zlib (newer) module installed on system.

We will make tests and choose the better solution for this problem :) :).

Kind regards,

Guillaume

Changed in ocsinventory-unix-agent:
status: New → Opinion
Revision history for this message
Nick Phillips (nick-phillips) wrote :

Oh, workaround in the meantime is to use CPAN to install Compress::Zlib on the system the agent is installed on.

Revision history for this message
Nick Phillips (nick-phillips) wrote :

Sorry, one more thing - I didn't realise, but the binary libraries seem to get built as "bundles" with support for multiple architectures, so using newer Compress::Zlib may well be possible (by including the binary parts as well as the perl parts in the package).

Cheers,

Nick

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.