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

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Tue Dec 16 09:46:50 GMT 2025


Hi Dandan,

On Tue, 2025-12-16 at 17:31 +0800, zhangdandan wrote:
> 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.

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

> [1] https://packages.debian.org/sid/all/python3-hdf5plugin/filelist

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer
`. `'   Physicist
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



More information about the debian-science-maintainers mailing list