Bug 430907 - RFE: support for exfatprogs
Summary: RFE: support for exfatprogs
Status: RESOLVED FIXED
Alias: None
Product: partitionmanager
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Andrius Štikonas
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-28 16:43 UTC by Mattia
Modified: 2020-12-28 17:54 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 21.04.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia 2020-12-28 16:43:11 UTC
It would be nice to have kpmcore support for exfatprogs now that Linux Kernel has exfat support.
Though, I don't know if it can co-exist alongside with exfat-utils support or one exclude the other. For example, they share the same `mkfs.exfat`, but I don't know if the two implementations use the same syntax. 

Fedora cannot ship exfat-utils, but has recently gained exfatprogs in its repos.
Comment 1 Andrius Štikonas 2020-12-28 16:57:26 UTC
In principle I think they can coexist. 

It would be sligthly messy but definitely doable.
My distro is already shipping exfatprogs.
Comment 2 Andrius Štikonas 2020-12-28 17:10:30 UTC
(In reply to Mattia from comment #0)
> It would be nice to have kpmcore support for exfatprogs now that Linux
> Kernel has exfat support.
> Though, I don't know if it can co-exist alongside with exfat-utils support
> or one exclude the other. For example, they share the same `mkfs.exfat`, but
> I don't know if the two implementations use the same syntax. 
> 
> Fedora cannot ship exfat-utils, but has recently gained exfatprogs in its
> repos.

Slightly unfortunately, mkfs.exfat do not share the same syntax. They use completely different command line arguments.

I guess I need to detect which one it is by checking commands line flags in mkfs.exfat output.
Comment 3 Andrius Štikonas 2020-12-28 17:20:21 UTC
(In reply to Andrius Štikonas from comment #2)
> (In reply to Mattia from comment #0)
> > It would be nice to have kpmcore support for exfatprogs now that Linux
> > Kernel has exfat support.
> > Though, I don't know if it can co-exist alongside with exfat-utils support
> > or one exclude the other. For example, they share the same `mkfs.exfat`, but
> > I don't know if the two implementations use the same syntax. 
> > 
> > Fedora cannot ship exfat-utils, but has recently gained exfatprogs in its
> > repos.
> 
> Slightly unfortunately, mkfs.exfat do not share the same syntax. They use
> completely different command line arguments.
> 
> I guess I need to detect which one it is by checking commands line flags in
> mkfs.exfat output.

There is an easier way to distinguish those.

exfat-utils install mkexfatfs and then symlink it to mkfs.exfat while exfatprogs install mkfs.exfat directly.
Comment 4 Andrius Štikonas 2020-12-28 17:54:28 UTC
Fixed in

https://invent.kde.org/system/kpmcore/-/commit/06f15334ecfbe871730a90dbe2b694ba060ee998

That was easier than I thought...

Keep in mind that you can't just backport this to stable branch because this commit adds a new private member to non d-pointerized class, so this breaks ABI. In master SOVERSION was already bumped from 10 to 11 in some earlier commit.