Received: from mail-qv1-f67.google.com (mail-qv1-f67.google.com [209.85.219.67]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 8861B7800C1 for <~alpine/devel@lists.alpinelinux.org>; Mon, 27 Apr 2020 21:10:36 +0000 (UTC) Received: by mail-qv1-f67.google.com with SMTP id v38so9330505qvf.6 for <~alpine/devel@lists.alpinelinux.org>; Mon, 27 Apr 2020 14:10:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=vbs2WQgnCkc5rxYUQbs66NEVgwbsGe4njJLjAln4f7o=; b=eJVyxGT0LdHeITlxwKqPrIiWvbKdkgHnkDHk0rCAOZq4x7axRY+PCrdtdyqldYrTTc AOXWhl5sFs1N2d9ceh08GaaXaVYT06f/rPUYQGHSppgzhmGde0ceQBlj4cEqCQOXFP9X xhWrHaZP3C1Be6RMJOVqdQSXeTyzhg6himSPNTcaViddNmO6hEDVTrJHoUNqyHq3+mhY 8X6TbkINzoPFm8SEXJEfpsfKReVgu9uxnc9uP1XfRu/kPa6kmnlLhVyvFGJ+QtdPCatp FQT7H40wGlVkYqJHtAv45b1mLKCEeD44BNJy4dB8YQmtmRuRw+LLmGzZC/nwS6jBq6g5 KQDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vbs2WQgnCkc5rxYUQbs66NEVgwbsGe4njJLjAln4f7o=; b=d0YRZZ3Qy9//5uKa0CKZLnsA23Oxj5CmeW8hechO3N0edfQp1RrYSrHe1VO0Lak4/U hH603Yk9XJMsd9amWrMkKW3bW1Jft+AebcgDx/m9AtRJzjOVy/HwSOpl9O1nHjp4nYHy 0L8hXrX+A5EVqFYwxFIQfCTPrsLsisBhB4kQSK9hYKqCjLVRcL2fa1+ndIBexzbsTrQ/ ekcNa0UjWbA2lCWi/4FkL70xFLpWLQ/Oa33aYk6L08NJsFNu/lnoiX4ITGQsRoYSlpJQ P9BWXmc7xhaUMmf9ESNwU4OhJgvDW4HclKrUL7R44GDcYBFkN68LmkycDYhjbwdHRZA/ qv1w== X-Gm-Message-State: AGi0PuYwNd1PKQ/u/Hsx4LSONt8f+VllNLGbmJlmh2SGP2OEZzjl0ni/ +6KuQYE162P1H7jTBs+n9Ak1PC7Jg6A= X-Google-Smtp-Source: APiQypKrPTKug3uREYLF8cmZPt8vR61z1G2uiN37Yb6wWGboI9uPST2HO25r78f6YGlr+iS/RC6c0Q== X-Received: by 2002:a0c:b601:: with SMTP id f1mr22934110qve.99.1588021834852; Mon, 27 Apr 2020 14:10:34 -0700 (PDT) Received: from enterprise ([2804:431:cfcd:7443:4d9c:c375:9e89:c8cc]) by smtp.gmail.com with ESMTPSA id g6sm12092554qtc.52.2020.04.27.14.10.28 for <~alpine/devel@lists.alpinelinux.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Apr 2020 14:10:31 -0700 (PDT) Date: Mon, 27 Apr 2020 18:10:20 -0300 From: Leo To: ~alpine/devel@lists.alpinelinux.org Subject: Re: Enforcing patch headers for patches Message-ID: <20200427181020.5ae0ba88@enterprise> In-Reply-To: <4ac4d3aad3bf0f050070166b27a2344efe32e9b7.camel@cogitri.dev> References: <4ac4d3aad3bf0f050070166b27a2344efe32e9b7.camel@cogitri.dev> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Mon, 27 Apr 2020 12:23:43 +0200 Rasmus Thomsen wrote: > Hello, > > I'd like to propose that we start enforcing patch headers for new > patches in aports, to make the flood of (downstream) patches more > manageable. With a patch header a patch would look like this: > > $ cat xfce-screenshooter-1.7.9-dsofix.patch > Upstream: Yes > Reason: Without this patch linking with bfd fails due to missing > linker flags, as these libraries are implicitly required. > Url: https://bugzilla.xfce.org/show_bug.cgi?id=7985 > --- xfce4-screenshooter-1.7.9.orig/Makefile.in 2010-02-07 > 14:45:15.000000000 +0100 > +++ xfce4-screenshooter-1.7.9/Makefile.in 2010-02-16 > 23:57:31.000000000 +0100 > @@ -282,7 +282,7 @@ > INTLTOOL_PERL = @INTLTOOL_PERL@ > INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ > LD = @LD@ > -LDFLAGS = @LDFLAGS@ > +LDFLAGS = @LDFLAGS@ -lm -lX11 > LIBOBJS = @LIBOBJS@ > LIBS = @LIBS@ > LIBTOOL = @LIBTOOL@ > > Let me explain the purpose of the different fields: > > * Upstream: This should indicate whether the patch is proposed > upstream/already merged or if it's specific to us. Should be "Yes" if > it has been proposed/merged already, or "No" with an explanation why > it can't be upstreamed. This helps tracking the status of a patch > upstream. Mustn't be omitted. > > * Reason: This describes what the patch is for. That makes it easier > for others (or sometimes yourself at a later point) to figure out what > a patch actually does. This field may be omitted if the patch is > trivial and has a descriptive file name, or if the patch already has a > commit message in it (e.g. from git format-patch). > > * Url: An URL to where upstream deals with the issue, e.g. a link to > upstream's issue report in their bugtracker or a link to a merge > request. This may only be omitted if Upstream is "No" (meaning the > patch is specific to Alpine Linux). This has the nice consequence that > all patches that aren't specific to Alpine Linux have to be submitted > to upstream, or the issue the patch tries to solve at least has to be > reported at upstream. This lessens the maintenance burden on us (since > we won't have to maintain as many downstream patches then) and makes > the patches available for other developers as well. > > While these patch header seem like a lot of boilerplate up front, it > really does pay off in the long run. It probably takes less than a > minute to write a patch header for the submitter of the patch since > all of the required info is already readily available to the > submitter: They know what the patch is for, what the upstream status > is etc. It might take hours for other people who find out what a > patch is for and whether it has been proposed upstream already at a > later point. > > Regards, > > Rasmus +1