From: Keith Owens <kaos@ocs.com.au>
To: "Justin T. Gibbs" <gibbs@scsiguy.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Cleanup kbuild for aic7xxx
Date: Tue, 26 Jun 2001 12:34:03 +1000 [thread overview]
Message-ID: <5557.993522843@kao2.melbourne.sgi.com> (raw)
In-Reply-To: Your message of "Mon, 25 Jun 2001 12:22:29 CST." <200106251822.f5PIMTU05229@aslan.scsiguy.com>
On Mon, 25 Jun 2001 12:22:29 -0600,
"Justin T. Gibbs" <gibbs@scsiguy.com> wrote:
>Keith Owens wrote:
>>(2) Generated files must not be overwritten in place.
>>
>> When "gen" is shipped and also overwritten in place then anybody
>> who regenerates the file (for whatever reason) runs the risk of
>> spurious differences appearing in their patches. Particularly when
>> the generating process depends on tools which can vary from one
>> user to another.
>
>I think this is the crux of our where we disagree. The generated file
>in this case should only be overwritten by those developing the driver.
>We've already agreed that the mechanism used in 6.1.5 of the aic7xxx
>driver (always regenerage) cannot work. Therefore the predominant
>case, and in my opinion the only case you need to concern yourself with,
>is building the kernel from the vendor generated file.
>
>In this scenario, I would argue that overwriting the files in place
>is the correct strategy. For the developer that choses to build
>the firmware, timestamp based "up to date" behavior is correct,
>the last firmware file you've generated/tested is already in the correct
>place for generating patches, and, as a developer, you understand
>how to use your revision control software so the fact that this file
>is generated is not a concern.
I think you are missing an important point. Once the developer issues
a patch, that patch becomes part of everyone's source tree. So
_everyone_ ends up changing the generated files, at which point they
run into the timestamp and source repository problems. Overwriting in
place works for the developer but it causes problems for the rest of
the world. The rest of the world can never guarantee that their
timestamps match the developer's timestamps, in fact you can almost
guarantee that they don't.
<emp>
Any timestamp check in kbuild is unreliable when generated files are
shipped and then updated in place, even if nobody except the
maintainer ever changes the generated file. Distributing a patch has
exactly the same effect on timestamps as changing the generated file.
</emp>
You want timestamp checks for aic7xxx firmware, but including those
checks in kbuild will hit everyone else the moment they apply your
latest patch. We either fix the dependency problem so it works for
everyone or we remove all dependency checking on aic7xxx firmware
generation. Fixing the problem for everyone is my preferred option
because it gives better support for people working on the firmware.
Timestamps on generated and shipped files cannot reliably detect if
"base" and "gen" are in sync or not, hence the use of md5sum.
next prev parent reply other threads:[~2001-06-26 2:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-22 17:52 Cleanup kbuild for aic7xxx Keith Owens
2001-06-22 19:39 ` Justin T. Gibbs
2001-06-23 0:50 ` Keith Owens
2001-06-23 1:20 ` J . A . Magallon
2001-06-23 1:54 ` Keith Owens
2001-06-23 2:38 ` Justin T. Gibbs
2001-06-23 4:19 ` D. Stimits
2001-06-23 1:32 ` David Ford
2001-06-23 2:46 ` Justin T. Gibbs
2001-06-23 2:57 ` David Ford
2001-06-23 3:07 ` Justin T. Gibbs
2001-06-23 3:57 ` David Ford
2001-06-23 5:10 ` Justin T. Gibbs
2001-06-23 4:41 ` David Ford
2001-06-23 5:11 ` Justin T. Gibbs
2001-06-23 5:58 ` [working] Re: Cleanup kbuild for aic7xxx (attn: Alan & Doug) David Ford
2001-06-23 4:58 ` Cleanup kbuild for aic7xxx David Ford
2001-06-23 2:34 ` Justin T. Gibbs
2001-06-23 5:22 ` Keith Owens
2001-06-25 18:22 ` Justin T. Gibbs
2001-06-26 2:34 ` Keith Owens [this message]
2001-06-26 4:27 ` Justin T. Gibbs
2001-06-23 4:17 ` D. Stimits
2001-06-23 4:54 ` Keith Owens
2001-06-23 5:14 ` Justin T. Gibbs
2001-06-23 5:34 ` Keith Owens
2001-06-23 5:04 ` Justin T. Gibbs
2001-06-23 5:41 ` D. Stimits
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5557.993522843@kao2.melbourne.sgi.com \
--to=kaos@ocs.com.au \
--cc=gibbs@scsiguy.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox