Bug#1079187: openmx: Build fixes
Guillem Jover
guillem at debian.org
Wed Aug 21 04:05:20 BST 2024
Source: openmx
Source-Version: 3.8.5+dfsg1-1
Severity: normal
Tags: patch
Hi!
This package patches the upstream build system to include a dpkg make
fragment file so that it can pass build flags. This is rather
unorthodox, and makes the patch non-eligible for upstream submission.
And in addition, because the fragment file is getting included from a
subdir, which is an unsupported usage, this is causing errors such as:
,---
dpkg-buildapi: error: cannot read debian/control: No such file or directory
/bin/sh: 1: test: Illegal number:
`---
While checking how to fix this, I ended up noticing several other
issues, which I've fixed with the attached patch. I've only partially
tested it, because the packages currently FTBFS.
The patch does the following:
- Remove unused and wrongly set DEB_UPSTREAM_VERSION variable.
- Include dpkg/architecture.mk and dpkg/buildflags.mk and export all
build flags from debian/rules.
- Set -Dnosse into CFLAGS for DEB_HOST_ARCH_CPU other than amd64 from
debian/rules (instead of the upstream makefile, and instead of
using the wrong DEB_HOST_MULTIARCH variable).
- Change CC, FC and LIB variables to use CPPFLAGS, CFLAGS, FFLAGS and
LDFLAGS, instead of using explicit dpkg make fragments or programs.
Thanks,
Guillem
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openmx-build-fixes.patch
Type: text/x-diff
Size: 3030 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20240821/60e6d02f/attachment.patch>
More information about the debian-science-maintainers
mailing list