From patchwork Sat Sep 7 11:22:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1214 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 12455130FFF58 for ; Sat, 7 Sep 2019 11:22:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,LOCAL_FAKEBUSINESS=0.5,MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:55 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 3B62F15323E0E7; Sat, 7 Sep 2019 11:22:53 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:22:53 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 849A52C00B; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=kctDNhSR; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=dF2H6u5F Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id C6CE82BD7A for ; Sat, 7 Sep 2019 11:22:48 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:48 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id E77BD15323E0D0 for ; Sat, 7 Sep 2019 11:22:46 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:46 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id CAEB71F52; Sat, 7 Sep 2019 07:22:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=3Etoq6mvTkXIikN8XEJGrW/BXGy93cLfyNFDLTsqDds=; b=kctDN hSRJ5Sn5Vh/UQ9tEu7XFMCUu3Ki5Ah+sh0V/SpGduSiS6wXmXM/EvvuJM7t9pX15 J9IpRRMW4cRd7bBWjpCDimyP9e+JkOO/tTDEiY6axdFow/ECpQFcHGYVl1P14AYF oYnDcAsMA2oXWSlyTvC13yLNuBu4lho55pEOiU7E8XUOBJVaVULtv9pnM3yCz0wj 8MwgxXg1mBS4SSdjUx46evacszFo94rH5cAWbsYoJ7D8XOG/1T5jxbDtGEeNiaoO jlJrk/EbnIgVzEJnbVtVYOD4v4GtOBflXuBGQB6oul/i/KkvLVtJPX1DJ/9s7qXN hghlK4C/PjxzD/KuQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=3Etoq6mvTkXIikN8XEJGrW/BXGy93cLfyNFDLTsqDds=; b=dF2H6u5F oy5rfL5WtrT98+oBO7ujlHIOBSPHokFvpNRwP91giQEcSA/tzgizCp+Xx/5LzYs1 AqwW0U6SIDqYzKYCw2Kb04N39k6BgcRLFPQNAegbjaXqCd5ACi67rpAJItilpQ0J H20bntGohWbKHROvCIVxn7vXhuRHp75iF12cdmXQ+gN8W0UfI48/4XWq5F/1M+ql v2cpMK1dzpY9SBfZGDNDY17I/Qet7YVVWd+yYiGI8GWPtXkYI7z6mqaI2M0aLWOR QM9sc4/Wq4iiNRUVaXTnfaki5QEYd8kltD84ObGzKqrTewM4TZwTfPNJgNura2og 6TYfLL7R8Pwh5g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehsphgugidrohhrghenucfkphepudefledr udeivddrudefuddrvdefjeenucfrrghrrghmpehmrghilhhfrhhomhepvghmrghilhesvg hsohhtvghrihgtnhhonhhsvghnshgvrdgtohhmnecuvehluhhsthgvrhfuihiivgepud X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 1A0B8D6005E; Sat, 7 Sep 2019 07:22:44 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:34 +0100 Message-Id: <20190907112240.1028433-2-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 1/7] Add GPLv2 licence X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" Most of the arch-projects projects are governed by GPLv2 or GPLv2+. For the purpose of clarification, let's add this here. Signed-off-by: Daniel Edgecumbe --- COPYING | 8 + GPL-2.0 | 359 ++++++++++++++++++++++++++++++++++++++ Makefile | 3 + archiso/mkarchiso | 2 + configs/baseline/build.sh | 2 + configs/releng/build.sh | 2 + 6 files changed, 376 insertions(+) create mode 100644 COPYING create mode 100644 GPL-2.0 diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..d4a4ba8 --- /dev/null +++ b/COPYING @@ -0,0 +1,8 @@ +archiso is provided under: + + SPDX-License-Identifier: GPL-2.0 + +being under the terms of the GNU General Public License version 2 only, +according with: + + GPL-2.0 diff --git a/GPL-2.0 b/GPL-2.0 new file mode 100644 index 0000000..ff0812f --- /dev/null +++ b/GPL-2.0 @@ -0,0 +1,359 @@ +Valid-License-Identifier: GPL-2.0 +Valid-License-Identifier: GPL-2.0-only +Valid-License-Identifier: GPL-2.0+ +Valid-License-Identifier: GPL-2.0-or-later +SPDX-URL: https://spdx.org/licenses/GPL-2.0.html +Usage-Guide: + To use this license in source code, put one of the following SPDX + tag/value pairs into a comment according to the placement + guidelines in the licensing rules documentation. + For 'GNU General Public License (GPL) version 2 only' use: + SPDX-License-Identifier: GPL-2.0 + or + SPDX-License-Identifier: GPL-2.0-only + For 'GNU General Public License (GPL) version 2 or any later version' use: + SPDX-License-Identifier: GPL-2.0+ + or + SPDX-License-Identifier: GPL-2.0-or-later +License-Text: + + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/Makefile b/Makefile index 52c2c24..4ce70e7 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,6 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2005-2019 Arch Linux Release Engineering Team + V=42 INSTALL_FILES=$(wildcard archiso/initcpio/install/*) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 567a5af..7b715ee 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2005-2019 Arch Linux Release Engineering Team set -e -u diff --git a/configs/baseline/build.sh b/configs/baseline/build.sh index 7c61d03..6ebea63 100755 --- a/configs/baseline/build.sh +++ b/configs/baseline/build.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2005-2019 Arch Linux Release Engineering Team set -e -u diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 659e8de..810e3a0 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2005-2019 Arch Linux Release Engineering Team set -e -u From patchwork Sat Sep 7 11:22:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1216 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 7480F130FFF69 for ; Sat, 7 Sep 2019 11:22:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:59 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 2847615323E0F2; Sat, 7 Sep 2019 11:22:58 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:22:58 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id E1B302C409; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=o0h2KPE1; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=X0JUjxih Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 07F912BDD0 for ; Sat, 7 Sep 2019 11:22:50 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:50 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 64C1915323E0D1 for ; Sat, 7 Sep 2019 11:22:47 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:47 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 82FA51FE9; Sat, 7 Sep 2019 07:22:46 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=KbhkVoXPmrG5STCmmqxSC6HG3E/lz4uptzQPADUC870=; b=o0h2K PE1SVV7UlxhHLhidfGZhXjIRP4/B02A6/V3m09ZGrINM6xXwspFP9KqQe0mmW0oh E7Xe+dGf5CzOnFrbMhEcNLEyQV5JHTlOCLR8DtsWB6X74kbyAAnNjKV9G5fZKWem 58FXFjEl0eUsC79+KxMA9yCX4K8wDnONkoph+p/nhHJmGppw0liEViKDgIunR9xl x+bfpNnFROOwGAe0dDH/d3qiwXAgjavDY1XJX4H5BRKmMQP1mZ/Vtc0wLDHjUV0i Qz7i+BiOx+Np6t5q2+c18u07X88boiCqMPzabAGukLG1mLUVhca+dHPMos1EKxVA 81BN/gkQooti5YlKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=KbhkVoXPmrG5STCmmqxSC6HG3E/lz4uptzQPADUC870=; b=X0JUjxih iXKlDbW1TVPlbGsRyDMER0GjCdajqrfpq6dm3y85UWwdpQxB4DeM3AQ4PHAkOykB mWMPM6jO/n00jYpMYF5X5s2Igeo+Z2pch7VZQhhbAdIPtVW9qWcAOfYZdVLMRw/A NjUl47wSfMJwiY5ABr29+a02qLPppbbdUsd1Y7R5PfbzotfKrq/7zvbUpLrfzFR+ W542ss4h+T5vg4Q4GxGGXW3kvRNB/+G6ttUSBYsTIQ3LxtqSfwu3+tCwJw5OQK7g 9ZgJ7cFNhrF8cfftqVYyrtrbjg8wKPTjSK+2NHLJOgVfQ3Iz5DAxee69W3ipJ0Mz YoS+uyzecmKmIQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehrvghprhhoughutghisghlvgdqsghuihhl ughsrdhorhhgnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgrmhepmh grihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtghomhen ucevlhhushhtvghrufhiiigvpeeh X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id C1EE5D60057; Sat, 7 Sep 2019 07:22:45 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:35 +0100 Message-Id: <20190907112240.1028433-3-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 2/7] [releng] Retain the post-cleanup airootfs directory X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" Removing the pre-cleanup directory gives misleading results when diffing the results of two builds. Motivation: https://reproducible-builds.org Signed-off-by: Daniel Edgecumbe --- configs/releng/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 810e3a0..3a105df 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -1,6 +1,7 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2005-2019 Arch Linux Release Engineering Team +# Copyright (C) 2019 Daniel Edgecumbe set -e -u @@ -217,8 +218,8 @@ make_prepare() { cp -a -l -f ${work_dir}/x86_64/airootfs ${work_dir} mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" pkglist mkarchiso ${verbose} -w "${work_dir}" -D "${install_dir}" ${gpg_key:+-g ${gpg_key}} prepare - rm -rf ${work_dir}/airootfs - # rm -rf ${work_dir}/x86_64/airootfs (if low space, this helps) + rm -rf ${work_dir}/x86_64/airootfs # pre-cleanup + # rm -rf ${work_dir}/airootfs # post-cleanup } # Build ISO From patchwork Sat Sep 7 11:22:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1215 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 83F15130FFF60 for ; Sat, 7 Sep 2019 11:22:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:56 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 43ACB15323E0EC; Sat, 7 Sep 2019 11:22:55 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:22:55 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id B6A762C273; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=j8QOyE+2; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=NpVn6pDy Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 591CB2BD9F for ; Sat, 7 Sep 2019 11:22:49 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:49 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 157AD15323E0D2 for ; Sat, 7 Sep 2019 11:22:48 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:47 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 273C32086; Sat, 7 Sep 2019 07:22:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=eT8tvmEorpLOdJjLj2I79HhRPFWTcR0q7pIBgooGjZg=; b=j8QOy E+2+I1EYZwg/K9OPOZFAkXWKkC4gaS4UIz6WpuF+/7yFtFeR6WMZPImvTNlki539 S+iX/pEJ2A9QU0qfoa6EHO5/Gk+3/THYHHPtTm54x8ZYEAdfxgjHoD6FEgeHmpb3 PVQE1V7rMGEzHLjYeqdMo/zp3G4aTHhqr8tRaM4bylkibsotJISQWAG9NDop1cPP osklCLO8zGN0H7ALDfZV1ivcPCakgOOEpHKdHQNprKfEC9p1gJANSyrw4RkyjOPe 1RdTQ8M/RJIGudEYFt7Ov4iMpcijoeeys8M8CWff6BAx24I207PMx9reTsU15DvC 15RaS8MiOai1K+yKA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=eT8tvmEorpLOdJjLj2I79HhRPFWTcR0q7pIBgooGjZg=; b=NpVn6pDy ZGf/xuGD+nhyVccQ/CZmaa0baUFRnv81PUQDmNRwTibO4Z4+VWDBMIsr1I+eyBlX wLw49xCPrnfrsUCIaCdGrr5VsuPCXUGBJEv36FDQeHPFufxK4EpDDdUOqQVFpOmC h506G74sYllQlBXpZRKdYfbVo/U0gcLmU/C/fN6nFl7d7QsDPiTKKb3KYh/1s/fT TudFYrKUl1u07bd64iUUa2D5lxKUNd9tCl17bXIdWEUlm2mhEu7F2KkLIal9Z1gk nJyRLqM0kydn8QvyjPIUjzhjbK/z2v9hyfY7F8jI3evnrpszthG5v9CNapY+KDZN kvNpFUdb2MXXXA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehrvghprhhoughutghisghlvgdqsghuihhl ughsrdhorhhgnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgrmhepmh grihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtghomhen ucevlhhushhtvghrufhiiigvpeei X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 743BDD6005A; Sat, 7 Sep 2019 07:22:46 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:36 +0100 Message-Id: <20190907112240.1028433-4-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 3/7] [releng] Reproducible gzip output X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" Motivation: https://reproducible-builds.org Signed-off-by: Daniel Edgecumbe --- configs/releng/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 3a105df..419ad7d 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -140,8 +140,8 @@ make_syslinux() { cp ${work_dir}/x86_64/airootfs/usr/lib/syslinux/bios/lpxelinux.0 ${work_dir}/iso/${install_dir}/boot/syslinux cp ${work_dir}/x86_64/airootfs/usr/lib/syslinux/bios/memdisk ${work_dir}/iso/${install_dir}/boot/syslinux mkdir -p ${work_dir}/iso/${install_dir}/boot/syslinux/hdt - gzip -c -9 ${work_dir}/x86_64/airootfs/usr/share/hwdata/pci.ids > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/pciids.gz - gzip -c -9 ${work_dir}/x86_64/airootfs/usr/lib/modules/${_uname_r}/modules.alias > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/modalias.gz + gzip -nc -9 ${work_dir}/x86_64/airootfs/usr/share/hwdata/pci.ids > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/pciids.gz + gzip -nc -9 ${work_dir}/x86_64/airootfs/usr/lib/modules/${_uname_r}/modules.alias > ${work_dir}/iso/${install_dir}/boot/syslinux/hdt/modalias.gz } # Prepare /isolinux From patchwork Sat Sep 7 11:22:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1221 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 1E683130FFFD4 for ; Sat, 7 Sep 2019 11:23:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:23:16 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 27F9E15323E14D; Sat, 7 Sep 2019 11:23:13 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:23:13 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 509952C450; Sat, 7 Sep 2019 11:22:56 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=JdbFFk39; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=YujdJ4SQ Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id CAC4D2C3FD for ; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id C24ED15323E0D6 for ; Sat, 7 Sep 2019 11:22:48 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:48 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id D1F84E79; Sat, 7 Sep 2019 07:22:47 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=t4qX/pirpjuP/wlE5ChKfnTQb7eatUaz+mBC6rj6SMY=; b=JdbFF k39KfGtV0C+xvtNz1kYLaQ8ANVUtszS4q4U9fThTP1AHOn4WRo/o/SnveIFX7y+W R9RV/4ljEz9usQhZ1ZsrPXcb24tdetOSyB1h8fK2NJtWlPaize6/tCetZ53aXRAW PnSu/DZbfY7jz45h65rn+qEuXIEE3OGv+RqxH+/74w8VxuDXxqyWRysJsDCjrUoo O0Y9Nk5S5pVje9azXM4D54srf3TDt8g3EN821LbnsROUgSMz2nN7OQdFcBPffnBC FyX9LplxcpzdwrJ4qASVQWnPwaWIDWDTsc6++urjpVIUNTp64BJ4va8NESbr0+bi Yacc5Zi+KdYRbtOCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=t4qX/pirpjuP/wlE5ChKfnTQb7eatUaz+mBC6rj6SMY=; b=YujdJ4SQ 87cf8zm6r3Kw2Yolg/Y+f0eVzlXZbZWt/ZFa0DxpgJXBmHfMlFMEvFWINI2S9TYJ /rptcDR5Fm53v9El2cTquOSABABqSKTF+7cFYmXWcpAU+chmT6fAhsz9bJk7/sPU 0kAg/kMhkfWPRFOs4qOUd76AxG0Xjoqn0UhNPurujC0GwaePv5Iy7Inp6DeIjH4b bsAtEaTPV932UAchi3JjUp8br/CtL9NuK8yn1BvS8BTctsGbWxART5BgI9h10GI+ eh9m1nPBkhmroalU47ILQ0eQ/QcbibIdNEQeBl7ktBWjLWgKTVymKcJRpcM3Pu/c uqSp4dhZFo6g0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehrvghprhhoughutghisghlvgdqsghuihhl ughsrdhorhhgnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgrmhepmh grihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtghomhen ucevlhhushhtvghrufhiiigvpeei X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 26E69D60057; Sat, 7 Sep 2019 07:22:47 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:37 +0100 Message-Id: <20190907112240.1028433-5-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 4/7] [releng] Cleanup ldconfig aux-cache X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" This file appears to be generated non-deterministically. It's not necessary, so just remove it. Motivation: https://reproducible-builds.org Signed-off-by: Daniel Edgecumbe --- archiso/mkarchiso | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 7b715ee..383a967 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -1,6 +1,7 @@ #!/bin/bash # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2005-2019 Arch Linux Release Engineering Team +# Copyright (C) 2019 Daniel Edgecumbe set -e -u @@ -196,6 +197,10 @@ _cleanup () { if [[ -d "${work_dir}/airootfs/var/tmp" ]]; then find "${work_dir}/airootfs/var/tmp" -mindepth 1 -delete fi + # Reproducibility: delete ldconfig aux-cache + if [[ -f "${work_dir}/airootfs/var/cache/ldconfig/aux-cache" ]]; then + rm "${work_dir}/airootfs/var/cache/ldconfig/aux-cache" + fi # Delete package pacman related files. find "${work_dir}" \( -name "*.pacnew" -o -name "*.pacsave" -o -name "*.pacorig" \) -delete _msg_info "Done!" From patchwork Sat Sep 7 11:22:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1217 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 7BC92130FFF7D for ; Sat, 7 Sep 2019 11:23:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:23:03 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id BD90515323E0FC; Sat, 7 Sep 2019 11:23:01 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [5.9.250.164]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:23:01 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 4A4EA2C444; Sat, 7 Sep 2019 11:22:54 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=gI5FG3+v; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=BhPSFdie Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 1817E2BDD4 for ; Sat, 7 Sep 2019 11:22:51 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:51 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id A858C15323E0D9 for ; Sat, 7 Sep 2019 11:22:49 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:49 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 7FBB620BA; Sat, 7 Sep 2019 07:22:48 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=f0LAoB7GCwgMIwx2SdIZvRFdr2e+Wt0FjQplLqnDSR8=; b=gI5FG 3+vc2UNb7+cf3BmonCJqu0DMLTNIdI15BKNeFhXTqmF1GSriXEoO7yRZiNEdl9b5 kv9WhZ3UYEZoNJqWAeY6zgZLmCRfk46t6lrxtpSUBYi3FbrwVPK5jyTlIhzbNQtt 3ZUIdDhTHkUwIgB+HL+BeMB21V9aBEv14WG6QiMzgY1ggiFNUQCBvvGlhJwBYr2j brcES8qQVKNPWbnqIH5ahRfQtZQ8JfzEbzGSqE1ITDJE8OcbGCaff55+JpJ++o2l 8ETI9E0nEtJhODl293z05zWkCasIX3xKbreW/COhHGjycxyJCB6f6tTD9wR/GAva BWg4vxR73R2J1ZJ0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=f0LAoB7GCwgMIwx2SdIZvRFdr2e+Wt0FjQplLqnDSR8=; b=BhPSFdie cnEFTDt0Ne7dosg61MdTERnuAjf2/1aGB8eaXehtZe3AOMoSaKWNJcslbbs1awrg Pa3r9+tjin5lylIujStU05klRHwipFJfdmqt2rm74zOgQfuMQnfbjSWpumiNKERi zhGicSLOw3WSPepVxqbS+ZCnJMd12jdNmxbiMiqoWSyYnLCEK0uGaLfZg2JGGdMS O1Ja1rD94C/3jogNCshpjyQyxtb4Rvwps5zGxJRmUfSR0tfQ6ECudLHZe3iFE23Q xsZNhTvIZhQG7hSGNkrKlDLt/sLof70Zy6p+xGVAP9if8Z900yHGq0mcDYT6JklG 7HBbpcTKXSmRBg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehrvghprhhoughutghisghlvgdqsghuihhl ughsrdhorhhgnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgrmhepmh grihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtghomhen ucevlhhushhtvghrufhiiigvpeei X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id CEC8DD6005A; Sat, 7 Sep 2019 07:22:47 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:38 +0100 Message-Id: <20190907112240.1028433-6-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 5/7] [releng] Add and use mkreproefi reproducible EFI build tool X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" It is not possible to deterministically create FAT16 filesystems using the kernel drivers, so we add this dependency on 'mtools' and create efiboot.img using it. Motivation: https://reproducible-builds.org Signed-off-by: Daniel Edgecumbe --- Makefile | 2 ++ archiso/mkreproefi | 62 +++++++++++++++++++++++++++++++++++++++++ configs/releng/build.sh | 10 ++----- 3 files changed, 66 insertions(+), 8 deletions(-) create mode 100755 archiso/mkreproefi diff --git a/Makefile b/Makefile index 4ce70e7..1af9fdf 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 # Copyright (C) 2005-2019 Arch Linux Release Engineering Team +# Copyright (C) 2019 Daniel Edgecumbe V=42 @@ -22,6 +23,7 @@ install: install-program install-initcpio install-examples install-doc install-program: install -D -m 755 archiso/mkarchiso $(DESTDIR)/usr/bin/mkarchiso + install -D -m 755 archiso/mkreproefi $(DESTDIR)/usr/bin/mkreproefi install-initcpio: install -d $(SCRIPT_DIR) $(HOOKS_DIR) $(INSTALL_DIR) diff --git a/archiso/mkreproefi b/archiso/mkreproefi new file mode 100755 index 0000000..ba3ba12 --- /dev/null +++ b/archiso/mkreproefi @@ -0,0 +1,62 @@ +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2019 Daniel Edgecumbe + +set -e +trap '[[ -d "${_tmpdir}" ]] && rm -rf "${_tmpdir}"' exit + +_tmpdir=$(mktemp -d) +touch "${_tmpdir}/mkreproefi_was_here" + +die() { + echo $@ >&2 + set -ex + exit 1 +} + +eecho() { + echo "${@}" >&2 +} + +usagedie() { + eecho "Usage: mkreproefi INPUT OUTPUT [FS_LABEL] [SIZE]" + eecho "Create an EFI image from an input directory" + eecho "Example: SOURCE_DATE_EPOCH=1234567890 mkreproefi efi/ efi.img MYEFI 64M" + die +} + +checkdeps() { + type -P mmd > /dev/null || die "mmd not installed; install mtools?" + type -P mcopy > /dev/null || die "mcopy not installed; install mtools?" + type -P truncate > /dev/null || die "truncate not installed; install coreutils?" + type -P mkfs.fat > /dev/null || die "mkfs.fat not installed; install dosfstools?" +} + +checkdeps + +[[ ${1} == "--help" ]] && usagedie +[[ ${1} == "-h" ]] && usagedie + +[[ ${1} ]] || usagedie +_input="${1}" + +[[ ${2} ]] || usagedie +_output="${2}" + +if [[ ${3} ]]; then _fs_label="${3}"; else _fs_label="MKREPROEFI"; fi + +# Sane default. +if [[ ${4} ]]; then _size="${4}"; else _size="256M"; fi + +[[ -d "${_input}" ]] || die "${_input} is not a directory" +[[ ! -f "${_output}" ]] || die ${_output} already exists, not removing + +cp -a "${_input}"/* "${_tmpdir}"/ + +# IMPORTANT NOTE: the epoch on FAT16 is 1980-01-01, not 1970-01-01 as in UNIX. +# @315532800 is the lowest +[[ ${SOURCE_DATE_EPOCH} ]] && find "${_tmpdir}" -mindepth 1 -print0 | xargs -0 touch -hcd "@${SOURCE_DATE_EPOCH}" + +truncate -s "${_size}" "${_output}" +mkfs.fat --invariant -n "${_fs_label}" "${_output}" +find "${_tmpdir}" -mindepth 1 -type d -printf '%P\0' | sort -z | xargs -I {} -0 -n 1 mcopy -i "${_output}" -m "${_tmpdir}/{}" "::{}" diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 419ad7d..273b501 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -178,13 +178,6 @@ make_efi() { # Prepare efiboot.img::/EFI for "El Torito" EFI boot mode make_efiboot() { - mkdir -p ${work_dir}/iso/EFI/archiso - truncate -s 64M ${work_dir}/iso/EFI/archiso/efiboot.img - mkfs.fat -n ARCHISO_EFI ${work_dir}/iso/EFI/archiso/efiboot.img - - mkdir -p ${work_dir}/efiboot - mount ${work_dir}/iso/EFI/archiso/efiboot.img ${work_dir}/efiboot - mkdir -p ${work_dir}/efiboot/EFI/archiso cp ${work_dir}/iso/${install_dir}/boot/x86_64/vmlinuz ${work_dir}/efiboot/EFI/archiso/vmlinuz.efi cp ${work_dir}/iso/${install_dir}/boot/x86_64/archiso.img ${work_dir}/efiboot/EFI/archiso/archiso.img @@ -210,7 +203,8 @@ make_efiboot() { cp ${work_dir}/iso/EFI/shellx64_v2.efi ${work_dir}/efiboot/EFI/ cp ${work_dir}/iso/EFI/shellx64_v1.efi ${work_dir}/efiboot/EFI/ - umount -d ${work_dir}/efiboot + mkdir -p ${work_dir}/iso/EFI/archiso + mkreproefi ${work_dir}/efiboot ${work_dir}/iso/EFI/archiso/efiboot.img ARCHISO_EFI 64M } # Build airootfs filesystem image From patchwork Sat Sep 7 11:22:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1219 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 430A3130FFFBB for ; Sat, 7 Sep 2019 11:23:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:23:08 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id D423315323E120; Sat, 7 Sep 2019 11:23:05 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:23:05 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 7BCBE2C447; Sat, 7 Sep 2019 11:22:54 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=t01h2yEh; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=jH/Luk8f Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id 572AF2BD7A for ; Sat, 7 Sep 2019 11:22:51 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:51 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 1FDBE15323E0DC for ; Sat, 7 Sep 2019 11:22:50 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:49 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 3CBD420C3; Sat, 7 Sep 2019 07:22:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=rn2khZQbx8muzBE8IcM8kj761syNvOc+ASC5y3VQtBM=; b=t01h2 yEhv33KsgI1MUiJLykcShDQFeVovgvPBoDZ471rAd5zT9UhaQvISoOMNplkSj/w8 m/M+OOD+th/ZocEv3e2x9PIJxpLGILvY74UqeeKQMRfml9hfWqolXkl63crRPt5s EWjLo++aW0GumyOTdTdsFJlT3I0x1tYVq8h2ask3FrrJyn0GR+qp0YDnBi4bz2hU fv5Jo9HQAV57qzyGNRgdTgDJ9Q8nCEQzMD//26lY5ViU+1uqYKm6/7ClXgUoO59h FE/aNnFEwJTbfvflDO93H7jH/lZ3RKJxukLiIYksOc2TAgbuw25TBzNJK/o0X/Tx GraTcC09aglNZvQBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=rn2khZQbx8muzBE8IcM8kj761syNvOc+ASC5y3VQtBM=; b=jH/Luk8f 4AzAy0xeacq1xUTj0slmmKzcGJdMU+3Rom9XZuQ0T9bD2dQ2pBXX2K45muyGECyH /18/Ts3aI+8rYNB8iJPTHWqU3nrrX/oxDr4sIJyRcs9Aw29HXr+GG0b/Wtq2pTpq N8RYUjoMUKMB0con9jLpSWu7oi1BMSAd4NVkBGjnvoYwc2/v1L8VHUcI8tpt72td FClR3GvzXXi5mtJkKrlROBUNvV4sgEAhd6Ap91Jyqtxs1oe7XXxQFv1aCQrG06ub uf/Rw6i8Hi7MYsbqLxtmSkUDtNk3RS0gvcENQcPl49I6vFftUd1HXGZf9B8MdOnu UhAN0dCopZc1Ww== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecuffhomhgrihhnpehrvghprhhoughutghisghlvgdqsghuihhl ughsrdhorhhgnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgrmhepmh grihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtghomhen ucevlhhushhtvghrufhiiigvpeei X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 81787D6005D; Sat, 7 Sep 2019 07:22:48 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:39 +0100 Message-Id: <20190907112240.1028433-7-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 6/7] [mkarchiso] Force all ISO timestamps to SOURCE_DATE_EPOCH if present X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" xorrisofs respects SOURCE_DATE_EPOCH but only for its' own generated fields. We need to replace all other timestamps. Motivation: https://reproducible-builds.org Signed-off-by: Daniel Edgecumbe --- archiso/mkarchiso | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 383a967..59fa9c4 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -307,7 +307,12 @@ command_iso () { if [[ ${quiet} == "y" ]]; then _qflag="-quiet" fi + local _rflag="" + if [[ ${SOURCE_DATE_EPOCH:-} ]]; then + _rflag="--set_all_file_dates $(date --utc --date="@${SOURCE_DATE_EPOCH}" +%Y%m%d%H%m%S00)" + fi xorriso -as mkisofs ${_qflag} \ + ${_rflag} \ -iso-level 3 \ -full-iso9660-filenames \ -volid "${iso_label}" \ From patchwork Sat Sep 7 11:22:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Edgecumbe X-Patchwork-Id: 1220 Return-Path: Delivered-To: patchwork@archlinux.org Received: from apollo.archlinux.org (localhost [127.0.0.1]) by apollo.archlinux.org (Postfix) with ESMTP id 611A1130FFFC6 for ; Sat, 7 Sep 2019 11:23:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on apollo X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_INVALID=1, DKIM_SIGNED=0.1,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001 autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-BL-Results: [127.0.9.2] Received: from orion.archlinux.org (orion.archlinux.org [IPv6:2a01:4f8:160:6087::1]) by apollo.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:23:11 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id 622C115323E13A; Sat, 7 Sep 2019 11:23:10 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [IPv6:2a01:4f8:160:3033::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS; Sat, 7 Sep 2019 11:23:10 +0000 (UTC) Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id EC60E2C413; Sat, 7 Sep 2019 11:22:54 +0000 (UTC) Authentication-Results: luna.archlinux.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=esotericnonsense.com header.i=@esotericnonsense.com header.b=SEQDNeou; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=OOiHAPXs Received: from luna.archlinux.org (luna.archlinux.org [127.0.0.1]) by luna.archlinux.org (Postfix) with ESMTP id A07812C237 for ; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Received: from orion.archlinux.org (orion.archlinux.org [88.198.91.70]) by luna.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:52 +0000 (UTC) Received: from orion.archlinux.org (localhost [127.0.0.1]) by orion.archlinux.org (Postfix) with ESMTP id CA5FE15323E0DE for ; Sat, 7 Sep 2019 11:22:50 +0000 (UTC) Received: from new2-smtp.messagingengine.com (new2-smtp.messagingengine.com [66.111.4.224]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by orion.archlinux.org (Postfix) with ESMTPS for ; Sat, 7 Sep 2019 11:22:50 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id E045520B8; Sat, 7 Sep 2019 07:22:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sat, 07 Sep 2019 07:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= esotericnonsense.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=fm1; bh=19kK4aP39W+Ht0CLUe/tPMeQnR+t+Ntbk0RvqHzfuIo=; b=SEQDN eoujFkTBf5uiZukchpl92O1EoK6ekIXQTi+tyKVnqjhRmlSrBp6+95CwhbfUrHyK Mu0gZ3A0+5/qWJ6cCemkBV8Z/KdtrdFwwhmH0IEFAfCWtTmPivadpodg06N9jwYV cfCO7Us14iwyGH9lXmZRE/Ktz78YXjdb3FagZ4TH9b8fHtrn6G0Qzh8A6p+/5w2r N5vOp/OBe8fKYWb8PJWm8DOLnP/KJNK55uDXUCj2GUF81HzLS7PVehwLIr8Ww2B1 L0smqVidpPSTGen0zXAwWkJ7johKFehd89aA+izGY5CzRZ72nBkVPVV6vzxf3jOP g9pDPoeNoBJBI4NFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=19kK4aP39W+Ht0CLUe/tPMeQnR+t+Ntbk0RvqHzfuIo=; b=OOiHAPXs uZNVmdU845Vm45kXI6zOvwBkUHrv/7ziRQ7Z/ow2va6fUXehKFAgOBGzocS0G2Dn jXEfSdvuujgWUKFLncilqSL2Nlb4wlTp9IX1OWU6IxH/DFnAL9Th0Tj059DgUSyV HlfFRQQVGIZgMsW+S5stfgPvcSqNMvId9u7rzToHyOBTeoMqk061eHOuT5O4tKcm P5HOUWQGIBJPBPWxg66IXojeUtiZkU+SfIQ+3Qy1KHgTKfxWBCO/xkRj3ORmwzsk qeDMrJ1CuHjQ5GV44OAIFmMwsIkaWlLdo8HlxxGV8MHd04E1gbBF4E+1KXKxuMXp KxYsiktb4TtqpA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekuddgfeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgorfhhihhshhhinhhgqdfkphfpvghtfihorhhkuc dlfedttddmnecujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhm peffrghnihgvlhcugfgughgvtghumhgsvgcuoehgihhtsegvshhothgvrhhitghnohhnsh gvnhhsvgdrtghomheqnecukfhppedufeelrdduiedvrddufedurddvfeejnecurfgrrhgr mhepmhgrihhlfhhrohhmpegvmhgrihhlsegvshhothgvrhhitghnohhnshgvnhhsvgdrtg homhenucevlhhushhtvghrufhiiigvpedu X-ME-Proxy: Received: from localhost.localdomain (test.electronrelocation.com [139.162.131.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 37041D60057; Sat, 7 Sep 2019 07:22:49 -0400 (EDT) From: Daniel Edgecumbe To: arch-releng@archlinux.org Date: Sat, 7 Sep 2019 12:22:40 +0100 Message-Id: <20190907112240.1028433-8-git@esotericnonsense.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20190907112240.1028433-1-git@esotericnonsense.com> References: <20190907112240.1028433-1-git@esotericnonsense.com> MIME-Version: 1.0 Subject: [arch-releng] [PATCH 7/7] [releng] Add cpio to dependencies X-BeenThere: arch-releng@archlinux.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Arch Linux Release Engineering List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Arch Linux Release Engineering Cc: Daniel Edgecumbe Errors-To: arch-releng-bounces@archlinux.org Sender: "arch-releng" This is an optional dependency of mkinitcpio, required in the case we're using where SOURCE_DATE_EPOCH may be relevant. Signed-off-by: Daniel Edgecumbe --- configs/releng/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/releng/build.sh b/configs/releng/build.sh index 273b501..836a821 100755 --- a/configs/releng/build.sh +++ b/configs/releng/build.sh @@ -64,7 +64,7 @@ make_pacman_conf() { # Base installation, plus needed packages (airootfs) make_basefs() { mkarchiso ${verbose} -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" init - mkarchiso ${verbose} -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" -p "haveged intel-ucode amd-ucode memtest86+ mkinitcpio-nfs-utils nbd zsh efitools" install + mkarchiso ${verbose} -w "${work_dir}/x86_64" -C "${work_dir}/pacman.conf" -D "${install_dir}" -p "haveged intel-ucode amd-ucode memtest86+ mkinitcpio-nfs-utils nbd zsh efitools cpio" install } # Additional packages (airootfs)