When building e2fsprogs, don't build libcomerr again. In MacPorts, we build libcomerr in a separate subport. --- Makefile.in.orig 2023-02-06 21:31:53.000000000 -0600 +++ Makefile.in 2023-02-26 14:06:19.000000000 -0600 @@ -19,7 +19,7 @@ @ALL_CMT@E2P_LIB_SUBDIR= lib/e2p @ALL_CMT@EXT2FS_LIB_SUBDIR= lib/ext2fs -LIB_SUBDIRS=lib/et lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \ +LIB_SUBDIRS=lib/ss $(E2P_LIB_SUBDIR) $(UUID_LIB_SUBDIR) \ $(BLKID_LIB_SUBDIR) $(SUPPORT_LIB_SUBDIR) $(EXT2FS_LIB_SUBDIR) PROG_SUBDIRS=e2fsck $(DEBUGFS_DIR) misc $(RESIZE_DIR) tests/progs \ @@ -44,7 +44,6 @@ subs: $(DEP_SUBSTITUTE) @for i in $(SUBS) ; do if test -d `dirname $$i` ; \ then $(MAKE) $$i || exit $$? ; fi ; done - @(if test -d lib/et ; then cd lib/et && $(MAKE) compile_et; fi) @(if test -d lib/ext2fs ; then cd lib/ext2fs && $(MAKE) ext2_err.h; fi) @(if test -d lib/support ; then cd lib/support && $(MAKE) prof_err.h; fi)