Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 338588 Details for
Bug 447288
=dev-db/sqlncli-11.0.1790.0 - New package. - Microsoft® SQL Server® ODBC Driver 1.0 for Linux
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
ebuild revised wrt copyright and avoidance /usr/lib64 symlinks
sqlncli-11.0.1790.0.ebuild (text/plain), 4.37 KB, created by
Hugo Mildenberger
on 2013-02-11 14:05:36 UTC
(
hide
)
Description:
ebuild revised wrt copyright and avoidance /usr/lib64 symlinks
Filename:
MIME Type:
Creator:
Hugo Mildenberger
Created:
2013-02-11 14:05:36 UTC
Size:
4.37 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >EAPI=5 > >#multilib currently only used for get_libdir >inherit eutils multilib versionator > >DESCRIPTION="Microsoft SQL Server ODBC Driver 1.0 for Linux" >HOMEPAGE="http://www.microsoft.com/en-us/download/details.aspx?id=28160" >SRC_URI="http://download.microsoft.com/download/6/A/B/6AB27E13-46AE-4CE9-AFFD-406367CADC1D/Linux6/${P}.tar.gz" >#md5: 36aca6fdfaa6e87754c477e08969fed4 >#sha1: ba8a27b1fc91b933a31d987805a6f78e29f893b4 > >LICENSE="MSsqlncli-11" >RESTRICT="mirror" > >SLOT="0" >KEYWORDS="~amd64" >IUSE="doc examples" >MERGE_TYPE=binary > >HDEPEND="dev-util/patchelf" # does not work with portage-2.1.11.50 >DEPEND=${HDEPEND} # workaround > ># The somewhat strange looking dependencies are explained by: ># sys-apps/util-linux <-libuuid.so ># sys-libs/e2fsprogs-libs <-libcom_err.so > >RDEPEND="virtual/libc > virtual/krb5 > dev-libs/openssl > >dev-db/unixODBC-2.3.1[iconv-char-enc-utf8(+),iconv-ucode-enc-utf16le(+)] > sys-apps/util-linux > sys-libs/e2fsprogs-libs" > >MY_PV=$(get_version_component_range 1-2) >MY_BV=$(get_version_component_range 3-4) # MS build number? > >QA_PREBUILT=" opt/microsoft/sqlncli/$(get_libdir)/libsqlncli-${MY_PV}.so.${MY_BV} > opt/microsoft/sqlncli/bin/sqlcmd-${PV} > opt/microsoft/sqlncli/bin/bcp-${PV} > " >src_prepare() { > epatch "${FILESDIR}/${P}-use-destdir-tempdir.patch" > > if use examples; then > mkdir -p "${S}/docs/examples" || die > cp -a "${FILESDIR}/examples" "${S}/docs" || die > fi >} > >my_linker_script() { > local library=${1} > local script=${2} > ebegin "creating linker script ${script##"${D}"/} => ${library}" > echo "GROUP ( ${library} )" > "${script}" 2>"${T}/lds.log" > eend ${?} $(<"${T}/lds.log") >} > >my_symlink() { > local have=${1} > local alias=${2} > > ebegin "Creating symbolic link ${alias##"${D}"/} => ${have}" > > ln -s ${have} "${alias}" 2>"${T}/ln.log" > > eend ${?} $(<"${T}/ln.log") >} > >my_set_runpath() { > local bin=${1} > local run=${2} > local bas=$(basename ${bin##${ED}/}) > > ebegin "Setting DT_RUNPATH=${run} within ${bas}" > > patchelf --set-rpath "${run}" "${bin}" 2>"${T}/pe.log" > > eend ${?} $(<"${T}/pe.log") >} > >src_install() { > dodir "/usr/bin" > dodir "/usr/$(get_libdir)" > > # run the verify step > TEMPDIR="${T}" DESTDIR="${ED}" ./install.sh verify > > # run the install step > TEMPDIR="${T}" DESTDIR="${ED}" ./install.sh install --accept-license --force > > local mshome=opt/microsoft/sqlncli > > doheader "${ED}/${mshome}/${PV}"/include/* > > if use doc; then > dohtml -r "${ED}/${mshome}/${PV}"/docs/* > dodoc "${ED}/${mshome}/${PV}/"{README,WARNING} > fi > > if use examples; then > docompress -x usr/share/doc/${PF}/examples > dodoc -r "${S}"/docs/examples || die > fi > > # remove image path from the driver configuration file > sed -i -e "s:${ED}:/:" "${ED}/${mshome}/${PV}/sqlncli.ini" > > local -A libs=( [libcrypto.so.10]=libcrypto.so > [libssl.so.10]=libssl.so > [libodbc.so.1]=libodbc.so > [libodbcinst.so.1]=libodbcinst.so) > > local mslibdir=${mshome}/$(get_libdir) > local needed=${!libs[*]} # array keys of $libs > > for i in ${needed}; do # e.g. $i == libssl.so.10 > local ihave=${EPREFIX}/usr/$(get_libdir)/${libs[${i}]} > local alias=${ED}/${mslibdir}/${i} > my_symlink "${ihave}" "${alias}" || die > done > > for prebuild in ${QA_PREBUILT}; do > local runpath=${EPREFIX}/${mshome}/$(get_libdir) > my_set_runpath "${ED}/${prebuild}" "${runpath}" > done > > # linking the client library using -lsqlncli should also work > local usrlib=${ED}/usr/$(get_libdir)/libsqlncli.so > local sqlnlib=${EPREFIX}/${mslibdir}/libsqlncli-${MY_PV}.so.${MY_BV} > > my_linker_script "${sqlnlib}" "${usrlib}" || die > > rm -r "${ED}/${mshome}/${PV}/include" || die > rm -r "${ED}/${mshome}/${PV}/docs" || die > rm "${ED}/${mshome}/${PV}/install.sh" || die > rm "${ED}/${mshome}/${PV}/build_dm.sh" || die > rm "${ED}/${mshome}/${PV}/LICENSE" || die > rm "${ED}/${mshome}/${PV}/README" || die > rm "${ED}/${mshome}/${PV}/WARNING" || die >} > >pkg_postinst() { > read -a libslqncli <<<${QA_PREFIX} > einfo "If ldconfig should complain about '$(basename ${libsqlncli[0]})'" > einfo "being 'truncated', that's probably a bug in ldconfig. See:" > einfo "http://old.nabble.com" > einfo "/ldconfig-problem-with-patchelf-and-64-bit-libs-to28466603.html" > odbcinst -i -d -f "${EPREFIX}/opt/microsoft/sqlncli/${PV}/sqlncli.ini" || die >} > >pkg_prerm() { > odbcinst -u -d -n "SQL Server Native Client 11.0" || die >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 447288
:
332322
|
332324
|
332326
|
338588
|
338590
|
338594
|
338596
|
338598
|
338600
|
338642
|
338684