summaryrefslogtreecommitdiff
path: root/app-portage/epm/files
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@booking.com>2021-08-22 15:49:48 +0200
committerMarcin Deranek <marcin.deranek@booking.com>2021-08-22 15:49:48 +0200
commita1c5090b93d9b6f5bad72a2f33105d37c4b95ec1 (patch)
tree22befb98c8d65ad39953a08f5d74f4068e66c4cb /app-portage/epm/files
parentb79cca4cba3332b82b334721fb84863a7332cf54 (diff)
downloadportage-a1c5090b93d9b6f5bad72a2f33105d37c4b95ec1.tar.gz
portage-a1c5090b93d9b6f5bad72a2f33105d37c4b95ec1.tar.bz2
portage-a1c5090b93d9b6f5bad72a2f33105d37c4b95ec1.zip
Merge patch
Diffstat (limited to 'app-portage/epm/files')
-rw-r--r--app-portage/epm/files/epm8
-rw-r--r--app-portage/epm/files/epm-1.40-prefix.patch32
2 files changed, 4 insertions, 36 deletions
diff --git a/app-portage/epm/files/epm b/app-portage/epm/files/epm
index 29d3d2f..3922749 100644
--- a/app-portage/epm/files/epm
+++ b/app-portage/epm/files/epm
@@ -6,13 +6,13 @@ use Cwd qw(abs_path);
# Global vars
my $version = "EPM version 1.40";
my $verbose = 0;
-my $dbpath = '/var/db/pkg';
+my $dbpath = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg';
my $pkgregex =
'^.+?\/'. # group (ignored)
'(.+?)'. # name
'-(\d+(?:\.\d+)*\w*)'. # version, eg 1.23.4a
'((?:(?:_alpha|_beta|_pre|_rc)\d*)?)'. # special suffix
- '((?:-r\d+)?)$'; # revision, eg r12
+ '((?:-r\d+)?(?:\.\d+)?)$'; # revision, eg r12 or r01.1
my $root = '/';
my %opt = (
'dbpath' => \$dbpath,
@@ -266,11 +266,11 @@ sub query_list($)
if ($opt{'c'}) {
# Read in CONFIG_PROTECT from /etc/make.{global,conf}
my (@CONFIG_PROTECT) = split ' ',
- `. /etc/make.globals; . /etc/make.conf; echo \$CONFIG_PROTECT`;
+ `. @GENTOO_PORTAGE_EPREFIX@/etc/make.globals; . @GENTOO_PORTAGE_EPREFIX@/etc/make.conf; echo \$CONFIG_PROTECT`;
die "CONFIG_PROTECT is empty" unless @CONFIG_PROTECT;
my ($confprotre) = join '|', @CONFIG_PROTECT;
@files = grep {
- (split ' ', $_, 2)[1] =~ /^($confprotre)/o } @files;
+ (split ' ', $_, 2)[1] =~ m!^@GENTOO_PORTAGE_EPREFIX@($confprotre)!o } @files;
}
# Trim @files if doc files requested
diff --git a/app-portage/epm/files/epm-1.40-prefix.patch b/app-portage/epm/files/epm-1.40-prefix.patch
deleted file mode 100644
index 957a5cb..0000000
--- a/app-portage/epm/files/epm-1.40-prefix.patch
+++ /dev/null
@@ -1,32 +0,0 @@
---- epm.orig 2012-12-27 21:21:51.288350173 -0700
-+++ epm 2012-12-27 21:26:51.429905384 -0700
-@@ -7,13 +7,13 @@
- # Global vars
- (my $version = '$Revision: 1.2 $') =~ s/.*?(\d.*\d).*/EPM version $1/;
- my $verbose = 0;
--my $dbpath = '/var/db/pkg';
-+my $dbpath = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg';
- my $pkgregex =
- '^.+?\/'. # group (ignored)
- '(.+?)'. # name
- '-(\d+(?:\.\d+)*\w*)'. # version, eg 1.23.4a
- '((?:(?:_alpha|_beta|_pre|_rc)\d*)?)'. # special suffix
-- '((?:-r\d+)?)$'; # revision, eg r12
-+ '((?:-r\d+)?(?:\.\d+)?)$'; # revision, eg r12 or r01.1
- my $root = '/';
- my %opt = (
- 'dbpath' => \$dbpath,
-@@ -267,11 +267,11 @@
- if ($opt{'c'}) {
- # Read in CONFIG_PROTECT from /etc/make.{global,conf}
- my (@CONFIG_PROTECT) = split ' ',
-- `. /etc/make.globals; . /etc/make.conf; echo \$CONFIG_PROTECT`;
-+ `. @GENTOO_PORTAGE_EPREFIX@/etc/make.globals; . @GENTOO_PORTAGE_EPREFIX@/etc/make.conf; echo \$CONFIG_PROTECT`;
- die "CONFIG_PROTECT is empty" unless @CONFIG_PROTECT;
- my ($confprotre) = join '|', @CONFIG_PROTECT;
- @files = grep {
-- (split ' ', $_, 2)[1] =~ /^($confprotre)/o } @files;
-+ (split ' ', $_, 2)[1] =~ m!^@GENTOO_PORTAGE_EPREFIX@($confprotre)!o } @files;
- }
-
- # Trim @files if doc files requested