summaryrefslogtreecommitdiff
path: root/app-portage/epm/files
diff options
context:
space:
mode:
authorMarcin Deranek <marcin.deranek@slonko.net>2018-04-05 08:25:57 +0200
committerMarcin Deranek <marcin.deranek@slonko.net>2018-04-05 08:26:02 +0200
commitf71b7094fa6296eb3ea473076656fdb6c73bba13 (patch)
tree21aa3fd20557ca8b3d18248d99f76d9c4e408437 /app-portage/epm/files
parentf0fe5692b13b11560c0d6a729e763374d4fffb7c (diff)
downloadportage-f71b7094fa6296eb3ea473076656fdb6c73bba13.tar.gz
portage-f71b7094fa6296eb3ea473076656fdb6c73bba13.tar.bz2
portage-f71b7094fa6296eb3ea473076656fdb6c73bba13.zip
Add missing files
Diffstat (limited to 'app-portage/epm/files')
-rw-r--r--app-portage/epm/files/epm-1.40-prefix.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/app-portage/epm/files/epm-1.40-prefix.patch b/app-portage/epm/files/epm-1.40-prefix.patch
new file mode 100644
index 0000000..957a5cb
--- /dev/null
+++ b/app-portage/epm/files/epm-1.40-prefix.patch
@@ -0,0 +1,32 @@
+--- 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