Opened 13 years ago
Closed 11 years ago
#31699 closed enhancement (fixed)
subversion: enable libmagic support
Reported by: | ryandesign (Ryan Carsten Schmidt) | Owned by: | danielluke (Daniel J. Luke) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | blair (Blair Zajac), cooljeanius (Eric Gallager) | |
Port: | subversion |
Description
Subversion 1.7 adds a new feature where it can use libmagic to guess file types
http://subversion.apache.org/docs/release-notes/1.7.html#libmagic-support
Could this be enabled? Thanks.
Change History (8)
comment:1 Changed 13 years ago by danielluke (Daniel J. Luke)
comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
We do; it's part of the "file" port.
comment:3 Changed 13 years ago by danielluke (Daniel J. Luke)
Oh, ick.
The file port installs $prefix/bin/file which has different output from 'normal' file:
% which file /opt/local/bin/file % file /usr/bin/file /usr/bin/file: Mach-O fat file with 2 architectures % /usr/bin/file /usr/bin/file /usr/bin/file: Mach-O universal binary with 2 architectures /usr/bin/file (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/file (for architecture i386): Mach-O executable i386
also, it's nomaintainer :-\
Maybe it makes sense to re-work it to install the 'file' command differently so that everyone who installs subversion doesn't end up with a non-default 'file' command first in their $PATH (since we put $PREFIX before the system paths when we modify $PATH for people)?
Or, maybe we could split the library into a separate port?
comment:4 follow-up: 6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)
I was thinking the same thing -- splitting "file" into two ports "file" and "libmagic". Or rather, keeping the "file" port and adding a "libmagic" subport to it. We'd have to investigate all the ports that currently depend on "file" to see if they need to be changed but hopefully that's not too bad.
comment:5 Changed 12 years ago by danielluke (Daniel J. Luke)
Owner: | changed from dluke@… to dluke@… |
---|
comment:6 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
splitting "file" into two ports "file" and "libmagic". Or rather, keeping the "file" port and adding a "libmagic" subport to it.
This is now done (see #38888).
comment:8 Changed 11 years ago by larryv (Lawrence Velázquez)
Resolution: | → fixed |
---|---|
Status: | new → closed |
libmagic support was added in r101429.
Do we not have a macports version of libmagic? My quick search only showed some perl modules that appear to build against the system provided one.