From 723fa1eac1a8687764cac0e8a05d4e32b54ed00c Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Fri, 20 Sep 2024 10:23:17 -0500 Subject: [PATCH] remove RC_PREFIX environment variable This was only used in gentoo prefix installations which we no longer support. --- man/openrc-run.8 | 3 --- src/shared/misc.c | 4 ---- 2 files changed, 7 deletions(-) diff --git a/man/openrc-run.8 b/man/openrc-run.8 index 552fcb91f..6b6dc787a 100644 --- a/man/openrc-run.8 +++ b/man/openrc-run.8 @@ -563,9 +563,6 @@ Default runlevel chosen. Default is default. .It Va RC_SYS A special variable to describe the system more. Possible values are OPENVZ, XENU, XEN0, UML and VSERVER. -.It Va RC_PREFIX -In a Gentoo Prefix installation, this variable contains the prefix -offset. Otherwise it is undefined. .It Va RC_UNAME The result of `uname -s`. .It Va RC_CMD diff --git a/src/shared/misc.c b/src/shared/misc.c index 28f4e2352..0d8d66bc6 100644 --- a/src/shared/misc.c +++ b/src/shared/misc.c @@ -197,10 +197,6 @@ env_config(void) if (sys) setenv("RC_SYS", sys, 1); -#ifdef PREFIX - setenv("RC_PREFIX", RC_PREFIX, 1); -#endif - /* Some scripts may need to take a different code path if Linux/FreeBSD, etc To save on calling uname, we store it in an environment variable */