#1123040 python-hdf5plugin: Use the -margin=native parameter

#1123040#5
Date:
2025-12-16 09:31:00 UTC
From:
To:
Hello maintainer,
I recently discovered that python-hdf5plugin is built with the
-march=native GCC option.
Some of the logs are follows,
```
INFO:root:x86_64-linux-gnu-gcc -g -O2
-Werror=implicit-function-declaration 
-ffile-prefix-map=/build/reproducible-path/python-hdf5plugin-5.1.0=. 
-fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 
-fPIC -I/usr/include/python3.13 -c /tmp/tmpdka9vugw/source.c -o 
/tmp/tmpdka9vugw/tmp/tmpdka9vugw/source.o -march=native
```
The details can be found at
https://buildd.debian.org/status/fetch.php?pkg=python-hdf5plugin&arch=all&ver=5.1.0-1&stamp=1745501392&raw=0.

I checked that many packages disable -march=native.

Please pay attention to the above phenomenon.

Best regards,
Dandan Zhang

#1123040#10
Date:
2025-12-16 09:46:50 UTC
From:
To:
Hi Dandan,

While your analysis is partially correct, you're missing the important information that
the C code compiled in this package is not being shipped in the actual package [1]:

/usr/lib/python3/dist-packages/hdf5plugin-5.1.0.egg-info/PKG-INFO
/usr/lib/python3/dist-packages/hdf5plugin-5.1.0.egg-info/dependency_links.txt
/usr/lib/python3/dist-packages/hdf5plugin-5.1.0.egg-info/requires.txt
/usr/lib/python3/dist-packages/hdf5plugin-5.1.0.egg-info/top_level.txt
/usr/lib/python3/dist-packages/hdf5plugin/__init__.py
/usr/lib/python3/dist-packages/hdf5plugin/_config.py
/usr/lib/python3/dist-packages/hdf5plugin/_filters.py
/usr/lib/python3/dist-packages/hdf5plugin/_utils.py
/usr/lib/python3/dist-packages/hdf5plugin/_version.py
/usr/lib/python3/dist-packages/hdf5plugin/test.py
/usr/share/doc/python3-hdf5plugin/changelog.Debian.gz
/usr/share/doc/python3-hdf5plugin/changelog.gz
/usr/share/doc/python3-hdf5plugin/copyright

So, I think it's safe to ignore the problem.

Adrian