Bug 10542 - dar no longer compiled against Liblzo2
Summary: dar no longer compiled against Liblzo2
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 3
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Bruno Cornec
QA Contact:
URL:
Whiteboard:
Keywords: Triaged
Depends on:
Blocks:
 
Reported: 2013-06-16 09:39 CEST by Glen Ogilvie
Modified: 2014-07-04 01:25 CEST (History)
1 user (show)

See Also:
Source RPM: dar-2.4.2-3.mga3.src.rpm
CVE:
Status comment:


Attachments

Description Glen Ogilvie 2013-06-16 09:39:21 CEST
/usr/bin/dar -V

Mageia 2:

 dar version 2.4.7, Copyright (C) 2002-2052 Denis Corbin
   Long options support       : YES

 Using libdar 5.2.4 built with compilation time options:
   Libz compression (gzip)    : YES
   Libbz2 compression (bzip2) : YES
   Liblzo2 compression (lzo)  : YES
   Strong encryption          : YES
   Extended Attributes support: YES
   Large files support (> 2GB): YES
   ext2fs NODUMP flag support : NO
   Special allocation scheme  : YES
   Integer size used          : unlimited
   Thread safe support        : YES
   Furtive read mode support  : YES
   Detected system/CPU endian : little
   Large dir. speed optimi.   : YES

 compiled the Aug 29 2012 with GNUC version 4.6.3
 dar is part of the Disk ARchive suite (Release 2.4.7)
 dar comes with ABSOLUTELY NO WARRANTY; for details
 type `dar -W'. This is free software, and you are welcome
 to redistribute it under certain conditions; type `dar -L | more'
 for details.


Mageia 3:
dar version 2.4.2, Copyright (C) 2002-2052 Denis Corbin
   Long options support       : YES

 Using libdar 5.1.1 built with compilation time options:
   Libz compression (gzip)    : YES
   Libbz2 compression (bzip2) : YES
   Liblzo2 compression (lzo)  : NO
   Strong encryption          : NO
   Extended Attributes support: YES
   Large files support (> 2GB): YES
   ext2fs NODUMP flag support : YES
   Special allocation scheme  : YES
   Integer size used          : unlimited
   Thread safe support        : YES
   Furtive read mode support  : YES
   Detected system/CPU endian : little

 compiled the Jan 11 2013 with GNUC version 4.7.2
 dar is part of the Disk ARchive suite (Release 2.4.2)
 dar comes with ABSOLUTELY NO WARRANTY; for details
 type `dar -W'. This is free software, and you are welcome
 to redistribute it under certain conditions; type `dar -L | more'
 for details.



This prevents people from using backups that where created and compresses using dar on Mageia2.


This looks like a missing buildrequires for liblzo-devel
Strong encryption should also be enabled.
Glen Ogilvie 2013-06-16 09:39:49 CEST

Source RPM: (none) => dar-2.4.2-3.mga3.src.rpm

Comment 1 Glen Ogilvie 2013-06-16 10:29:10 CEST
for strong encryption: Buildrequires libgcrypt-devel  

however, if this library is installed, the dar static component won't build.

BUILD/dar-2.4.2
--------------------------
Error:
grep -e -static -A 2 config.log
configure:11208: checking if gcc static flag -static works
configure:11236: result: yes
configure:11246: checking if gcc supports -c -o file.o
--
configure:16057: checking if g++ static flag -static works
configure:16085: result: yes
configure:16095: checking if g++ supports -c -o file.o
--
configure:31798: g++ -o conftest -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC  -static conftest.cpp -lpthread -lattr -lgcrypt -lgpg-error -llzo2 -lbz2 -lz -ldl  >&5
/usr/bin/ld: cannot find -lgcrypt
/usr/bin/ld: cannot find -lgpg-error



------------------------------

/SPECS/log.dar 

dar and libdar have been successfully configured with the following parameters:

  LIBDAR parameters:
   Zlib compression (gzip)    : YES
   Libbz2 compression (bzip2) : YES
   Liblzo2 compression (lzo)  : YES
   Strong encryption support  : YES
   Extended Attributes support: YES
   Large files support (> 2GB): YES
   ext2fs NODUMP flag support : YES
   Special allocation scheme  : YES
   Integer size used          : infinint
   Thread safe support        : YES
   Furtive read mode          : YES

  DAR SUITE command line programs:
   Long options available : YES
   Building examples      : NO
   Building dar_static    : NO  (system does not support static linking, see note below)
   using upx at install   : NO
   building documentation : YES

  Note:

    If  you  want to know  which libraries  are not available  as  static
    libraries check the logs in the config.log generated file. the command

         'grep -e -static -A 2 config.log'

    should bring you to the essentials.

You also might want to speed up the compilation process running ./configure
with the --disable-shared option
Comment 2 Jani Välimaa 2013-06-17 15:51:18 CEST
I've updated dar to latest version, updated missing BRs and disabled the static build as we don't have all required static devel pkgs to build static version anymore.

CC: (none) => jani.valimaa

Comment 3 Jani Välimaa 2013-06-17 16:05:58 CEST
(In reply to Jani Välimaa from comment #2)
> I've updated dar to latest version, updated missing BRs and disabled the
> static build as we don't have all required static devel pkgs to build static
> version anymore.

Of course this is for Cauldron. Have to check mga3 build later.
Comment 4 Jani Välimaa 2013-06-17 16:17:55 CEST
Btw, mga2 and mga3 ships with dar 2.4.2. Your paste shows you have 2.4.7 in mga2, so it's not from official repos.

Only thing mga3 dar differs with one from mga2 is "ext2fs NODUMP flag support". It's disabled in mga2, but enabled in mga3. So there's no real regression between official releases.
Comment 5 Glen Ogilvie 2013-06-18 06:02:48 CEST
Sorry, maybe I had recompiled dar on Mageia 2 and forgotten that I had. 

Thank you for adding the build requires. 

I've been using the 2.4.7 on my Mageia 2 instance for some time, it proved stable.   I see that current release is 2.4.10.. So if cauldron can go to that it would be nice.  


How difficult is it to build the needed static lib, so that dar can be compiled static?    I am not sure, but is it just gcrypt and gpg that we would need static dev libs for?

I can see the occasional use case for the static version, where people are wanting to do a system restore.
Manuel Hiebel 2013-07-09 09:20:05 CEST

Keywords: (none) => Triaged
Assignee: bugsquad => bruno

Comment 6 Bruno Cornec 2014-01-26 12:02:21 CET
Upstream is now 2.4.11. I've updated dar to this version and will ask t to pushed into mga4 to close this bug.

Status: NEW => ASSIGNED

Comment 7 Bruno Cornec 2014-03-23 15:59:07 CET
mga4 has it. Can we close it ?
Comment 8 Bruno Cornec 2014-07-04 01:25:37 CEST
Fixed IMO now.

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.