Bug 59200 - New port: emulators/hfsplusutils, utilities for HFS+ filesystems
Summary: New port: emulators/hfsplusutils, utilities for HFS+ filesystems
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergei Kolobov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 02:40 UTC by Josh Elsasser
Modified: 2003-11-15 21:52 UTC (History)
0 users

See Also:


Attachments
file.shar (4.42 KB, text/plain)
2003-11-12 02:40 UTC, Josh Elsasser
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Josh Elsasser 2003-11-12 02:40:18 UTC
	This is a set of tools for HFS+ filesystems, much like
emulators/hfsutils is for HFS.
Comment 1 Sergei Kolobov freebsd_committer freebsd_triage 2003-11-12 20:28:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sergei

I'll take it.
Comment 2 Sergei Kolobov freebsd_committer freebsd_triage 2003-11-12 20:53:03 UTC
The port builds fine under -CURRENT, but fails under -STABLE:

cc -O -pipe -march=pentiumpro -o .libs/hpmount hpmount.o hpcache.o
hfsputil.o glob.o dstring.o dlist.o ../libhfsp/src/.libs/libhfsp.so
-Wl,--rpath -Wl,/tmp/hfsplusutils-1.0.4/lib
../libhfsp/src/.libs/libhfsp.so: undefined reference to `bswap16'
../libhfsp/src/.libs/libhfsp.so: undefined reference to `bswap64'
../libhfsp/src/.libs/libhfsp.so: undefined reference to `mbrtowc'
../libhfsp/src/.libs/libhfsp.so: undefined reference to `bswap32'
../libhfsp/src/.libs/libhfsp.so: undefined reference to `wcrtomb'
*** Error code 1

Please investigate.

BTW, perhaps the port could be named "hfsplus" (i.e. losing the
"utils" suffix) - internally, it uses hfsplus name, and OpenBSD 
has it under that name, too (as misc/hfsplus, FWIW).

Sergei
Comment 3 Sergei Kolobov freebsd_committer freebsd_triage 2003-11-12 20:55:46 UTC
State Changed
From-To: open->feedback

Port fails to build under -STABLE - submitter contacted. 
Waiting for feedback.
Comment 4 Josh Elsasser 2003-11-13 16:26:01 UTC
Well the byte-swapping functions could be fixed, but I don't see any
way around the missing mbrtowc and wcrtomb in other than to mark the
port broken on -STABLE.


--- Makefile.orig	Tue Nov 11 20:18:28 2003
+++ Makefile	Thu Nov 13 01:39:38 2003
@@ -28,6 +28,10 @@
 AUTOMAKE_ARGS=	--add-missing
 CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 
+.if ${OSVERSION} < 500000
+BROKEN=		"Does not compile on FreeBSD ${OSVERSION}"
+.fi
+
 pre-patch:
 .for makefile in src/Makefile.am libhfsp/src/Makefile.am
 	@${REINPLACE_CMD} "s/^CFLAGS.*/CFLAGS=@CFLAGS@/" ${WRKSRC}/${makefile}


Also, hfsplusutils seemed an appropriate name given that it was based
on hfsutils.  Also, the rpm spec included in the source uses
hfsplusutils instead of hfsutils.  I don't really have a strong
preference for either name though.

 -jre
Comment 5 Sergei Kolobov freebsd_committer freebsd_triage 2003-11-15 21:52:18 UTC
State Changed
From-To: feedback->closed

New port added, thanks!