fatsort: Update to 1.7.679

Closes: https://trac.macports.org/ticket/70570
This commit is contained in:
commitmaniac
2026-01-03 17:49:00 -05:00
committed by Herby Gillot
parent 983391b3ac
commit 0a7feefdee
2 changed files with 21 additions and 37 deletions
+21 -22
View File
@@ -1,14 +1,14 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup makefile 1.0
name fatsort
version 1.6.5.640
revision 1
version 1.7.679
revision 0
categories sysutils
platforms darwin freebsd linux
license GPL-2+
maintainers {ionic @Ionic}
maintainers {ionic @Ionic} openmaintainer
installs_libs no
@@ -17,36 +17,35 @@ long_description FATSort is a C utility that sorts FAT12, FAT16 and \
FAT32 partitions. It even can handle long file \
name entries. FATSort reads the boot sector and \
sorts the directory structure recursively.
homepage http://fatsort.sourceforge.net/
homepage https://fatsort.sourceforge.net/
depends_build port:help2man
depends_lib port:libiconv
depends_build-append \
port:help2man
depends_lib-append port:libiconv
master_sites sourceforge:${name}
use_xz yes
checksums rmd160 4c41df05db01d73958598dfb0b0e6b88647152fe \
sha256 630ece56d9eb3a55524af0aec3aade7854360eba949172a6cfb4768cb8fbe42e \
size 131792
use_configure no
variant universal {}
patchfiles-append sort.c.patch
checksums rmd160 8c472c4819350e3b8457b0a1ec8c617d479ac0a3 \
sha256 1012f551382639d69e194eabfbe99342ede7c856b1cd6788287f9dfd4bd8d122 \
size 139700
# endianness.c:30: error: expected =, ,, ;, asm or __attribute__ before value
# Old Xcode gcc does not understand these endianness macros.
compiler.blacklist-append \
*gcc-4.0 *gcc-4.2
build.type gnu
build.env "CFLAGS=${configure.cppflags} ${configure.cflags} [get_canonical_archflags cc]" \
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
build.args CC=${configure.cc} \
LD=${configure.cc}
destroot.args MANDIR=${prefix}/share/man/man1 \
destroot.args-append \
MANDIR=${prefix}/share/man/man1 \
SBINDIR=${prefix}/sbin
makefile.has_destdir \
no
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 ${worksrcpath}/LICENSE.txt ${destroot}${prefix}/share/doc/${name}/
}
# OS X can't run the tests, but they could hypothetically run on
# any system with bbe, mkfs.vfat, and fsck.vfat.
test.run yes
-15
View File
@@ -1,15 +0,0 @@
Fix out-of-bounds index which caused crash on arm64 systems.
Reported to the developer by email.
--- src/sort.c (revision 650)
+++ src/sort.c (working copy)
@@ -514,8 +514,8 @@
lname[0]='\0';
*reordered=0;
- utf16le_lname[MAX_PATH_LEN*4]='\0';
- utf16le_lname[MAX_PATH_LEN*4+1]='\0';
+ utf16le_lname[MAX_PATH_LEN*2]='\0';
+ utf16le_lname[MAX_PATH_LEN*2+1]='\0';
while (chain != NULL) {
device_seekset(fs->device, getClusterOffset(fs, chain->cluster));