Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677252 - app-forensics/sleuthkit-4.6.5 enforce static compilation of bundled libraries
Summary: app-forensics/sleuthkit-4.6.5 enforce static compilation of bundled libraries
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Göktürk Yüksek
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-04 14:01 UTC by Anton Bolshakov
Modified: 2019-06-05 18:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
compile bundled libewf with bundled libc* libraries (patch,627 bytes, patch)
2019-02-04 14:01 UTC, Anton Bolshakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Bolshakov 2019-02-04 14:01:31 UTC
Created attachment 563714 [details, diff]
compile bundled libewf with bundled libc* libraries

Hello,

I have ported libewf with split libc* libraries into Pentoo linux and everyting works great.

However, the required bundled (badly outdated) libewf library fails to compile within sleuthkit since it can find a more recent version.

The workaround is to force libewf not to look for external libraries.

It would help a lot if you could accept the patch even if it does not affect Gentoo (at least for now).
Comment 1 Anton Bolshakov 2019-02-04 14:05:29 UTC
After the patch, the configuration output for libewf will change to the following:

   libcstring support:                              local
   libcerror support:                               local
   libcdata support:                                local
   libclocale support:                              local
   libcnotify support:                              local
   libcsplit support:                               local
   libuna support:                                  local
   libcfile support:                                local
   libcpath support:                                local
   libbfio support:                                 local
   libfcache support:                               local
   libfvalue support:                               local
   libmfdata support:                               local


it was "yes" against a relevant libc* library if it is installed as a system-wide share library.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2019-02-04 16:47:09 UTC
Comment on attachment 563714 [details, diff]
compile bundled libewf with bundled libc* libraries

That looks like a terrible idea.
Comment 3 Anton Bolshakov 2019-02-05 00:50:11 UTC
Please justify your point so we could start a dialogue here
Comment 4 Anton Bolshakov 2019-02-05 01:03:27 UTC
just in case if you misinterpreted the "no" value, it means "use the local version" which is the expected logic currently:

  --with-libcstring[=DIR] search for libcstring in includedir and libdir or in                                             
                          the specified DIR, or no if to use local version                                                 
                          [default=auto-detect]  

The libewf snapshot has all libc* in the archive. My patch just enforces it in case if more decent and incompatible dependencies of libewf are present (they will be detected by default).
Comment 5 Anton Bolshakov 2019-04-28 00:02:46 UTC
ping?
Comment 6 Larry the Git Cow gentoo-dev 2019-06-05 00:02:41 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8aeaed593df450e9284c3ff97c4d4d3f3f0fb56

commit d8aeaed593df450e9284c3ff97c4d4d3f3f0fb56
Author:     Göktürk Yüksek <gokturk@gentoo.org>
AuthorDate: 2019-06-05 00:01:59 +0000
Commit:     Göktürk Yüksek <gokturk@gentoo.org>
CommitDate: 2019-06-05 00:01:59 +0000

    app-forensics/sleuthkit: force libewf to link against local deps
    
    We bundle a legacy version of libewf since that's the only version the
    upstream officially supports. It should link against the cross
    platform libc* libraries supplied in the tarball and not use the
    system ones. Currently, this has no visible impact for Gentoo users as
    aformentioned libraries do not exist in the tree yet.
    
    Suggested-by: Anton Bolshakov <blshkv@pentoo.ch>
    Closes: https://bugs.gentoo.org/677252
    Package-Manager: Portage-2.3.67, Repoman-2.3.12
    Signed-off-by: Göktürk Yüksek <gokturk@gentoo.org>

 app-forensics/sleuthkit/sleuthkit-4.6.5.ebuild | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Comment 7 Anton Bolshakov 2019-06-05 01:15:24 UTC
great, thank you
Comment 8 Göktürk Yüksek archtester gentoo-dev 2019-06-05 18:28:56 UTC
(In reply to Anton Bolshakov from comment #7)
> great, thank you

Sorry for the delay