Bug#925590: fai-client: remove "libfile-lchown-perl" dependency from fcopy

2019-03-28 Thread Thomas Lange
lchown is only needed if a symlink needs to be changed.
One option would be to add some code which does only loads this perl
module if we have a symlink.

This conditional loading of a Perl package can be done using
eval "require File::lchown"

If this fails, we cannot load the package, but the script itself does
not fail.
-- 
regards Thomas



Bug#925590: fai-client: remove "libfile-lchown-perl" dependency from fcopy

2019-03-27 Thread Reiner Schulz
Package: fai-client
Version: 5.3.6
Severity: wishlist

Dear Thomas,

   We like to update "fai-client" on our RHEL7 Servers to the latest version,  
but since 
   fai 5.3.5 there is a dependency to "libfile-lchown-perl", which is not 
available 
   on RHEL7, EPEL or CentOS7.
   
   Functions of "libfile-lchown-perl" are only used two times  in fcopy. (line 
377 and 379)
   
   Building File::lchown from CPAN and deploy to 400 Servers is not ISO/IEC 
27001 like.

   Please find another solution and remove lchown from fcopy.

-- System Information:
Debian Release: 9.7
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-8-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages fai-client depends on:
ii  debconf-utils1.5.61
ii  file 1:5.30-1+deb9u2
ii  iproute2 4.9.0-1+deb9u1
ii  libapt-pkg-perl  0.1.32
ii  libfile-lchown-perl  0.02-2+b2
ii  perl 5.24.1-3+deb9u5

Versions of packages fai-client recommends:
ii  libgraph-perl  1:0.96-2

Versions of packages fai-client suggests:
pn  logtail  

-- Configuration Files:
/etc/fai/fai.conf changed [not included]

-- no debconf information