GNU bug report logs - #37300
Imported packages' indentation doesn't respect Guix conventions

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Maxim Cournoyer <maxim.cournoyer@HIDDEN>; dated Wed, 4 Sep 2019 03:18:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 4 Sep 2019 03:17:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 03 23:17:22 2019
Received: from localhost ([127.0.0.1]:60735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1i5LnO-0003oI-8u
	for submit <at> debbugs.gnu.org; Tue, 03 Sep 2019 23:17:22 -0400
Received: from lists.gnu.org ([209.51.188.17]:33351)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1i5LnL-0003oA-Op
 for submit <at> debbugs.gnu.org; Tue, 03 Sep 2019 23:17:20 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:48046)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1i5LnK-0000LM-EY
 for bug-guix@HIDDEN; Tue, 03 Sep 2019 23:17:19 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 SPOOFED_FREEMAIL autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <maxim.cournoyer@HIDDEN>) id 1i5LnJ-0001Q6-C4
 for bug-guix@HIDDEN; Tue, 03 Sep 2019 23:17:18 -0400
Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]:38966)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <maxim.cournoyer@HIDDEN>)
 id 1i5LnJ-0001Pm-4T
 for bug-guix@HIDDEN; Tue, 03 Sep 2019 23:17:17 -0400
Received: by mail-pg1-x534.google.com with SMTP id u17so10388684pgi.6
 for <bug-guix@HIDDEN>; Tue, 03 Sep 2019 20:17:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:mime-version;
 bh=8d+iQzVjdBZ5jVwJSYRMREGX4RlVjyq89U/f/mKPlSI=;
 b=B0csNU7xgjjFv5MhBX7koK/5+1OZju8lafD3TQaRWa/LYWR4mPG031Bsfy4Pw9lf1V
 HoulThLH7ILrrqYrb13cZDFnUGABrzlsgQhGFiQdL3iaHhi6mAmeyEXHDEsJmQgwVO5H
 NBQ9jhn1HxJSgpIszm3SD5WoX32hfUuZYO8DmfiiFdKIjflhLgQv0OYDBw28nNfY5vXt
 AoJeNDMswmsTjW/dcDf+xI/aAuiq8Q+6a8WEso6ah8xTf4fzBRNYZo4fPm7siCp10gJv
 FFCupnCzfxvS/i40TE1bY4pVfuQxMmfmSWtpz8Ah/YUNABU6dVHXd/EELHWmwl+1ggN6
 6afg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:mime-version;
 bh=8d+iQzVjdBZ5jVwJSYRMREGX4RlVjyq89U/f/mKPlSI=;
 b=ZrLNB4VhP2wtyB+xRyW3f1ILHOLe1RYVNvWR9DrZ5Q//WAusnq9hIOYvKcrTDTg//+
 IA5yDtxPBGGLm2qCTzDXM5GCwGJl2lB1OhiwnZn3HisOwL6+w5MECW/z+FMNMeKDH8Z4
 1JWlSexL9UVM5rER9jYSzS/aDYfzfxnRBt9qvKCEhx9UyslBPavgBGL9dGZtRs7YXxdx
 sBQFJkeUUrfaXhJBX1W8l45qkvmBQw702BLw8HW0Zj9R7BSuQR0GVDGCcseFjAwIY4Dg
 +qfI/zxo5Vx/JUbgZ5Ii5azDUboAylXZlt7jWFIRwx8nE56Uk3RhHop52Duv3XbPqLWc
 yJYA==
X-Gm-Message-State: APjAAAVTXGsX/HNgIkzKwj7lFp2N2u/i29l8SnePe2ZsWr2ClST/M/50
 yJem1x5mT2b8GpONZlINsrpVZ783
X-Google-Smtp-Source: APXvYqyFoxV82kCGgy4H3k7dlZ2d56iVmHcvm0GFf1hbwu4j6Zge7saUeEFzjsVs07Jk4GVPR36TpQ==
X-Received: by 2002:aa7:9117:: with SMTP id 23mr20696649pfh.94.1567567034836; 
 Tue, 03 Sep 2019 20:17:14 -0700 (PDT)
Received: from x200 ([240f:c7:38e9:1:314b:485c:9ba4:72c6])
 by smtp.gmail.com with ESMTPSA id y14sm15934511pge.7.2019.09.03.20.17.13
 for <bug-guix@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 03 Sep 2019 20:17:13 -0700 (PDT)
From: Maxim Cournoyer <maxim.cournoyer@HIDDEN>
To: bug-guix <bug-guix@HIDDEN>
Subject: Imported packages' indentation doesn't respect Guix conventions
Date: Wed, 04 Sep 2019 12:17:10 +0900
Message-ID: <87woeoycll.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::534
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

The package definitions imported by Guix importers do not respect Guix
conventions regarding indentation.

Consider:

guix pypi import transaction

(package
  (name "python-transaction")
  (version "2.4.0")
  (source
    (origin
      (method url-fetch)
      (uri (pypi-uri "transaction" version))
      (sha256
        (base32
          "17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
  (build-system python-build-system)
  (propagated-inputs
    `(("python-zope.interface" ,python-zope.interface)))
  (native-inputs
    `(("python-coverage" ,python-coverage)
      ("python-mock" ,python-mock)
      ("python-nose" ,python-nose)))
  (home-page
    "https://github.com/zopefoundation/transaction")
  (synopsis "Transaction management for Python")
  (description "Transaction management for Python")
  (license #f))

Re-identing this in Emacs with the Guix .dir-local.el indentation
customizations yields:

(define-public python-transaction
  (package
    (name "python-transaction")
    (version "2.4.0")
    (source
     (origin
       (method url-fetch)
       (uri (pypi-uri "transaction" version))
       (sha256
        (base32
         "17wz1y524ca07vr03yddy8dv0gbscs06dbdywmllxv5rc725jq3j"))))
    (build-system python-build-system)
    (propagated-inputs
     `(("python-zope.interface" ,python-zope.interface)))
    (native-inputs
     `(("python-coverage" ,python-coverage)
       ("python-mock" ,python-mock)
       ("python-nose" ,python-nose)))
    (home-page
     "https://github.com/zopefoundation/transaction")
    (synopsis "Transaction management for Python")
    (description "Transaction management for Python")
    (license #f)))

Multiple record fields indentation offset is set to 1 instead of the
regular 2.

This is produced by the function pretty-print from ice-9. Maybe there's
a way to configure the indentation rules used by pretty-print?




Acknowledgement sent to Maxim Cournoyer <maxim.cournoyer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#37300; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.