Stuart Henderson <[email protected]> wrote:
> On 2022/06/19 16:48, Rubén Llorente wrote:
> > On Tue, Jun 14, 2022 at 10:35:13PM +0200, Omar Polo wrote:
> > > the part of the getrlimit could be simplified, see the version in the
> > > updated tarball attached.
> >
> > I am including a new version with this message. With this version of the
> > patch, the RAM declared as detected will be:
> >
> > - The physical RAM (without swap) in case the rlimit is bigger than the
> > actual existing physical RAM.
> >
> > - The max RAM permisible by rlimit is the amount of RAM present is
> > bigger than the limit.
> >
> > This will allow lrzip to heuristically set its compression window
> > lengths within reasonable limits (which is the point of the get_ram
> > function).
>
> This is looking reasonably sane now. OK sthen@. I would add @sample:
imported with sthen@ tweak to the PLIST, thanks :)
> --- PLIST.orig Mon Jun 20 10:04:44 2022
> +++ PLIST Mon Jun 20 10:04:57 2022
> @@ -35,4 +35,6 @@ share/doc/lrzip/lzma/lzma.txt
> share/doc/lrzip/magic.header.txt
> share/doc/pkg-readmes/${PKGSTEM}
> share/examples/lrzip/
> +@sample ${SYSCONFDIR}/lrzip/
> share/examples/lrzip/lrzip.conf.example
> +@sample ${SYSCONFDIR}/lrzip/lrzip.conf