Date: Sun, 3 Mar 2019 19:24:14 +0100 From: Polytropon <freebsd@edvax.de> To: Stuart Gray <stuartgray.parrotsec@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: What happens if? Message-ID: <20190303192414.295e5f7f.freebsd@edvax.de> In-Reply-To: <CACvt8TY%2B1aMJc3DKHogxoGbe47K0Q1AKnJBvELLNo4SKRu_K8Q@mail.gmail.com> References: <CACvt8TY%2B1aMJc3DKHogxoGbe47K0Q1AKnJBvELLNo4SKRu_K8Q@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 2 Mar 2019 22:37:57 -0500, Stuart Gray wrote: > https://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/porting-checksum.html > > What happens if I try to generate the file manually? > I'm not mocking, I'm just trying to have a laugh as I read documentation. > :) SERIOUS replies only!!!!! :) Serious reply follows. :-) There is no problem if you use the correct method to obtain the checksum manually, and generate the corresponding file as if it would have been done by "make makesum". However, the actual _method_ of how the file is generated might change, and if you're using the "old method", while the ports framework assumes a file generated by the "new method", you're potentially going to run into a checksum mismatch. See /usr/ports/Mk/bsd.port.mk of how the "makesum" target is implemented. The target "makesum" makes it irrelevant for the port maintainer to know which particular method is used to create the distinfo file. It's comparable to a library function call where you simply call the function, without needing to know how it works internally. Stupid analogy, I know. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190303192414.295e5f7f.freebsd>
