Ticket #38626: oracle-instantclient.2.diff
File oracle-instantclient.2.diff, 2.1 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
Portfile
19 19 if {"powerpc" == ${os.arch}} { 20 20 epoch 1 21 21 version 10.1.0.3 22 revision 1 22 23 set library_version 10.1 23 24 supported_archs ppc 24 25 universal_variant no … … 40 41 livecheck.type none 41 42 } else { 42 43 version 11.2.0.3.0 44 revision 1 43 45 set library_version 11.1 44 46 supported_archs x86_64 i386 45 47 variant universal {} … … 135 137 set lib_dir ${prefix}/lib/oracle 136 138 137 139 build { 138 # Oracle builds the libraries with strange install_names, which we fix, for139 # neatness. Unfortunately users must still set DYLD_LIBRARY_PATH in their140 # environment because one of the libraries, libociei, is dynamically loaded141 # at runtime rather than being linked to.142 140 foreach my_arch ${configure.universal_archs} { 141 # Oracle builds the libraries with strange install_names; fix them. 143 142 # For each dylib, change the directory of its install_name to ${lib_dir}. 144 143 foreach lib [glob -directory ${workpath}/build/${my_arch} *.dylib*] { 145 144 system "install_name_tool -id ${lib_dir}/[strsed ${lib} /^.*\\///] ${lib}" … … 151 150 system "install_name_tool -change ${dep} ${lib_dir}/[strsed ${dep} /^.*\\///] ${lib}" 152 151 } 153 152 } 153 154 # libociei is special: it's not linked to; it's dynamically loaded at 155 # runtime by libclntsh. Oracle says you have to set DYLD_LIBRARY_PATH 156 # to include ${lib_dir}, but adding an rpath works too. 157 if {[string match "*/libclntsh.dylib*" ${lib}]} { 158 system "install_name_tool -add_rpath ${lib_dir} ${lib}" 159 } 154 160 } 155 161 } 156 162 } … … 182 188 } 183 189 184 190 notes " 185 To use ${name}, add this command to your environment: 186 187 export DYLD_LIBRARY_PATH=${lib_dir} 191 If you previously set DYLD_LIBRARY_PATH=${lib_dir} in your environment, you can remove\ 192 it\; it is no longer needed with this version of ${name}. 188 193 "