diff --git a/debian/changelog b/debian/changelog index fc15a2e..9d3e785 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +spdk (22.01.2-4.01) unstable; urgency=medium + + [ Brian J. Murrell ] + * Install setup.sh and friends + + -- Brian J. Murrell Wed, 18 Jan 2023 10:10:22 -0500 + spdk (22.01.2-3) unstable; urgency=medium [ Tom Nabarro ] @@ -5,6 +12,14 @@ spdk (22.01.2-3) unstable; urgency=medium -- Tom Nabarro Tue, 10 Jan 2023 00:00:00 +0000 + +spdk (22.01.2-2) unstable; urgency=medium + + [ Brian J. Murrell ] + * Keep in sync with RPM + + -- Brian J. Murrell Sun, 27 Nov 2022 00:00:00 -0500 + spdk (22.01.2-1) unstable; urgency=medium [ Tom Nabarro ] diff --git a/debian/control b/debian/control index bc5e9ce..f913aa3 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Priority: optional Maintainer: daos-stack Build-Depends: debhelper, - python, + python3, libdpdk-dev (>= 21.11.2), librdmacm-dev, libibverbs-dev, diff --git a/debian/rules b/debian/rules index 344ef8d..442c3eb 100755 --- a/debian/rules +++ b/debian/rules @@ -1,5 +1,12 @@ #!/usr/bin/make -f +name := spdk +prefix := /usr +sysconfdir := /etc +exec_prefix := $(prefix) +buildroot := debian/tmp +cflags := -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection + #export DH_VERBOSE = 1 export DEB_BUILD_MAINT_OPTIONS = hardening=+all @@ -26,23 +33,44 @@ override_dh_auto_clean: #endif # override_dh_auto_configure: - ./configure --prefix=/usr \ - --disable-tests \ - --without-vhost \ - --without-crypto \ - --without-pmdk \ - --without-rbd \ - --with-shared \ + ./configure --prefix=$(prefix) \ + --target-arch=haswell \ + --disable-tests \ + --disable-unit-tests \ + --disable-apps \ + --without-vhost \ + --without-crypto \ + --without-pmdk \ + --without-rbd \ + --with-shared \ --without-iscsi-initiator \ - --without-isal \ - --without-vtune \ - --with-dpdk # =$$PWD/dpdk + --without-isal \ + --without-vtune \ + --with-dpdk -#override_dh_auto_build: -# make V=1 # -j 8 +override_dh_auto_build: + export CFLAGS='$(cflags)' + export CXXFLAGS='$(cflags)' + export FFLAGS='$(cflags)' + export LDFLAGS='-Wl,-z,relro -Wl,-z,now' + dh_auto_build -- CONFIG_ARCH=haswell V=1 override_dh_auto_install: - dh_auto_install -- prefix=/usr libdir=/lib/x86_64-linux-gnu/ datadir=/usr/share + dh_auto_install -- prefix=$(prefix) libdir=/lib/x86_64-linux-gnu/ datadir=$(prefix)/share + + # Install tools + mkdir -p ${buildroot}$(prefix)/share/$(name)/scripts + + # install the setup tool + cp scripts/setup.sh scripts/common.sh ${buildroot}$(prefix)/share/$(name)/scripts/ + mkdir -p ${buildroot}$(prefix)/include/$(name)/ + cp include/$(name)/pci_ids.h ${buildroot}$(prefix)/include/$(name)/ + # spdk_nvme_identify and spdk_nvme_perf are already installed by default + cp build/examples/lsvmd ${buildroot}/$(prefix)/bin/spdk_nvme_lsvmd + cp build/examples/nvme_manage ${buildroot}/$(prefix)/bin/spdk_nvme_manage + + # Change $(prefix)/bin/{env ,}bash + sed -i -e '1s/env //' ${buildroot}$(prefix)/share/$(name)/scripts/setup.sh override_dh_missing: dh_missing --fail-missing diff --git a/debian/spdk-tools.dirs b/debian/spdk-tools.dirs new file mode 100644 index 0000000..12a7796 --- /dev/null +++ b/debian/spdk-tools.dirs @@ -0,0 +1 @@ +usr/share/spdk/scripts \ No newline at end of file diff --git a/debian/spdk-tools.install b/debian/spdk-tools.install index abb838e..70baeed 100644 --- a/debian/spdk-tools.install +++ b/debian/spdk-tools.install @@ -1 +1,2 @@ -usr/bin/* \ No newline at end of file +usr/bin/* +usr/share/spdk/scripts/* \ No newline at end of file diff --git a/spdk.spec b/spdk.spec index f806026..2059803 100644 --- a/spdk.spec +++ b/spdk.spec @@ -11,7 +11,7 @@ Name: spdk Version: 22.01.2 -Release: 3%{?dist} +Release: 4%{?dist} Epoch: 0 Summary: Set of libraries and utilities for high performance user-mode storage @@ -229,6 +229,9 @@ rm -f %{buildroot}/%{_libdir}/*.a %changelog +* Wed Jan 18 2023 Brian J. Murrell - 0:22.01.2-4 + - Keep in sync with Debian build + * Tue Jan 10 2023 Tom Nabarro - 0:22.01.2-3 - Add patch to fix build with glib 2.3.