Date: Tue, 6 Mar 2007 08:46:36 +0900 (JST) From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/109956: fix objformat problem about multimedia/libdvdplay. Message-ID: <200703052346.l25NkaAL001222@231124.173202.kyoto-inetbb.jp> Resent-Message-ID: <200703060010.l260A6bo090988@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109956 >Category: ports >Synopsis: fix objformat problem about multimedia/libdvdplay. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 06 00:10:06 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tsurutani Naoki >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 231124.173202.kyoto-inetbb.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sun Mar 4 23:41:07 JST 2007 turutani@polymer12.localnet.priv:/usr/local/work/usr/obj/usr/src/sys/POLYMER5 i386 >Description: fix objformat problem of multimedia/libdvdplay on current host. take another simple way instead if necssary. >How-To-Repeat: >Fix: --- configure.orig Tue Mar 11 02:55:45 2003 +++ configure Mon Mar 5 13:17:20 2007 @@ -6202,8 +6202,29 @@ dynamic_linker='GNU/FreeBSD ld.so' ;; -freebsd*) - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) @@ -6221,9 +6242,18 @@ freebsd2*) shlibpath_overrides_runpath=yes ;; - *) - shlibpath_overrides_runpath=no + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no hardcode_into_libs=yes + ;; + freebsd*) # from 4.6 on + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes ;; esac ;; --- aclocal.m4.orig Tue Mar 11 02:55:35 2003 +++ aclocal.m4 Mon Mar 5 13:01:54 2007 @@ -2847,8 +2847,29 @@ dynamic_linker='GNU/FreeBSD ld.so' ;; -freebsd*) - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi version_type=freebsd-$objformat case $version_type in freebsd-elf*) @@ -2866,8 +2887,17 @@ freebsd2*) shlibpath_overrides_runpath=yes ;; - *) + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + freebsd*) # from 4.6 on + shlibpath_overrides_runpath=yes hardcode_into_libs=yes ;; esac >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703052346.l25NkaAL001222>