Skip to content

Instantly share code, notes, and snippets.

@false-git
Created August 22, 2013 09:09
Show Gist options
  • Save false-git/6304864 to your computer and use it in GitHub Desktop.
Save false-git/6304864 to your computer and use it in GitHub Desktop.
FreeBSD8のportsで、ライブラリの依存関係チェックに失敗する問題の暫定パッチ
*** bsd.port.mk.orig Mon Aug 19 22:56:16 2013
--- bsd.port.mk Mon Aug 19 23:02:28 2013
***************
*** 5025,5031 ****
for libdir in $$dirs; do \
test -f $${libdir}/$${lib} || continue; \
if [ -x /usr/bin/file ]; then \
! [ `file -b -L --mime-type $${libdir}/$${lib}` = "application/x-sharedlib" ] || continue ; \
fi ; \
found=1 ; \
${ECHO_MSG} " - found"; \
--- 5025,5031 ----
for libdir in $$dirs; do \
test -f $${libdir}/$${lib} || continue; \
if [ -x /usr/bin/file ]; then \
! [ `cat $${libdir}/$${lib} | file -b --mime-type -` = "application/x-sharedlib" ] || continue ; \
fi ; \
found=1 ; \
${ECHO_MSG} " - found"; \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment