Article View: linux.debian.bugs.dist
Article #3061Bug#1152371: oscar: unregistered vendor copy of botan
From: Helmut Grohne
Date: Mon, 02 Nov 2026 20:50
Date: Mon, 02 Nov 2026 20:50
67 lines
4896 bytes
4896 bytes
Hi Sergio,
On Sun, Nov 01, 2026 at 09:31:27PM -0500, Sergio Durigan Junior wrote:
> I don't vehemently disagree with you, but if upstream chose to keep
> -Werror in the release then I tend to follow their lead here. For
> example, OSCAR has this snippet in their .pro file:
>
> --8<---------------cut here---------------start------------->8---
> # Always treat warnings as errors, even (especially!) in release
> QMAKE_CFLAGS += -Werror
> QMAKE_CXXFLAGS += -Werror
> --8<---------------cut here---------------end--------------->8---
>
> So using -Werror in the release build was intentional. I understand we
> may see FTBFSes due to that, but I'm personally willing to go through
> the trouble of reporting problems upstream in this case.
To me, that's precisely the problem. Keeping -Werror in your CI allows
you to go through the trouble of handling those FTBFSes. Enabling it in
the package makes *others* go through that trouble.
> Having said that, I noticed that my last upload did build correctly on
> s390x:
>
> https://buildd.debian.org/status/fetch.php?pkg=oscar&arch=s390x&ver=2.1.0-2&stamp=1793330527&raw=0
No idea what's different between the cross build and the native one, but
we agree on not spending further effort here:
> Ah, right. I thought this was a problem with OSCAR itself. In this
> case, let's keep things in this bug.
> It wasn't as hard as I was thinking, although TBH I haven't checked if
> upstream is patching their amalgamation of botan (I don't think so).
>
> I've just uploaded the package to experimental; feel free to take a look
> at the patch and let me know. I will probably give it a week before
> uploading to unstable, unless upstream agrees with my changes.
I spent a brief look and it mostly looks fine. In principle, this could
be upstreamable if changing two more aspects. I guess upstream would
want to keep the vendor copy, so adding a conditional for selecting the
vendored vs system one would likely be required. The other aspect is
using pkg-config to discover the flags for botan. Maybe you can try this
snippet?
CONFIG += link_pkgconfig
PKGCONFIG += botan-3
> Oh, I haven't unvendored the existing botan either. We can do that
> later.
I don't think there is much point in repacking the source to remove the
vendored botan so long as it is distributable (and it is). The problem
to solve here is not copying vulnerabilities and that is achieved by
linking the system version. To me, your experimental upload fully
addresses the reported problem.
How about also looking at bookworm and trixie? Unvendoring botan there
probably is not appropriate. But maybe updating the
debian-security-support package to call oscar unsupported in those
releases would be worthwhile?
See for example
https://sources.debian.org/src/debian-security-support/1%3A14%2B2026.05.07/security-support.deb13
Helmut
Technical Details
Message-ID:
<NV78B-9tbZ-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NTeed-8rU2-13@gated-at.bofh.it> <NTJi1-8ICA-5@gated-at.bofh.it> <NUobv-94sU-5@gated-at.bofh.it> <NUQhr-9k7P-1@gated-at.bofh.it> <NTeed-8rU2-13@gated-at.bofh.it> <NUQhr-9k7P-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.dist Subject: Bug#1152371: oscar: unregistered vendor copy of botan Date: Mon, 02 Nov 2026 21:50:01 +0100 Message-ID: <NV78B-9tbZ-1@gated-at.bofh.it> References: <NTeed-8rU2-13@gated-at.bofh.it> <NTJi1-8ICA-5@gated-at.bofh.it> <NUobv-94sU-5@gated-at.bofh.it> <NUQhr-9k7P-1@gated-at.bofh.it> <NTeed-8rU2-13@gated-at.bofh.it> <NUQhr-9k7P-1@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Nov 2 20:45:17 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1152371@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-med-packaging@lists.alioth.debian.org X-Debian-Pr-Message: followup 1152371 X-Debian-Pr-Package: src:oscar X-Debian-Pr-Keywords: pending security X-Debian-Pr-Source: oscar MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000293 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 67 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: 1152371@bugs.debian.org X-Original-Date: Mon, 2 Nov 2026 12:04:51 +0100 X-Original-Message-ID: <20261102110451.GA1920252@subdivi.de> X-Original-References: <20261027200150.GA485264@subdivi.de> <87a4nwvwkn.fsf@sergiodj.net> <20261030055804.GA3105568@subdivi.de> <87jymwufpc.fsf@sergiodj.net> <20261027200150.GA485264@subdivi.de> <87jymwufpc.fsf@sergiodj.net>