Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 701698

Summary: sys-fs/encfs-1.9.5 - CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find FUSE (missing: FUSE_INCLUDE_DIR FUSE_LIBRARIES)
Product: Gentoo Linux Reporter: Mats Lidell <matsl>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: adborden, asturm, firefly_dude0k, help, ionen, nanikata15, ruanzhijie, sam
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/17755
https://github.com/gentoo/gentoo/pull/17756
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 828007    
Bug Blocks:    
Attachments: emerge info
emerge package info
build.log
require fuse slot 0 patch

Description Mats Lidell gentoo-dev 2019-12-01 22:03:03 UTC
sys-fs/encfs-1.9.5: Build fails in testing due to "Can not find FUSE" since the ebuild depends on sys-fs/fuse:= which drags in fuse-3.8.0 that is not compatible with earlier versions of fuse.

 

Reproducible: Always

Steps to Reproduce:
1. emerge --sync and emerge world dragging in latest fuse-3.8.0
2. emerge --deplean which removes older versions of fuse
3. revdep-rebuild due to encfs missing fuse libraries



# equery g encfs
 * Searching for encfs ...

 * dependency graph for sys-fs/encfs-1.9.5
 `--  sys-fs/encfs-1.9.5  amd64 
   `--  dev-libs/openssl-1.1.1d-r3  (dev-libs/openssl) ~amd64 
   `--  dev-libs/libressl-3.0.2  (dev-libs/libressl) ~amd64 
   `--  dev-libs/tinyxml2-7.1.0  (dev-libs/tinyxml2) ~amd64 
   `--  sys-fs/fuse-3.8.0  (sys-fs/fuse) ~amd64 
   `--  sys-libs/zlib-1.2.11-r2  (sys-libs/zlib) amd64 
   `--  dev-lang/perl-5.30.1  (dev-lang/perl) ~amd64 
   `--  sys-devel/gettext-0.20.1  (sys-devel/gettext) ~amd64 
   `--  virtual/pkgconfig-1  (virtual/pkgconfig) ~amd64 
   `--  sys-devel/make-4.2.1-r4  (sys-devel/make) ~amd64 
   `--  dev-util/cmake-3.16.0  (>=dev-util/cmake-3.9.6) ~amd64 
[ sys-fs/encfs-1.9.5 stats: packages (11), max depth (1) ]
Comment 1 Mats Lidell gentoo-dev 2019-12-01 22:04:27 UTC
Created attachment 598172 [details]
emerge info
Comment 2 Mats Lidell gentoo-dev 2019-12-01 22:05:23 UTC
Created attachment 598174 [details]
emerge package info
Comment 3 Mats Lidell gentoo-dev 2019-12-01 22:09:34 UTC
Created attachment 598176 [details]
build.log
Comment 4 nanikata15 2020-04-27 02:21:18 UTC
There is an issue from 2018 on the encfs github [1] about supporting fuse3, but I'm not sure about the current state. There's also a recent merged PR [2] improving fuse detection, but this doesn't appear to be related fuse3. I've manually set some flags to bypass detection and force the use of fuse3, but the emerge failed. It appears encfs is setting FUSE_USE_VERSION=29, so no fuse3 support? In any case, since fuse2 is still in portage and is slotted, modifying the RDEPEND to "sys-fs/fuse:0=" pulled in fuse2 for me and gave me back a working system.

[1] https://github.com/vgough/encfs/issues/495
[2] https://github.com/vgough/encfs/pull/591
Comment 5 Andreas Sturmlechner gentoo-dev 2020-06-04 21:03:41 UTC
ping
Comment 6 Ionen Wolkens gentoo-dev 2020-09-10 01:15:10 UTC
Created attachment 659344 [details, diff]
require fuse slot 0 patch

I don't use this but seen a user hit this issue, didn't check upstream situation but in this version it's a simple matter of depending on fuse:0=, can this please be checked already?

Attaching a simple patch, but maybe(?) a revbump is preferable.
Comment 7 Larry the Git Cow gentoo-dev 2020-12-30 18:22:50 UTC
The bug has been closed via the following commit(s):

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

commit 7c716703c7dc46510fefc8fdb5deaa324f7645cd
Author:     Hank Leininger <hlein@korelogic.com>
AuthorDate: 2020-10-03 01:48:06 +0000
Commit:     Anthony G. Basile <blueness@gentoo.org>
CommitDate: 2020-12-30 18:21:17 +0000

    sys-fs/encfs: fix fuse slot, eapi 7, cmake-utils -> cmake
    
    encfs is not compatible with fuse-3.x, so we need to specify a slot
    with which it is compatible. Also bumped to EAPI 7 while I was
    touching it, and migrated from deprecated cmake-utils.eclass
    to cmake.eclass.
    
    Also, recent cmake-utils / cmake eclasses turn on shared libs, but
    encfs' build system does the wrong thing for libencfs.so, so turn
    that knob back off.
    
    Signed-off-by: Hank Leininger <hlein@korelogic.com>
    Closes: https://bugs.gentoo.org/701698
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: Anthony G. Basile <blueness@gentoo.org>

 sys-fs/encfs/encfs-1.9.5-r1.ebuild | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)
Comment 8 Andreas Sturmlechner gentoo-dev 2021-12-02 11:33:14 UTC
(In reply to Larry the Git Cow from comment #7)
>     Also, recent cmake-utils / cmake eclasses turn on shared libs, but
>     encfs' build system does the wrong thing for libencfs.so, so turn
>     that knob back off.
Build system should be fixed instead.
Comment 9 Larry the Git Cow gentoo-dev 2021-12-07 06:56:59 UTC
The bug has been closed via the following commit(s):

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

commit 5d2b69ad3b74a4b44b160e8ac93c8d6fa426624d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-07 06:55:27 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-07 06:56:52 +0000

    sys-fs/encfs: install libencfs, link dynamically
    
    We need to install libencfs if we're going to link dynamically
    against it.
    
    Closes: https://bugs.gentoo.org/701698
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/encfs/encfs-1.9.5-r2.ebuild | 43 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
Comment 10 Larry the Git Cow gentoo-dev 2021-12-07 07:07:12 UTC
The bug has been referenced in the following commit(s):

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

commit ce1702840be1c3cb5fdb8adc28c0804f42df2f8d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-12-07 07:06:53 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-07 07:06:57 +0000

    sys-fs/encfs: drop 1.9.5 (cmake-utils--, EAPI 6--)
    
    Bug: https://bugs.gentoo.org/701698
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/encfs/encfs-1.9.5.ebuild | 39 ---------------------------------------
 1 file changed, 39 deletions(-)