Skip to contentSkip to conversation

exfatprogs: add new recipe

PATCH Superseded [email protected] 2 participants 5 messages Mar 28, 2023

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 exfatprogs: add new recipe

From: Christophe Vu-Brugier <[email protected]>

exfatprogs provides utilities to create, modify, and check exFAT file systems on Linux. The developers of exfatprogs also maintain the Linux kernel exFAT driver.

exfatprogs has replaced exfat-utils in Debian bookworm.

References:
* https://github.com/exfatprogs/exfatprogs/
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002871

---
 .../exfatprogs/exfatprogs_1.2.0.bb            | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.0.bb
meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.0.bb new file +23 -0
new file mode 100644
index 000000000..0b26a215b
@@ -0,0 +1,23 @@
+SUMMARY = "exFAT filesystem userspace utilities"
+DESCRIPTION = "\
+As new exfat filesystem is merged into linux-5.7 kernel, exfatprogs is \
+created as an official userspace utilities that contain all of the standard \
+utilities for creating and fixing and debugging exfat filesystem in linux \
+system. The goal of exfatprogs is to provide high performance and quality \
+at the level of exfat utilities in windows. And this software is licensed \
+under the GNU General Public License Version 2."
+HOMEPAGE = "https://github.com/${BPN}/${BPN}"
+SECTION = "universe/otherosfs"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz"
+SRC_URI[sha256sum] = "56d9a49465deafc367d428afc71c8098705a30ee19a3cdf3c5320650b8880742"
+
+UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
+UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"
+
+inherit autotools
+
+RCONFLICTS:${PN} = "exfat-utils"
+RREPLACES:${PN} = "exfat-utils"
Signature · 1 line
2.39.2
#1 lore raw

PATCH 2/2 exfat-utils: remove recipe

From: Christophe Vu-Brugier <[email protected]>

exfat-utils is superseded by exfatprogs.

---
 .../exfat-utils/exfat-utils_1.3.0.bb          | 24 -------------------
 1 file changed, 24 deletions(-)
 delete mode 100644 meta-filesystems/recipes-utils/exfat-utils/exfat-utils_1.3.0.bb
meta-filesystems/recipes-utils/exfat-utils/exfat-utils_1.3.0.bb deleted +0 -24
deleted file mode 100644
index abb8fece3..000000000
@@ -1,24 +0,0 @@
-SUMMARY = "utilities to create, check, label and dump exFAT filesystem"
-DESCRIPTION = "Utilities to manage extended file allocation table filesystem. \
-This package provides tools to create, check and label the filesystem. It \
-contains \
- - dumpexfat to dump properties of the filesystem \
- - exfatfsck / fsck.exfat to report errors found on a exFAT filesystem \
- - exfatlabel to label a exFAT filesystem \
- - mkexfatfs / mkfs.exfat to create a exFAT filesystem. \
-"
-HOMEPAGE = "https://github.com/relan/exfat"
-SECTION = "universe/otherosfs"
-LICENSE = "GPL-2.0-only"
-LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
-
-SRC_URI = "https://github.com/relan/exfat/releases/download/v${PV}/${BP}.tar.gz"
-
-UPSTREAM_CHECK_URI = "https://github.com/relan/exfat/releases"
-
-DEPENDS = "virtual/libc"
-
-inherit pkgconfig autotools
-
-SRC_URI[md5sum] = "f8928571b152455e828ca0bd42af8b73"
-SRC_URI[sha256sum] = "dfebd07a7b907e2d603d3a9626e6440bd43ec6c4e8c07ccfc57ce9502b724835"
Signature · 1 line
2.39.2
#2 lore raw
In reply to [email protected]

Do we need
RPROVIDES:${PN} = "exfat-utils"
as well?

