[med-svn] [Git][med-team/libstreamvbyte][master] 3 commits: d/p/fix-baseline.patch: Remove march=native to fix baseline

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Wed Aug 18 20:53:33 BST 2021



Nilesh Patra pushed to branch master at Debian Med / libstreamvbyte


Commits:
60682b4c by Nilesh Patra at 2021-08-19T01:05:23+05:30
d/p/fix-baseline.patch: Remove march=native to fix baseline

- - - - -
75f423f7 by Nilesh Patra at 2021-08-19T01:05:40+05:30
Upload to unstable

- - - - -
adf31feb by Nilesh Patra at 2021-08-19T01:23:20+05:30
d/salsa-ci.yml: disable blhc for now

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/fix-baseline.patch
- debian/patches/series
- debian/salsa-ci.yml


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+libstreamvbyte (0.4.1-2) unstable; urgency=medium
+
+  * d/p/fix-baseline.patch: Remove march=native to fix baseline
+
+ -- Nilesh Patra <nilesh at debian.org>  Thu, 19 Aug 2021 01:05:27 +0530
+
 libstreamvbyte (0.4.1-1) unstable; urgency=medium
 
   [ Andreas Tille, Nilesh Patra]


=====================================
debian/patches/fix-baseline.patch
=====================================
@@ -0,0 +1,44 @@
+Description: Remove march=native, remove NEON specific flags to match baseline
+Author: Nilesh Patra <nilesh at debian.org>
+Forwarded: not-needed
+Last-Update: 2021-08-19
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -67,12 +67,6 @@
+ install(
+   TARGETS streamvbyte streamvbyte_static
+   DESTINATION lib)
+-## -march=native is not supported on some platforms
+-if(NOT MSVC)
+-if(NOT STREAMVBYTE_DISABLE_NATIVE)
+-set(OPT_FLAGS "-march=native")
+-endif()
+-endif()
+ 
+ set(CMAKE_C_FLAGS "${STD_FLAGS} ${OPT_FLAGS} ${INCLUDE_FLAGS} ${WARNING_FLAGS} ${SANITIZE_FLAGS} ")
+ 
+--- a/Makefile
++++ b/Makefile
+@@ -5,19 +5,12 @@
+ 
+ PROCESSOR:=$(shell uname -m)
+ 
+-ifeq ($(PROCESSOR), aarch64)
+-# for 64-bit ARM processors
+-CFLAGS = -fPIC -std=c99 -O3 -Wall -Wextra -pedantic -Wshadow -D__ARM_NEON__
+-else ifeq ($(PROCESSOR), armv7l)
+-# for 32-bit ARM processors
+-CFLAGS = -fPIC -std=c99 -O3 -Wall -Wextra -pedantic -Wshadow
+-else
++
+ # Here we expect x64
+ # Formally speaking, we only need SSE4, at best, but code checks for AVX
+ # since MSVC only allows to check for AVX and nothing finer like just SSE4
+-CFLAGS = -fPIC -march=native -std=c99 -O3 -Wall -Wextra -pedantic -Wshadow
+-endif
+-LDFLAGS = -shared
++CFLAGS += -g -fPIC -std=c99 -O3 -Wall -Wextra -pedantic -Wshadow
++LDFLAGS += -shared
+ LIBNAME=libstreamvbyte.so.0.0.1
+ LNLIBNAME=libstreamvbyte.so
+ all:  unit $(LIBNAME)


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 soversion.patch
+fix-baseline.patch


=====================================
debian/salsa-ci.yml
=====================================
@@ -2,3 +2,6 @@
 include:
   - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
   - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
+
+variables:
+  SALSA_CI_DISABLE_BLHC: 1



View it on GitLab: https://salsa.debian.org/med-team/libstreamvbyte/-/compare/ca469774be3da0a5491ec3b972462ca1e1806c74...adf31febf87e5edebcfcbf4a26dfe061c32b85f6

-- 
View it on GitLab: https://salsa.debian.org/med-team/libstreamvbyte/-/compare/ca469774be3da0a5491ec3b972462ca1e1806c74...adf31febf87e5edebcfcbf4a26dfe061c32b85f6
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210818/d89d061f/attachment-0001.htm>


More information about the debian-med-commit mailing list