Bug 257427 - Mk/bsd.port.mk: add PKG_COMPRESSION_LEVEL as a companion to PKG_COMPRESSION_FORMAT
Summary: Mk/bsd.port.mk: add PKG_COMPRESSION_LEVEL as a companion to PKG_COMPRESSION_F...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Ports Framework (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Port Management Team
URL:
Keywords: feature, needs-qa
Depends on:
Blocks:
 
Reported: 2021-07-26 08:00 UTC by Trond.Endrestol
Modified: 2021-08-23 14:13 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback? (portmgr)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Trond.Endrestol 2021-07-26 08:00:11 UTC
For completion it would be nice to have PKG_COMPRESSION_LEVEL as a companion to PKG_COMPRESSION_FORMAT. Thus, it becomes easier to specify the wanted compression level, be it best, or fast, or a numerical value.

E.g.:

PKG_COMPRESSION_LEVEL=	best

The current workaround is to use in /etc/make.conf or an equivalent file:

PKG_CREATE_ARGS+=	-l <level>

E.g.:

PKG_CREATE_ARGS+=	-l best

Both PKG_COMPRESSION_FORMAT and PKG_COMPRESSION_LEVEL should be documented at around line 1004.
Comment 1 commit-hook freebsd_committer 2021-08-23 14:12:49 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e

commit ea36ef6f67f44bbdfe04643afe7dd3ac69d6c29e
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2021-08-23 14:10:30 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2021-08-23 14:12:20 +0000

    Mk/bsd.port.mk: Add PKG_COMPRESSION_LEVEL user variable

    it allows users to set their desired compression level when packaging
    in make.conf

    PR:             257427
    Suggested by:   Trond Endrestol <Trond.Endrestol@ximalas.info>

 Mk/bsd.port.mk | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
Comment 2 Baptiste Daroussin freebsd_committer 2021-08-23 14:13:13 UTC
done thank you for the suggestion