Commit d3d09681 authored by Roland Fehrenbacher's avatar Roland Fehrenbacher

Initial d/dir

parent 8aba51f0
*.o
*.la
*.lo
.*.swp
.deps
.libs
*~
This package is maintained from the upstream git repository located at
https://github.com/intel/psm.git
using Dep14 (http://dep.debian.net/deps/dep14/) layout/workflow.
New versions should usually be built from the debian/master branch.
There is a d/gbp.conf, so building with 'gbp buildpackage' is
supported. The upstream branch is master. Since the upstream branch
contains an unused binary exeutable MakeTools/ltsign, there is a branch
upstream+dfsg for the debian source that removes this binary.
Patches are managed within the patch-queue/debian/master branch. This branch
should always be based on the (upstream) master branch. The contents of the
d/patches directory is then auto-generated using:
$ gbp pq export
To clone this repo use:
$ gbp clone --pristine-tar git@salsa.debian.org:hpc-team/opa-ff.git
To build the package after cloning:
$ gbp buildpackage
To be able to receive new upstream releases/commits, after cloning, you need to
add the upstream repo address as a 'git remote' as follows:
$ git remote add upstream https://github.com/intel/opa-ff.git
Then you can pull upstream changes as follows:
$ git branch master
$ git pull upstream
Handling new upstream releases (e.g. for new release 10.6.0.0.131):
- Merge the upstream+dfsg with the master branch and set upstream tag:
$ git br upstream+dfsg
$ git merge v10.6.0.0.131
$ git tag upstream/10.6.0.0.131+dfsg.1
- Merge the patch-queue with the upstream+dfsg branch (if patches currently
exist):
$ git checkout patch-queue/debian/master
$ git merge upstream/10.6.0.0.131+dfsg.1
Review patches, possibly fix conflicts, when done:
$ gbp pq export
This puts you into the debian/master branch automatically. Review the changes
and commit.
- Merge new upstream release to the debian/master branch:
$ git checkout debian/master (probably you're already there)
$ git merge upstream/10.6.0.0.131+dfsg.1
- Adjust debian files for new release ...
- Set debian release tag when done (assuming debian version
10.6.0.0.131+dfsg.1-1):
$ git tag debian/10.6.0.0.131+dfsg.1-1
- Build new package including new pristine-tar generation:
$ gbp buildpackage --git-pristine-tar --git-pristine-tar-commit \
--git-compression=xz
- When all is fine, push the new version
$ git push --all
$ git push --tags
Roland Fehrenbacher
-- Roland Fehrenbacher <rfehren@debian.org>, Tue, 30 Jan 2018 14:33:12 +0000
#!/bin/bash
export BUILD_PLATFORM=LINUX
source MakeTools/funcs-ext.sh
settarget x86_64
export BUILD_WITH_STACK=OPENIB
export BUILD_TARGET=X86_64
export PRODUCT=OPENIB_FF
PKGVERS=$(dpkg-parsechangelog -ldebian/changelog | awk '/^Version:/ {print $2}')
export RELEASE_TAG=${PKGVERS%-*}
export TL_DIR=$PWD
# for HSM the kernel rev is not important. We simply use the kernel rev
# of the running kernel. While BUILD_TARGET_OS_VERSION is needed by Makerules
# it will have no impact on what is actually built for HSM
export BUILD_TARGET_OS_VERSION=4.x
setver $BUILD_TARGET_OS_VENDOR $BUILD_TARGET_OS_VERSION
export BUILD_TARGET_OS_ID=4.x-x86_64
MODULEVERSION=$($TL_DIR/MakeTools/convert_releasetag.pl $RELEASE_TAG)
RELEASE_STRING=IntelOPA-Tools-FF.$BUILD_TARGET_OS_ID.$MODULEVERSION
echo "stage.$PRODUCT.release/$BUILD_TARGET_OS_VENDOR/$BUILD_TARGET/$RELEASE_STRING" > RELEASE_PATH
echo "../bin/$BUILD_TARGET/$BUILD_PLATFORM_OS_VENDOR.$BUILD_PLATFORM_OS_VENDOR_VERSION/lib/release" > LIB_PATH
cd OpenIb_Host && ./rpm_runmake
# Check the results of the build for errors and unexpected warnings.
./check_results -r build.res build.err build.warn
opa-ff (10.6.0.0.131+dfsg.1-1) unstable; urgency=low
* Initial release (Closes: #565454)
-- Roland Fehrenbacher <rf@q-leap.de> Mon, 29 Jan 2018 12:38:02 +0100
Source: opa-ff
Section: admin
Priority: optional
Maintainer: Debian HPC Team <debian-hpc@lists.debian.org>
Uploaders: Roland Fehrenbacher <rfehren@debian.org>,
Build-Depends: debhelper (>= 10),
ibacm-dev,
libexpat1-dev,
libibmad-dev,
libibumad-dev,
libibverbs-dev,
libncurses5-dev,
libssl-dev,
tcl-dev,
Standards-Version: 4.1.3
Homepage: https://github.com/intel/opa-ff
Vcs-Git: https://salsa.debian.org/hpc-team/opa-ff
Vcs-Browser: https://salsa.debian.org/hpc-team/opa-ff
Package: opa-basic-tools
Architecture: amd64
Depends: bc,
${misc:Depends},
${shlibs:Depends},
Description: Tools to manage an Omni-Path Architecture fabric.
This package contains basic tools for the management of an Intel(R)
Omni-Path Architecture fabric.
Package: opa-fastfabric
Architecture: amd64
Depends: opa-basic-tools,
expect,
tcl,
${misc:Depends},
${shlibs:Depends},
Description: Tools to manage an Omni-Path Architecture fabric.
This package contains tools for the management of an Intel(R)
Omni-Path Architecture fabric on a management node.
Package: opa-address-resolution
Architecture: amd64
Depends: ibacm,
libopasadb1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Omni-Path fabric address resolution manager.
This package contains the ibacm distributed SA provider (dsap) for name and
address resolution on an Intel(R) Omni-Path Architecture platform.
It also contains tools to access the shared memory database exported by dsap.
Package: libopamgt0
Section: libs
Architecture: amd64
Depends: ${misc:Depends},
${shlibs:Depends},
Description: Omni-Path fabric management API library
libopamgt is the library necessary to build applications that interface with
an Omni-Path fabric manager.
.
This package contains the shared libraries.
Package: libopamgt-dev
Section: libdevel
Architecture: amd64
Depends: libopamgt0 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Development files for libopamgt0
libopamgt is the library necessary to build applications that interface with
an Omni-Path fabric manager.
.
This package is needed to compile programs against libopamgt0.
It contains the header files and links needed for compiling.
Package: libopasadb1
Section: libs
Architecture: amd64
Depends: ${misc:Depends},
${shlibs:Depends},
Description: Omni-Path dsap API library
libopasadb is a library for easy access to the Omni-Path shared memory SA
cache exported by the ibacm distributed SA provider (dsap).
.
This package contains the shared libraries.
Package: libopasadb-dev
Section: libdevel
Architecture: amd64
Depends: libopasadb1 (= ${binary:Version}),
${misc:Depends},
${shlibs:Depends},
Description: Development files for libopasadb1
libopasadb is a library for easy access to the Omni-Path shared memory SA
cache exported by the ibacm distributed SA provider (dsap).
.
This package is needed to compile programs against libopasadb1.
It contains the header files and links needed for compiling.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: opa-ff
Upstream-Contact: Intel Corporation, www.intel.com
Source: https://github.com/intel/opa-ff
Files: *
Copyright: 2015-2017, Intel Corporation
License: BSD-3-clause
Copyright (c) 2015, Intel Corporation
All rights reserved.
.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- Neither the name of Intel Corporation nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.
.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL INTEL, THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
.
EXPORT LAWS: THIS LICENSE ADDS NO RESTRICTIONS TO THE EXPORT LAWS OF YOUR
JURISDICTION. It is licensee's responsibility to comply with any export
regulations applicable in licensee's jurisdiction. Under CURRENT (May 2000)
U.S. export regulations this software is eligible for export from the U.S.
and can be downloaded by or otherwise exported or reexported worldwide EXCEPT
to U.S. embargoed destinations which include Cuba, Iraq, Libya, North Korea,
Iran, Syria, Sudan, Afghanistan and any other country to which the U.S. has
embargoed goods and services.
Files: debian/*
Copyright: 2017, Q-Leap Networks GmbH <info@q-leap.de>
License: GPL-2+
This package is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>
.
On Debian systems, the complete text of the GNU General
Public License version 2 can be found in "/usr/share/common-licenses/GPL-2".
[DEFAULT]
upstream-branch = master
debian-branch = debian/master
ignore-branch = False
pristine-tar = True
debian/tmp/usr/src/opamgt
/usr/include/opamgt
/usr/lib/*/libopamgt.so
/usr/lib/*/libopamgt.so.*
possible-gpl-code-linked-with-openssl
/usr/include/infiniband
/usr/lib/*/libopasadb.so
/usr/lib/*/libopasadb.so.*
package-name-doesnt-match-sonames libopasadb1.0.0
possible-gpl-code-linked-with-openssl
/etc/rdma/dsap.conf
/usr/bin/opa_osd_dump
/usr/bin/opa_osd_exercise
/usr/bin/opa_osd_perf
/usr/bin/opa_osd_query
/usr/share/man/man1/opa_osd_dump.1
/usr/share/man/man1/opa_osd_exercise.1
/usr/share/man/man1/opa_osd_perf.1
/usr/share/man/man1/opa_osd_query.1
/usr/lib/ibacm
manpage-has-bad-whatis-entry
manpage-has-errors-from-man
package-has-unnecessary-activation-of-ldconfig-trigger
possible-gpl-code-linked-with-openssl
/usr/lib/opa/.comp_fastfabric.pl
/usr/lib/opa/.comp_oftools.pl
/usr/lib/opa/tools/opaipcalc
/usr/lib/opa/tools/setup_self_ssh
/usr/lib/opa/tools/usemem
/usr/sbin/opacapture
/usr/sbin/opafabricinfo
/usr/sbin/opagetvf
/usr/sbin/opagetvf_env
/usr/sbin/opahfirev
/usr/sbin/opainfo
/usr/sbin/opapacketcapture
/usr/sbin/opapmaquery
/usr/sbin/opaportconfig
/usr/sbin/opaportinfo
/usr/sbin/oparesolvehfiport
/usr/sbin/opasaquery
/usr/sbin/opasmaquery
/usr/sbin/opatmmtool
/usr/share/man/man1/opacapture.1
/usr/share/man/man1/opaconfig.1
/usr/share/man/man1/opafabricinfo.1
/usr/share/man/man1/opagetvf.1
/usr/share/man/man1/opagetvf_env.1
/usr/share/man/man1/opahfirev.1
/usr/share/man/man1/opainfo.1
/usr/share/man/man1/opapacketcapture.1
/usr/share/man/man1/opapmaquery.1
/usr/share/man/man1/opaportconfig.1
/usr/share/man/man1/opaportinfo.1
/usr/share/man/man1/oparesolvehfiport.1
/usr/share/man/man1/opasaquery.1
/usr/share/man/man1/opasmaquery.1
/usr/share/man/man1/opatmmtool.1
manpage-has-bad-whatis-entry
manpage-has-errors-from-man
possible-gpl-code-linked-with-openssl
debian/tmp/usr/share/opa/samples
debian/tmp/usr/src/opa/mpi_apps
debian/tmp/usr/src/opa/shmem_apps
/etc/opa
/usr/lib/opa/fm_tools/config_check
/usr/lib/opa/fm_tools/config_convert
/usr/lib/opa/fm_tools/config_diff
/usr/lib/opa/fm_tools/config_generate
/usr/lib/opa/tools/basic.exp
/usr/lib/opa/tools/chassis.exp
/usr/lib/opa/tools/chassis_configure.exp
/usr/lib/opa/tools/chassis_fmconfig.exp
/usr/lib/opa/tools/chassis_fmcontrol.exp
/usr/lib/opa/tools/chassis_fmgetconfig.exp
/usr/lib/opa/tools/chassis_fmgetsecurityfiles.exp
/usr/lib/opa/tools/chassis_fmsecurityfiles.exp
/usr/lib/opa/tools/chassis_getconfig.exp
/usr/lib/opa/tools/chassis_reboot.exp
/usr/lib/opa/tools/chassis_setup
/usr/lib/opa/tools/chassis_upgrade.exp
/usr/lib/opa/tools/comm12
/usr/lib/opa/tools/common_funcs.exp
/usr/lib/opa/tools/configipoib.exp
/usr/lib/opa/tools/extmng.exp
/usr/lib/opa/tools/ff_funcs
/usr/lib/opa/tools/ff_function.exp
/usr/lib/opa/tools/front
/usr/lib/opa/tools/ib.exp
/usr/lib/opa/tools/ibtools.exp
/usr/lib/opa/tools/install.exp
/usr/lib/opa/tools/ipoibping.exp
/usr/lib/opa/tools/libqlgc_fork.so
/usr/lib/opa/tools/load.exp
/usr/lib/opa/tools/mpi.exp
/usr/lib/opa/tools/mpiperf.exp
/usr/lib/opa/tools/mpiperfdeviation.exp
/usr/lib/opa/tools/network.exp
/usr/lib/opa/tools/opa_to_xml.exp
/usr/lib/opa/tools/opachassisip
/usr/lib/opa/tools/opafastfabric.conf.def
/usr/lib/opa/tools/opagenswitcheshelper
/usr/lib/opa/tools/opagetipaddrtype
/usr/lib/opa/tools/opaswconfigure
/usr/lib/opa/tools/opaswfwconfigure
/usr/lib/opa/tools/opaswfwupdate
/usr/lib/opa/tools/opaswfwverify
/usr/lib/opa/tools/opaswping
/usr/lib/opa/tools/opaswquery
/usr/lib/opa/tools/opaswreset
/usr/lib/opa/tools/osid_wrapper
/usr/lib/opa/tools/proc_mgr.exp
/usr/lib/opa/tools/reboot.exp
/usr/lib/opa/tools/sacache.exp
/usr/lib/opa/tools/show_counts
/usr/lib/opa/tools/sm_control.exp
/usr/lib/opa/tools/switch_capture.exp
/usr/lib/opa/tools/switch_configure.exp
/usr/lib/opa/tools/switch_dump.exp
/usr/lib/opa/tools/switch_fwverify.exp
/usr/lib/opa/tools/switch_getconfig.exp
/usr/lib/opa/tools/switch_hwvpd.exp
/usr/lib/opa/tools/switch_info.exp
/usr/lib/opa/tools/switch_ping.exp
/usr/lib/opa/tools/switch_reboot.exp
/usr/lib/opa/tools/switch_setup
/usr/lib/opa/tools/switch_upgrade.exp
/usr/lib/opa/tools/target.exp
/usr/lib/opa/tools/tclIndex
/usr/lib/opa/tools/tcl_proc
/usr/lib/opa/tools/tools.exp
/usr/lib/opa/tools/upgrade.exp
/usr/sbin/opa2rm
/usr/sbin/opaallanalysis
/usr/sbin/opacabletest
/usr/sbin/opacaptureall
/usr/sbin/opachassisadmin
/usr/sbin/opachassisanalysis
/usr/sbin/opacheckload
/usr/sbin/opacmdall
/usr/sbin/opadisablehosts
/usr/sbin/opadisableports
/usr/sbin/opadownloadall
/usr/sbin/opaenableports
/usr/sbin/opaesmanalysis
/usr/sbin/opaexpandfile
/usr/sbin/opaextractbadlinks
/usr/sbin/opaextracterror
/usr/sbin/opaextractlids
/usr/sbin/opaextractlink
/usr/sbin/opaextractmissinglinks
/usr/sbin/opaextractperf
/usr/sbin/opaextractsellinks
/usr/sbin/opaextractstat
/usr/sbin/opaextractstat2
/usr/sbin/opafabricanalysis
/usr/sbin/opafastfabric
/usr/sbin/opafequery
/usr/sbin/opafindgood
/usr/sbin/opafirmware
/usr/sbin/opafmconfigcheck
/usr/sbin/opafmconfigdiff
/usr/sbin/opagenchassis
/usr/sbin/opagenesmchassis
/usr/sbin/opagenswitches
/usr/sbin/opahostadmin
/usr/sbin/opahostsmanalysis
/usr/sbin/opaledports
/usr/sbin/opalinkanalysis
/usr/sbin/opapaquery
/usr/sbin/opapingall
/usr/sbin/opareport
/usr/sbin/opareports
/usr/sbin/opascpall
/usr/sbin/opasetupssh
/usr/sbin/opashowallports
/usr/sbin/opashowmc
/usr/sbin/opasorthosts
/usr/sbin/opaswdisableall
/usr/sbin/opaswenableall
/usr/sbin/opaswitchadmin
/usr/sbin/opatop
/usr/sbin/opauploadall
/usr/sbin/opaverifyhosts
/usr/sbin/opaxlattopology
/usr/sbin/opaxlattopology_cust
/usr/sbin/opaxmlextract
/usr/sbin/opaxmlfilter
/usr/sbin/opaxmlgenerate
/usr/sbin/opaxmlindent
/usr/share/man/man8/opa2rm.8
/usr/share/man/man8/opaallanalysis.8
/usr/share/man/man8/opacabletest.8
/usr/share/man/man8/opacaptureall.8
/usr/share/man/man8/opachassisadmin.8
/usr/share/man/man8/opachassisanalysis.8
/usr/share/man/man8/opacheckload.8
/usr/share/man/man8/opacmdall.8
/usr/share/man/man8/opadisablehosts.8
/usr/share/man/man8/opadisableports.8
/usr/share/man/man8/opadownloadall.8
/usr/share/man/man8/opaenableports.8
/usr/share/man/man8/opaesmanalysis.8
/usr/share/man/man8/opaexpandfile.8
/usr/share/man/man8/opaextractbadlinks.8
/usr/share/man/man8/opaextracterror.8
/usr/share/man/man8/opaextractlids.8
/usr/share/man/man8/opaextractlink.8
/usr/share/man/man8/opaextractmissinglinks.8
/usr/share/man/man8/opaextractperf.8
/usr/share/man/man8/opaextractsellinks.8
/usr/share/man/man8/opaextractstat.8
/usr/share/man/man8/opaextractstat2.8
/usr/share/man/man8/opafabricanalysis.8
/usr/share/man/man8/opafastfabric.8
/usr/share/man/man8/opafequery.8
/usr/share/man/man8/opafindgood.8
/usr/share/man/man8/opafirmware.8
/usr/share/man/man8/opafmconfigcheck.8
/usr/share/man/man8/opafmconfigdiff.8
/usr/share/man/man8/opagenchassis.8
/usr/share/man/man8/opagenesmchassis.8
/usr/share/man/man8/opagenswitches.8
/usr/share/man/man8/opagentopology.8
/usr/share/man/man8/opahostadmin.8
/usr/share/man/man8/opahostsmanalysis.8
/usr/share/man/man8/opaledports.8
/usr/share/man/man8/opalinkanalysis.8
/usr/share/man/man8/opapaquery.8
/usr/share/man/man8/opapingall.8
/usr/share/man/man8/opareport.8
/usr/share/man/man8/opareports.8
/usr/share/man/man8/opascpall.8
/usr/share/man/man8/opasetupssh.8
/usr/share/man/man8/opashowallports.8
/usr/share/man/man8/opashowmc.8
/usr/share/man/man8/opasorthosts.8
/usr/share/man/man8/opaswdisableall.8
/usr/share/man/man8/opaswenableall.8
/usr/share/man/man8/opaswitchadmin.8
/usr/share/man/man8/opatop.8
/usr/share/man/man8/opauploadall.8
/usr/share/man/man8/opaverifyhosts.8
/usr/share/man/man8/opaxlattopology.8
/usr/share/man/man8/opaxlattopology_cust.8
/usr/share/man/man8/opaxmlextract.8
/usr/share/man/man8/opaxmlfilter.8
/usr/share/man/man8/opaxmlgenerate.8
/usr/share/man/man8/opaxmlindent.8
/usr/share/opa/help/opatop_group_bw.hlp
/usr/share/opa/help/opatop_group_config.hlp
/usr/share/opa/help/opatop_group_ctg.hlp
/usr/share/opa/help/opatop_group_focus.hlp
/usr/share/opa/help/opatop_group_info_sel.hlp
/usr/share/opa/help/opatop_img_config.hlp
/usr/share/opa/help/opatop_pm_config.hlp
/usr/share/opa/help/opatop_port_stats.hlp
/usr/share/opa/help/opatop_summary.hlp
/usr/share/opa/help/opatop_vf_bw.hlp
/usr/share/opa/help/opatop_vf_config.hlp
/usr/share/opa/help/opatop_vf_info_sel.hlp
manpage-has-bad-whatis-entry
manpage-has-errors-from-man
possible-gpl-code-linked-with-openssl
From: Roland Fehrenbacher <rf@q-leap.de>
Date: Mon, 29 Jan 2018 13:07:00 +0000
Subject: Add support for debian + qlustar
---
MakeTools/funcs-ext.sh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/MakeTools/funcs-ext.sh b/MakeTools/funcs-ext.sh
index 0d9f1d5..a21553b 100755
--- a/MakeTools/funcs-ext.sh
+++ b/MakeTools/funcs-ext.sh
@@ -709,6 +709,10 @@ function os_vendor()
then
# Apple Mac
rval=apple
+ elif [ -e /etc/qlustar-version ]; then
+ rval=qlustar
+ elif [ -e /etc/debian_version ]; then
+ rval=debian
else
filelist=($('ls' /etc/*-release | egrep -v lsb | egrep -v os))
rval=""
@@ -756,6 +760,14 @@ function os_vendor_version()
# - drop '.'(dot)
if [ $1 = "Ubuntu" ]; then
rval=$(echo $VERSION_ID | sed -e 's/\.[0]//' -e 's/\.//')
+ elif [ $1 = "debian" ]; then
+ if [ -z "$VERSION_ID" ]; then
+ rval=9999 # sid
+ else
+ rval=$(echo $VERSION_ID | sed -e 's/\.[0]//' -e 's/\.//')
+ fi
+ elif [ $1 = "qlustar" ]; then
+ rval=$(cat /etc/qlustar-version | sed -e 's/\.[0]//' -e 's/\.//')
else
rval=ES$(echo $VERSION_ID | sed -e 's/\.[0]//' -e 's/\.//')
fi
From: Roland Fehrenbacher <rf@q-leap.de>
Date: Tue, 30 Jan 2018 10:36:06 +0000
Subject: Add correct version links for libraries
---
OpenIb_Host/ff_install.sh | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/OpenIb_Host/ff_install.sh b/OpenIb_Host/ff_install.sh
index a567d4b..e00f90b 100755
--- a/OpenIb_Host/ff_install.sh
+++ b/OpenIb_Host/ff_install.sh
@@ -45,6 +45,8 @@ ln -s ./opasmaquery ${DESTDIR}/usr/sbin/opapmaquery
cd ../opasadb
cp -t ${DESTDIR}/usr/bin $opasadb_bin
cp -t ${DESTDIR}/usr/include/infiniband $opasadb_header
+OPASADB_VERNO=$(awk '/^Version/ {print $2}' ${BUILDDIR}/opasadb/opasadb.spec)
+OPASADB_VERNO_MAJOR=$(echo $OPASADB_VERNO | cut -d . -f 1)
cd ../opamgt
cp -t ${DESTDIR}/usr/include/opamgt $opamgt_headers
@@ -52,6 +54,7 @@ cp -t ${DESTDIR}/usr/include/opamgt/iba $opamgt_iba_headers
cp -t ${DESTDIR}/usr/include/opamgt/iba/public $opamgt_iba_public_headers
cp -t ${DESTDIR}/usr/src/opamgt $opamgt_examples
+OPAMGT_VERNO=$(cat version)
OPAMGT_VERNO_MAJOR=$(cat version | cut -d . -f 1)
cd ../bin
@@ -101,11 +104,18 @@ cp -t ${DESTDIR}/etc/opa opamon.conf opamon.si.conf
#Libraries installing
#cd ../builtlibs.OPENIB_FF.release
cd $(cat $BUILDDIR/LIB_PATH)
-cp -t ${DESTDIR}/usr/lib libopasadb.so.*
+mkdir -p ${DESTDIR}/${LIBDIR}
+cp -t ${DESTDIR}/${LIBDIR} libopasadb.so.*
+ln -s libopasadb.so.${OPASADB_VERNO} \
+ ${DESTDIR}/${LIBDIR}/libopasadb.so.${OPASADB_VERNO_MAJOR}
+ln -s libopasadb.so.${OPASADB_VERNO_MAJOR} ${DESTDIR}/${LIBDIR}/libopasadb.so
+
cp -t ${DESTDIR}/usr/lib/ibacm libdsap.so.*
-cp -t ${DESTDIR}/usr/lib libopamgt.so.*
-ln -s libopamgt.so.${OPAMGT_VERNO_MAJOR} ${DESTDIR}/usr/lib/libopamgt.so
+cp -t ${DESTDIR}/${LIBDIR} libopamgt.so.*
+ln -s libopamgt.so.${OPAMGT_VERNO} \
+ ${DESTDIR}/${LIBDIR}/libopamgt.so.${OPAMGT_VERNO_MAJOR}
+ln -s libopamgt.so.${OPAMGT_VERNO_MAJOR} ${DESTDIR}/${LIBDIR}/libopamgt.so
# Now that we've put everything in the buildroot, copy any default config files to their expected location for user
# to edit. To prevent nuking existing user configs, the files section of this spec file will reference these as noreplace
0001-Add-support-for-debian-qlustar.patch
0002-Add-correct-version-links-for-libraries.patch
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
%:
dh $@ --with systemd
override_dh_auto_clean:
dh_auto_clean
override_dh_auto_configure:
override_dh_auto_build:
debian/build.sh
override_dh_auto_install:
DESTDIR=$$PWD/debian/tmp LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH) \
BUILDDIR=$$PWD ./OpenIb_Host/ff_install.sh
find debian/tmp/usr/lib/opa/tools -name "*.exp" | xargs chmod 644
version=4
opts=dversionmangle=s/\+(debian|dfsg|ds|deb)(\.?\d+)?$// \
https://github.com/intel/opa-ff/tags .*/v(\d\S+)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment