From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gLZDMIshXGcEmgAA62LTzQ:P1 (envelope-from ) for ; Fri, 13 Dec 2024 11:59:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gLZDMIshXGcEmgAA62LTzQ (envelope-from ) for ; Fri, 13 Dec 2024 12:59:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VtHpoByJ; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KRZ8NUid; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734091147; a=rsa-sha256; cv=none; b=Ss5YrA9F9TrJEzAe7Vvo1ZHLIpmHWohvRk08Aoix7mpMDhXvi2E1RdMhwHKOjvxfiGOnjU VUsXgqXe54Q3ve2be6F3bRZN1btiWF7TGIfc5xVYXvOQnsGzpniVyOHYwKyebpcgpelvkT RCD3X7ObRV+4X4SF9rYPFU0fF1nYeeXZIQYc+uUOvQrlV3sSC0Nseg3Ahq8rwopo2o1lBk zWktn2OLYF5CKEAZ4C0RJqWOsj+AgNtFN22Gwmxcv6ms881YF4vyz41RBrCSlWACs0iPdZ ZFmBtKRs+zkC2d/OL3NCKvTBYFHxiGA51KohLWd2igFNhJZTuR95Iqep5j+JPw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=VtHpoByJ; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=KRZ8NUid; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734091147; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=i5VzB2z9ek0RR+JcjyK/7F6+wpnR7nxaRt58CIUmlmc=; b=GU8djSE+qbuUkRTv+SQS3LFk42pPdytd1j0ygdjJOsNVKjcm652bNWDuRhYdTrRQDavyJS CALMFdqrsZLofh3ZOsX/1tlXrAAJNiIKPhdUfIUpMrcWq79Ig2+ItQtPx1Y9loZ+XoRA3U h6Rp1vLOCt26hxhShvrwKBMmZxi5fVdFhn3RPPt3rLCUHsIWTecy9x9mLbnSVH4GzZVuBr HTf2gyA0jUZ4E3SPlE2jZr04TjPTsJFA6UryT3EdYIpFWh8zLZjXg6pg78BGaNUbslZz1F ALd9i7TqcOH3p/tYMAkAhPI4kNTpzoWKeoNp9aa0cHbklnzlvgtg+XK9iiS4Gw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3DA4879551 for ; Fri, 13 Dec 2024 12:59:07 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM4K1-0005lg-2z; Fri, 13 Dec 2024 06:59:05 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM4Jz-0005kb-7C for bug-guix@gnu.org; Fri, 13 Dec 2024 06:59:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tM4Jy-0007Uf-Uf for bug-guix@gnu.org; Fri, 13 Dec 2024 06:59:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=i5VzB2z9ek0RR+JcjyK/7F6+wpnR7nxaRt58CIUmlmc=; b=VtHpoByJ6clSqht4LNtZLibN2Vn792UnYT9xRTPjrYG265VK6WmNVhWnG/9iU9W0v8xH2hasOhtm+tUSpMDwa/QIurl6ZkeBSsm5C/boPXj9ddFEcs9HEmySy/wSjUmHJ6n9wM0rV/+W3jly/m+wIhRx1p9Db7mVbHSG75bbtsnbhpViiA0Xa7OyWXHmu+ThriTYlwEc2xNpb2CkcU01jVTdnwvDTH2c37sVYlFNo7nrVk/41wZX+g1VRRSfT7/bXql8bBaA7Nj3GtaJ2MRk9lxFGZW3u6iKeDXuhd9TG5OBUizSP2JFLoHtkvzbMMzYpe2ryqAdeJ63cA/wk3zHrg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tM4Jy-00025O-EV for bug-guix@gnu.org; Fri, 13 Dec 2024 06:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#73816: python-django's manage.py tries to use a hard-coded python executable Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 13 Dec 2024 11:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73816 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Gabriel Wicki Cc: 73816@debbugs.gnu.org Received: via spool by 73816-submit@debbugs.gnu.org id=B73816.17340911357993 (code B ref 73816); Fri, 13 Dec 2024 11:59:02 +0000 Received: (at 73816) by debbugs.gnu.org; 13 Dec 2024 11:58:55 +0000 Received: from localhost ([127.0.0.1]:41850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM4Jr-00024j-3Q for submit@debbugs.gnu.org; Fri, 13 Dec 2024 06:58:55 -0500 Received: from mail-wm1-f49.google.com ([209.85.128.49]:45363) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tM4Jn-00024Z-SO for 73816@debbugs.gnu.org; Fri, 13 Dec 2024 06:58:53 -0500 Received: by mail-wm1-f49.google.com with SMTP id 5b1f17b1804b1-4361c705434so11956025e9.3 for <73816@debbugs.gnu.org>; Fri, 13 Dec 2024 03:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734091071; x=1734695871; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=i5VzB2z9ek0RR+JcjyK/7F6+wpnR7nxaRt58CIUmlmc=; b=KRZ8NUid06gcv+JUwK+HGkIJMWP63t0bBxKszI54iT+3F3T5gpJkQTn7I6K4RQS5u0 btaTyzLWeEhD3yc9Dgs0Hk80DZQ1FVHnqm8wivUtkNJUdTUnMwcidN6y/Q7XhGyo2DVM 2u/rZXVeqzJwBSzEKjnPKrPWHQ0qvoSStiOp50jRJ0qPmYLU6+aGOEGiHCpjp2bVpNGY nEdD9hgxsIyRwxzwDPVMFVp55biZLg0017+65yJKyLuMWjSLYzTUcwQrWXPzDqZs0H4D D6k82SVP4x5gd6dyTQvQrottjBGcsRPBEiVfM1OAEx+ucohFcfM64ugpjKzEahtCb7fl yLJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734091071; x=1734695871; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=i5VzB2z9ek0RR+JcjyK/7F6+wpnR7nxaRt58CIUmlmc=; b=GLdwGgLLV1vLVhTojSGeEJkNxDWnPsISni3nJVm3aAUlvgpyhVumRr+eqUBu2d/zj9 loFt8qiZTphae+JQ/TTq6t0evP1bIMirFtniQ17VcAiGY6khF79jIgOSngZLBOSKcOpO RJfNeDvYRQeuBVdTCd+bRcNnm4Fy6ot4jNo6NO3J2ARwkpH6trW9MdC2uon71SjWt4wR Qh6Y3v/twrJ0NcoeZuHR+5C0Wppx/CFmxQNPEbznCrvK9F2HCBFehevBOSfXbbeCf8Kh EeIC0Wrbc8GNkQOt03hbGULUxyZ9vdTzVXURxsDv5oLj5fNSli7j576ZOoaMCjBCzQE+ Ar3A== X-Gm-Message-State: AOJu0YzImW/pMbwZg2QdkXdr/QYaiDqTh+7zHf+spJL40Y10CLocZtvj 0Dm7cYdbt5a1nV6QnAF36BfA4jY5PUppenM9yudICBlg+ORNjcs/Q81+Hw== X-Gm-Gg: ASbGncsW5Xw8+zTFyHE0HqLqokpBAp5d2DHr936IXXMA7Qy5CpNQqaA+G2YPSxmJ124 QjLEsG3drfcxYK2zUf8z8sVGSbKK4IXDUbxBOA5ve83dx1/Awz/OLmaHLKN+TFV1VyOZhNox6hi tVQQi3xzzhGBtyrJPVcNXq8c2Ul1CADhrpeKLnmd/oWc5ewxVBFYDwp4J6VtUUeaSg7gMkhui7c EaiMOVKa7/ncwvmxWlI9gCNMQqpIO8XpM+EppLJ8L50B8DX5Ayc X-Google-Smtp-Source: AGHT+IEyD96/rIQjDZFHieYKobk/tqDyAaeqOHWKMUFdq2rUqpipF+8/Z77Wz9ZH+OOQjmdZHolryw== X-Received: by 2002:a05:6000:402a:b0:386:459e:655d with SMTP id ffacd0b85a97d-38880ad1066mr1657839f8f.20.1734091070876; Fri, 13 Dec 2024 03:57:50 -0800 (PST) Received: from lili ([148.60.59.223]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3878251bcabsm7088247f8f.87.2024.12.13.03.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 03:57:50 -0800 (PST) From: Simon Tournier In-Reply-To: References: <877c87zfz4.fsf@gmail.com> Date: Fri, 13 Dec 2024 12:57:44 +0100 Message-ID: <87bjxf6bif.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 3DA4879551 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.20 X-Spam-Score: -7.20 X-TUID: y2XVltKnZqV5 Hi, On Wed, 11 Dec 2024 at 12:48, Gabriel Wicki wrote: > If you have any idea on how to patch that and could point me in that > direction, I'll gladly send in a patch or two! It needs to replace the phases something like: --8<---------------cut here---------------start------------->8--- 1 file changed, 16 insertions(+) gnu/packages/django.scm | 16 ++++++++++++++++ modified gnu/packages/django.scm @@ -99,6 +99,22 @@ (define-public python-django-4.2 (setenv "PYTHONPATH" "..") (apply invoke "python" "runtests.py" test-flags)) (format #t "test suite not run~%")))) + (replace 'patch-source-shebangs + (lambda _ + (for-each patch-shebang + (find-files "." + (lambda (file stat) + (and (eq? 'regular (stat:type stat)) + (not (string-suffix? "py-tpl" file)))) + #:stat lstat)))) + (replace 'patch-generated-file-shebangs + (lambda _ + (for-each patch-shebang + (find-files "." + (lambda (file stat) + (and (eq? 'regular (stat:type stat)) + (not (string-suffix? "py-tpl" file)))) + #:stat lstat)))) ;; XXX: The 'wrap' phase adds native inputs as runtime dependencies, ;; see . The django-admin script typically ;; runs in an environment that has Django and its dependencies on --8<---------------cut here---------------end--------------->8--- Feel free to submit a patch. :-) Cheers, simon