Summary: | improvement of "What (not) to put in the Portage tree" | ||
---|---|---|---|
Product: | Documentation | Reporter: | Jonas Stein <jstein> |
Component: | Devmanual | Assignee: | Gentoo Devmanual Team <devmanual> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://devmanual.gentoo.org/ebuild-maintenance/new-ebuild/ | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Jonas Stein
![]() Sorry about the long delay. How about this instead: <p> The Gentoo repository should only be used for storing <c>.ebuild</c> files, as well as any relatively small companion files, such as patches or sample configuration files. These types of files should be placed in the <c>mycat/mypkg/files</c> directory, which can be referenced as <c>${FILESDIR}</c> from within ebuilds. Larger patch files (we recommend this for patches above 20 kB) should be placed in your developer space on <c>dev.gentoo.org</c> instead, in order to save bandwidth and disk space for the ebuild repository. </p> <p> Also, you should add only uncompressed plain text files (i.e., no binaries) to the repository. This will allow git to merge changes and correctly inform developers of conflicts. </p> (In reply to Ulrich Müller from comment #1) > this for patches above 20 kB) should be placed in your developer space on This should probably be 20 KiB, corresponding to an integer multiple of the common 4 KiB block size. After further discussion with jstein, we come up with the following text: <p> The Gentoo repository should only be used for storing <c>.ebuild</c> files, as well as any small companion files, such as patches or sample configuration files. These files should have a size of at most 20 KiB and must be placed in the <c>mycat/mypkg/files</c> directory, which can be referenced as <c>${FILESDIR}</c> from within ebuilds. Larger patch files should be placed in your developer space on <c>dev.gentoo.org</c> instead, in order to minimize the repository size. </p> <p> The files in the repository should be uncompressed plain text files, i.e., no binaries. This will allow the version control system to merge changes and correctly inform developers of conflicts. </p> I am going to merge this tomorrow, unless there are further comments. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=5161bfd22b3d53941986b7c55ca7c3c06e54a470 commit 5161bfd22b3d53941986b7c55ca7c3c06e54a470 Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2020-03-02 10:46:32 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2020-03-02 10:46:32 +0000 ebuild-maintenance/new-ebuild: Update "What (not) to put in the tree". Closes: https://bugs.gentoo.org/585218 Reported-by: Jonas Stein <jstein@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org> ebuild-maintenance/new-ebuild/text.xml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) |