From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BF5D41384B4 for ; Fri, 11 Dec 2015 21:01:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2659DE07F9; Fri, 11 Dec 2015 21:01:20 +0000 (UTC) Received: from mo4-p05-ob.smtp.rzone.de (mo4-p05-ob.smtp.rzone.de [81.169.146.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0AF34E07D4 for ; Fri, 11 Dec 2015 21:01:17 +0000 (UTC) X-RZG-AUTH: :IW0NeWCpcPchHrcnS4ebzBgQnKHTmUiSF2JlOcyy9p4roSnp5yQo4oJ5cg== X-RZG-CLASS-ID: mo05 Received: from pinacolada.localnet (88-133-183-17.hsi.glasfaser-ostbayern.de [88.133.183.17]) by smtp.strato.de (RZmta 37.14 AUTH) with ESMTPSA id z046d9rBBL1F40h (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Fri, 11 Dec 2015 22:01:15 +0100 (CET) From: "Andreas K. Huettel" To: gentoo-dev@lists.gentoo.org Subject: [gentoo-dev] perl-module.eclass EAPI=6 support Date: Fri, 11 Dec 2015 22:01:09 +0100 User-Agent: KMail/1.13.7 (Linux/4.2.3; KDE/4.14.14; x86_64; ; ) Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201512112201.15354.dilfridge@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: a25a7dd0-1ee7-4012-a4d2-9d59bb0c5213 X-Archives-Hash: 68bd370188d2cbc813324561bf9f9d98 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Hey all, as replies to this mail follow proposed updates to perl-module.eclass. Basically the plan it to use the EAPI step to sanitize API. This leads to a lot of conditionals, which can and will go away again some time after all Perl packages are updated to EAPI=6. That is doable; after all, we're EAPI=5 only right now already. The patches can probably be squashed a bit, but I leave them as logical steps now. Feel free to criticise my bash, it's definitively not my first language. Cheers, Andreas About the motivation of the patches: 0001-perl-module.eclass-Allow-EAPI-6-ban-PERL_EXPORT_PHAS.patch * So far the variable PERL_EXPORT_PHASE_FUNCTIONS (defaulting to yes) could be set to "no" to get helper functionality but no phase functions. Instead, now inherit perl-functions.eclass. * The auto-added dependency on Perl drops the [-build(-)] use-flag requirement (that useflag has been gone for many years). 0002-perl-module.eclass-Remove-references-to-perlinfo_don.patch * Doesn't really belong in this patch series; it removes a leftover from the perl-module vs perl-functions eclass split. Should not change anything. 0003-perl-module.eclass-Just-go-ahead-when-calling-config.patch * So far the configure phase could not run twice (for reasons lost in the mists of history). Now in EAPI=6 it's just doing what it's told. 0004-perl-module.eclass-Use-default-unpacking-from-EAPI-6.patch * Don't inherit unpacker.eclass in EAPI=6, use default unpacking code, don't export unpack phase and die if someone tries to call it anyway. Nuff said. 0005-perl-module.eclass-Use-eapply-from-EAPI-6-on-and-alw.patch * From EAPI=6 on use eapply and eapply_user instead of epatch and epatch_user 0006-perl-module.eclass-Introduce-MODULE_NAME-and-MODULE_.patch * This patch introduces two new variables but should not change behaviour for any EAPI. Simplifying the code for later conditionals. 0007-perl-module.eclass-Do-not-do-any-magic-with-MY_.-var.patch * This eclass is full of magic of the type of "Set MY_xxx before inheriting, and I'll automatically use it somehow instead of xxx". I think this is majorly silly since 1) MY_xxx is no proper API, and 2) it was never documented anyway. So, in EAPI=6 ignore MY_PN, MY_P, and MY_S and use MODULE_PN and MODULE_P instead. 0008-perl-module.eclass-Document-variables-available-in-E.patch * Documentation. 0009-perl-module.eclass-Use-DIST_-prefix-instead-of-MODUL.patch * What we're downloading from CPAN are not actually "modules" (like CGI.pm) but "module distributions" (like CGI.tar.gz containg a set of modules). So, change all control variables that use the MODULE_ prefix to DIST_ 0010-perl-module.eclass-Rename-SRC_TEST-to-DIST_TEST-in-E.patch * The variable SRC_TEST used to allow some control over the testing phase (run it, run tests parallelized, skip it). Named DIST_TEST in EAPI=6 now for consistency (and gets more functionality below). 0011-perl-module.eclass-Introduce-DIST_TEST_OVERRIDE-in-E.patch * Add functionality for ebuild authors: even if the ebuild specifies that e.g. tests should not be run or run single-threaded, allow in EAPI=6 to override that from make.conf or package.env. 0012-perl-module.eclass-Minor-docu-improvements.patch 0013-perl-module.eclass-Make-some-former-warnings-fatal-t.patch * Basically, get rid of eutils.eclass in EAPI=6 (and we need to drop eqawarn calls) 0014-perl-module.eclass-Rewrite-src_test-for-EAPI-6.patch * Rewrite of the test phase for EAPI=6. Adds options to control test verbosity and switch network tests (something that might or might not work depending on upstream cooperativity). 0015-dev-perl-CGI-Add-EAPI-6-test-ebuild.patch * Example ebuild... - -- Andreas K. Huettel Gentoo Linux developer dilfridge@gentoo.org http://www.akhuettel.de/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.1 iQJ8BAEBCgBmBQJWazmVXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ0RkJDMzI0NjNBOTIwMDY5MTQ2NkMzNDBF MTM4NkZEN0VGNEI1Nzc5AAoJEOE4b9fvS1d5/iAQALh2L7WHTVWGcqu2wOI33o3K A8QnluTpxmYjGNhNz1gBtjPoUQ7AZrtfhIbYCUO6oIQYG3hL2l2wllZQlYBZYEUw 72yAGo6z3FYpQG0S/wBMESNJyRcZ5RnKoLKxPE+k/O8aPqjcS8AuWbJry7FN5eVS R5BI/jrO2G4wFrAt07sMSNzHGvAcStdGfkE0fWXBTfyJS7mS1X+cobnVLkFYFqF3 Ega390yxQ8kxAO5b0d7l/vXTsn0AcryCK5DajY6DlCkDX+iAuS/5TuGB62OlMJ+d UZOcNTGwlSqNodxPnbAy0jBMdd6JfCYdYJOT4k1oNBSUgszvm5nzezgy1sV6yGyC Na8wqYleRpRQdeUDr25SAVnbgjAioG+idbYVSE5WSXP9dO9DNaeX+E+Zk9PXcnNe jS5og84DSAt774d45i/HhiNzvmhNWIeCD8Kf3Z7M2bTtjinYKV0bgCUOIV0pSJy9 BUtHqcBHRAJSI2ShVh7cNvOj5DV2TbHtQvMRvRjOa/T9yisG6EcFLaF7Q4FIEfSq JaEzPHqvcpAkWjwedoGYpuMGN6FUFH+pQCkrM0BXED1G/XlN8KLfbSyuYsPlO1Dt vgZIxzwH1WutBGosN0kGkH53ED5s2nITNhXivezunraRyEw/nwrdVEZBJKYrUztF uaSTW5wKapK7B9Wnjwli =Mawt -----END PGP SIGNATURE-----