It used to be necessary for automatic update from one package to its replacement at least with opkg (I haven't tried on target migrations for quite some time now).

Quoted 70 lines · Christophe Vu-Brugier

From: Christophe Vu-Brugier <[email protected]>

exfatprogs provides utilities to create, modify, and check exFAT file systems on Linux. The developers of exfatprogs also maintain the Linux kernel exFAT driver.

exfatprogs has replaced exfat-utils in Debian bookworm.

References:
* https://github.com/exfatprogs/exfatprogs/
* https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1002871

---
 .../exfatprogs/exfatprogs_1.2.0.bb            | 23 +++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-filesystems/recipes-utils/exfatprogs/

exfatprogs_1.2.0.bb

meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.0.bb new file +4 -0
new file mode 100644
index 000000000..0b26a215b
@@ -0,0 +1,23 @@
+SUMMARY = "exFAT filesystem userspace utilities"
+DESCRIPTION = "\
+As new exfat filesystem is merged into linux-5.7 kernel, exfatprogs is \
+created as an official userspace utilities that contain all of the

standard \
+utilities for creating and fixing and debugging exfat filesystem in linux \
+system. The goal of exfatprogs is to provide high performance and quality \
+at the level of exfat utilities in windows. And this software is licensed \

meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.0.bb new file +7 -0
+under the GNU General Public License Version 2."
+HOMEPAGE = "https://github.com/${BPN}/${BPN}"
+SECTION = "universe/otherosfs"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
+
+SRC_URI = "

https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BP}.tar.xz"
+SRC_URI[sha256sum] = "56d9a49465deafc367d428afc71c8098705a30ee19a3cdf3c5320650b8880742"

meta-filesystems/recipes-utils/exfatprogs/exfatprogs_1.2.0.bb new file +8 -1
+
+UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
+UPSTREAM_CHECK_REGEX = "${BPN}-(?P<pver>\d+(\.\d+)+)"
+
+inherit autotools
+
+RCONFLICTS:${PN} = "exfat-utils"
+RREPLACES:${PN} = "exfat-utils"
--

2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#101798):
https://lists.openembedded.org/g/openembedded-devel/message/101798
Mute This Topic: https://lists.openembedded.org/mt/97900208/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

Hi Martin,

Thank you for your code review.

Martin Jansa wrote :

Quoted 3 lines

Do we need
RPROVIDES:${PN} = "exfat-utils"
as well?

I hesitated on this one.

While exfatprogs provides the same tools as exfat-utils, there are a few differences.
1. In exfat-utils, mkfs.exfat is a symlink to mkexfatfs ; exfatprogs does not provide mkexfatfs.
2. Some options have different names. For instance, exfat-utils uses "-n" to set the volume label whereas exfatprogs uses "-L" (like e2fsprogs, xfsprogs).

How do we convey the message that "exfatprogs replaces exfat-utils but is not 100% compatible"?

Also, I believe that exfatprogs is better than exfat-utils.
For instance, exfatprogs correctly format drives whose sector size is 4096 bytes whereas exfat-utils does not.

With best regards,

--
Christophe Vu-Brugier

#4 lore raw
Quoted 8 lines · Christophe Vu-Brugier

While exfatprogs provides the same tools as exfat-utils, there are a few differences.
1. In exfat-utils, mkfs.exfat is a symlink to mkexfatfs ; exfatprogs
does not provide mkexfatfs.
2. Some options have different names. For instance, exfat-utils uses "-n"
to set the volume label whereas exfatprogs uses "-L" (like e2fsprogs, xfsprogs).

Quoted 7 lines

How do we convey the message that "exfatprogs replaces exfat-utils but is not 100% compatible"?

Also, I believe that exfatprogs is better than exfat-utils. For instance, exfatprogs correctly format drives whose sector size is 4096 bytes whereas exfat-utils does not.

In 2/2 you've removed exfat-utils so users of exfat-utils will have to deal with this one way or another.

Otherwise existing images will stay "stuck" with some old version of exfat-utils and package manager won't "update" them to exfatprogs.

So it might be tricky, but if you're confident enough to remove the recipe and to set RREPLACES/RCONFLICTS in package, then I think RPROVIDES doesn't make it more dangerous :) - probably less, because on target update on older image will end with the same exfatprogs as freshly baked image.

Regards,