aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2019-11-22 11:19:15 +0100
committerUlrich Müller <ulm@gentoo.org>2019-11-26 19:25:43 +0100
commit511e00d9f65abea11dfd769baf2ee939e1584ede (patch)
tree5bb645f94b84f13c378646f9323d18bcad8eac31
parenteapply: Drop -s option for patch. (diff)
downloadportage-511e00d9f65abea11dfd769baf2ee939e1584ede.tar.gz
portage-511e00d9f65abea11dfd769baf2ee939e1584ede.tar.bz2
portage-511e00d9f65abea11dfd769baf2ee939e1584ede.zip
Rename DCO_SIGNED_OFF_BY config variable to SIGNED_OFF_BY.
Provide compatibility support for old name. Update make.conf.5 man page. Bug: https://bugs.gentoo.org/667432 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
-rw-r--r--lib/portage/package/ebuild/_config/special_env_vars.py2
-rw-r--r--lib/portage/package/ebuild/config.py3
-rw-r--r--man/make.conf.513
-rw-r--r--repoman/lib/repoman/actions.py8
4 files changed, 18 insertions, 8 deletions
diff --git a/lib/portage/package/ebuild/_config/special_env_vars.py b/lib/portage/package/ebuild/_config/special_env_vars.py
index e72049e33..50e7a9604 100644
--- a/lib/portage/package/ebuild/_config/special_env_vars.py
+++ b/lib/portage/package/ebuild/_config/special_env_vars.py
@@ -152,7 +152,6 @@ environ_filter += [
"BINPKG_COMPRESS", "BINPKG_COMPRESS_FLAGS",
"CLEAN_DELAY", "COLLISION_IGNORE",
"CONFIG_PROTECT", "CONFIG_PROTECT_MASK",
- "DCO_SIGNED_OFF_BY",
"EGENCACHE_DEFAULT_OPTS", "EMERGE_DEFAULT_OPTS",
"EMERGE_LOG_DIR",
"EMERGE_WARNING_DELAY",
@@ -182,6 +181,7 @@ environ_filter += [
"RESUMECOMMAND", "RESUMECOMMAND_FTP",
"RESUMECOMMAND_HTTP", "RESUMECOMMAND_HTTPS",
"RESUMECOMMAND_RSYNC", "RESUMECOMMAND_SFTP",
+ "SIGNED_OFF_BY",
"UNINSTALL_IGNORE", "USE_EXPAND_HIDDEN", "USE_ORDER",
"__PORTAGE_HELPER"
]
diff --git a/lib/portage/package/ebuild/config.py b/lib/portage/package/ebuild/config.py
index e0dda54d4..6efb5ae86 100644
--- a/lib/portage/package/ebuild/config.py
+++ b/lib/portage/package/ebuild/config.py
@@ -157,7 +157,8 @@ class config(object):
'PORTAGE_PYM_PATH', 'PORTAGE_PYTHONPATH'])
_deprecated_keys = {'PORTAGE_LOGDIR': 'PORT_LOGDIR',
- 'PORTAGE_LOGDIR_CLEAN': 'PORT_LOGDIR_CLEAN'}
+ 'PORTAGE_LOGDIR_CLEAN': 'PORT_LOGDIR_CLEAN',
+ 'SIGNED_OFF_BY': 'DCO_SIGNED_OFF_BY'}
_setcpv_aux_keys = ('BDEPEND', 'DEFINED_PHASES', 'DEPEND', 'EAPI', 'HDEPEND',
'INHERITED', 'IUSE', 'REQUIRED_USE', 'KEYWORDS', 'LICENSE', 'PDEPEND',
diff --git a/man/make.conf.5 b/man/make.conf.5
index 44d518dbb..78ff8cb06 100644
--- a/man/make.conf.5
+++ b/man/make.conf.5
@@ -1,4 +1,4 @@
-.TH "MAKE.CONF" "5" "Jul 2019" "Portage VERSION" "Portage"
+.TH "MAKE.CONF" "5" "Nov 2019" "Portage VERSION" "Portage"
.SH "NAME"
make.conf \- custom settings for Portage
.SH "SYNOPSIS"
@@ -205,8 +205,7 @@ This variable is passed by the \fIebuild scripts\fR to the \fIconfigure\fR
as \fI\-\-target=${CTARGET}\fR only if it is defined.
.TP
.B DCO_SIGNED_OFF_BY
-This variable may contain a name and email address which will be used by
-\fBrepoman\fR(1) to add a Signed\-off\-by line to each commit message.
+See \fISIGNED_OFF_BY\fR below. Deprecated.
.TP
\fBDISTDIR\fR = \fI[path]\fR
Defines the location of your local source file repository. After packages
@@ -1141,6 +1140,14 @@ Defines the location where created RPM packages will be stored.
.br
Defaults to /var/cache/rpm.
.TP
+.B SIGNED_OFF_BY
+This variable may contain a name and email address which will be used by
+\fBrepoman\fR(1) to add a Signed\-off\-by line to each commit message.
+The meaning of a signoff depends on the project. Typically, it certifies
+that the committer has the rights to submit the work under a free license
+and agrees to a Certificate of Origin. (For example, see GLEP 76 for the
+Gentoo Linux policy: \fIhttps://www.gentoo.org/glep/glep-0076.html\fR.)
+.TP
\fBSYNC\fR = \fI[RSYNC]\fR
Insert your preferred rsync mirror here. This rsync server
is used to sync the local ebuild repository when `emerge \-\-sync` is run.
diff --git a/repoman/lib/repoman/actions.py b/repoman/lib/repoman/actions.py
index 92d4d4e94..56a5255bf 100644
--- a/repoman/lib/repoman/actions.py
+++ b/repoman/lib/repoman/actions.py
@@ -1,4 +1,6 @@
# -*- coding:utf-8 -*-
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
from __future__ import print_function, unicode_literals
@@ -402,7 +404,7 @@ the whole commit message to abort.
def get_commit_footer(self):
portage_version = getattr(portage, "VERSION", None)
gpg_key = self.repoman_settings.get("PORTAGE_GPG_KEY", "")
- dco_sob = self.repoman_settings.get("DCO_SIGNED_OFF_BY", "")
+ signoff = self.repoman_settings.get("SIGNED_OFF_BY", "")
report_options = []
if self.options.force:
report_options.append("--force")
@@ -470,8 +472,8 @@ the whole commit message to abort.
commit_footer += ", unsigned Manifest commit"
commit_footer += ")"
- if dco_sob:
- commit_footer += "\nSigned-off-by: %s" % (dco_sob, )
+ if signoff:
+ commit_footer += "\nSigned-off-by: %s" % (signoff, )
return commit_footer