[From nobody Tue Jun 30 20:51:06 2026
Received: (at submit) by bugs.debian.org; 23 Jun 2026 08:15:21 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
 (2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-15.2 required=4.0 tests=BAYES_00,
 BODY_INCLUDES_PACKAGE,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,
 DKIM_VALID_EF,HAS_PACKAGE,SPF_HELO_NONE,SPF_NONE autolearn=ham
 autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 9; hammy, 100; neutral, 25; spammy, 0.
 spammytokens: hammytokens:0.000-+--H*Ad:N*Bug,
 0.000-+--H*Ad:N*Tracking, 0.000-+--HTo:N*Debian, 0.000-+--HTo:N*Bug,
 0.000-+--HTo:N*System
Return-path: &lt;helmut@subdivi.de&gt;
Received: from isilmar-4.linta.de ([136.243.71.142]:55620)
 by buxtehude.debian.org with esmtps
 (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
 (Exim 4.96) (envelope-from &lt;helmut@subdivi.de&gt;) id 1wbwHs-0004Jn-1q
 for submit@bugs.debian.org; Tue, 23 Jun 2026 08:15:21 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=subdivi.de;
 s=k29.isilmar-4; t=1782202512;
 bh=Z5Wzo8H7SGSqwWsm+bAJ3delNmK3Q4IdZGSj4MpMb10=;
 h=Date:From:To:Subject:From;
 b=HYlq2w0sCv9ZS52bSDfNRMLslCDyNEeHsPB/FLyi5pKJui/odkjlNCtmb30ri5Sfv
 TIzyNW5/YJfVW0lZrk797Kuyxi+ES/NbyQY9fZkBHFgOOOEdF+l7veI5KYra1dIrVC
 8q+7konkHLdOiBlpLK/n5pReNuvrgfqL/3dM9xWgaH9UB8RKi0Jv5CKAiwZNkpvfHW
 We2jlT3HwV26eZ819hfP3ANx08uRBBtvvMG2TBVCmYY8FDhT9P9FHd9/3gh5Jw9tMN
 9lvCwt6ZtBB+1pl3S9a7lcRLNok0QDcpiU34arVht5mRKof6IdjnhrNtEqxHKJAx5g
 eaWYJnzcMsfdQ==
Received: from isilmar-4.linta.de (isilmar.linta [10.0.0.1])
 by isilmar-4.linta.de (Postfix) with ESMTP id CB6482004AF
 for &lt;submit@bugs.debian.org&gt;; Tue, 23 Jun 2026 08:15:12 +0000 (UTC)
Date: Tue, 23 Jun 2026 08:29:50 +0200
From: Helmut Grohne &lt;helmut@subdivi.de&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: python3-casadi should not use dpkg-architecture in postinst
Message-ID: &lt;20260623062950.GA24482@subdivi.de&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
X-Reportbug-Version: 13.2.0+nmu1
Delivered-To: submit@bugs.debian.org

Package: python3-casadi
Version: 3.7.0+ds2-3
Severity: important

Installing python3-casadi gives me:

| /var/lib/dpkg/info/python3-casadi.postinst: 8: dpkg-architecture: not found

Looking into its postinst reveals that it uses dpkg-architecture for
computing a path in the package at runtime. The result of this will be
wrong for foreign installation. It is not sufficient here to add a
dependency on dpkg-dev.

Instead, please compute the path at build time. Note that dh_installdeb
will substitute #DEB_HOST_MULTIARCH#.

Helmut
]