Date: Wed, 14 Jun 2023 16:16:21 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 271994] make PORTREVISION optionally dependent on the architecture to prevent unnecessary rebuilds Message-ID: <bug-271994-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271994 Bug ID: 271994 Summary: make PORTREVISION optionally dependent on the architecture to prevent unnecessary rebuilds Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: office@FreeBSD.org Reporter: d8zNeCFG@aon.at Assignee: office@FreeBSD.org Flags: maintainer-feedback?(office@FreeBSD.org) Created attachment 242776 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D242776&action= =3Dedit example Makefile demonstrating multi-architecture PORTREVISION Scenario: - FreeBSD ports framework - A fix is supplied for a port which is necessary for only one or a few architecture(s) (see for example the latest change to editors/libreoffice, 19a93ee6d9218bcc2e4a1506e20015d84a84ee21) Result: - The port maintainer applies the fix and increases the PORTREVISION - The port is recompiled for all architectures although this would be neces= sary only for the affected one(s) Expected result: - It should be necessary to only recompile the port for the affected architecture(s) and therefore to not increase the PORTREVISION for all othe= rs. Proposed solution: - Make the PORTREVISION architecture-dependent - If only a few architectures need to be rebuilt, the maintainer increases = the PORTREVISION only for these. - If a port needs to be rebuilt for all architectures, its PORTREVISION is increased to one higher than the maximum of all previous PORTREVISIONs. Proposed syntax: PORTREVISION=3D 1,aarch64:2,amd64:3,i386:4 (next full rebuild) PORTREVISION=3D 5 A stub Makefile demonstrating the solution is attached. The solution is backwards-compatible with the current usage of PORTREVISION. -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271994-7788>