Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 602360 - sys-fs/ntfs3g-2016.2.22-r1 automagic dependency on libhd from sys-apps/hwinfo
Summary: sys-fs/ntfs3g-2016.2.22-r1 automagic dependency on libhd from sys-apps/hwinfo
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-11 18:03 UTC by Dmitriy
Modified: 2019-03-23 12:59 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitriy 2016-12-11 18:03:59 UTC
ntfs3g-2016.2.22-r1 ebuild bug

After installing ntfs3g-2016.2.22-r1 not mounted ntfs volume.
No libhd.so.21

It works after installing hwinfo:
emerge -va hwinfo
Comment 1 Mike Gilbert gentoo-dev 2016-12-11 18:43:00 UTC
From configure:

  --with-hd[=PFX]         use Windows compliant disk geometry, with optional
                          prefix to hd library and headers [default=detect]
Comment 2 Pacho Ramos gentoo-dev 2019-02-26 17:20:15 UTC
In my case I hit this seenf mkntfs failing with:
[444345.842171] mkntfs[17123]: segfault at 7ffee446d000 ip 00007f25a38a3639 sp 00007ffee446aab0 error 4 in libhd.so.21.23[7f25a3883000+a0000]
[444345.842174] Code: 53 48 83 ec 08 85 d2 0f 84 d4 00 00 00 44 8d 6a ff 48 89 cd 4c 8d 3d 15 8e 03 00 31 db 49 83 c5 01 48 85 db 0f 84 d7 00 00 00 <0f> b6 4c 1d 00 be fe ff ff ff 4c 89 e7 31 c0 48 8d 15 ef 8d 03 00

When calling it like mkntfs -Q -v -F -L "4GB-Pendrive" /dev/sdc1
Comment 3 Pacho Ramos gentoo-dev 2019-02-26 17:21:03 UTC
Removing hwinfo completely allows it to work ok (and also mounting works)
Comment 4 Pacho Ramos gentoo-dev 2019-02-26 17:33:41 UTC
But in other distributions they are not pulling hwinfo as dependency for that hd.h header... maybe it's a different package the one providing that header for "Windows compliant geometry code requires the hd library". 

In any case, for me ntfs3g works fine without that header at all :/
Comment 5 Larry the Git Cow gentoo-dev 2019-03-23 12:59:04 UTC
The bug has been referenced in the following commit(s):

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

commit e97a616356b7dccec15d1c5be2c2c861afa160fa
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2019-03-23 12:58:31 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2019-03-23 12:58:49 +0000

    sys-fs/ntfs3g: Support Windows 10, fix automagic dep...
    
    - Apply Fedora fixes, this also adds support for windows 10 (#660374)
    - Prevent it from wrongly linking to hwinfo (#602360)
    - udev rule is not needed and causes issues (#635080)
    
    Closes: https://bugs.gentoo.org/660374
    Closes: https://bugs.gentoo.org/635080
    Bug: https://bugs.gentoo.org/602360
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 .../files/ntfs3g-2017.3.23-big-sectors.patch       | 379 +++++++++++++++++++++
 .../files/ntfs3g-2017.3.23-check-mftmirr.patch     |  12 +
 .../files/ntfs3g-2017.3.23-full-clusters.patch     |  81 +++++
 sys-fs/ntfs3g/ntfs3g-2017.3.23-r2.ebuild           | 103 ++++++
 4 files changed, 575 insertions(+)