Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 354166 Details for
Bug 478126
dev-perl/PortageXS 0.2.12 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dev-perl/PortageXS/files/0.2.12/prefix.patch
prefix.patch (text/plain), 6.10 KB, created by
Kent Fredric (IRC: kent\n) (RETIRED)
on 2013-07-25 12:41:45 UTC
(
hide
)
Description:
dev-perl/PortageXS/files/0.2.12/prefix.patch
Filename:
MIME Type:
Creator:
Kent Fredric (IRC: kent\n) (RETIRED)
Created:
2013-07-25 12:41:45 UTC
Size:
6.10 KB
patch
obsolete
>From e4b2af6cdc1eb7efa55d0b9780508ddf7a373b49 Mon Sep 17 00:00:00 2001 >From: Kent Fredric <kentfredric@gmail.com> >Date: Tue, 23 Jul 2013 04:00:11 +1200 >Subject: [PATCH] Hand implement the patchset for 0.2.10 on 0.2.11 > >--- > lib/PortageXS.pm | 16 ++++++++-------- > lib/PortageXS/Core.pm | 8 ++++---- > usr/bin/portagexs_client | 8 ++++---- > usr/sbin/portagexsd | 10 +++++----- > 4 files changed, 21 insertions(+), 21 deletions(-) > >diff --git a/lib/PortageXS.pm b/lib/PortageXS.pm >index fa48bac..ff0a46a 100644 >--- a/lib/PortageXS.pm >+++ b/lib/PortageXS.pm >@@ -71,8 +71,8 @@ sub new { > $pxs->{'VERSION'} = $PortageXS::VERSION; > > $pxs->{'PORTDIR'} = $pxs->getPortdir(); >- $pxs->{'PKG_DB_DIR'} = '/var/db/pkg/'; >- $pxs->{'PATH_TO_WORLDFILE'} = '/var/lib/portage/world'; >+ $pxs->{'PKG_DB_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/var/db/pkg/'; >+ $pxs->{'PATH_TO_WORLDFILE'} = '@GENTOO_PORTAGE_EPREFIX@/var/lib/portage/world'; > $pxs->{'IS_INITIALIZED'} = 1; > > $pxs->{'EXCLUDE_DIRS'}{'.'} = 1; >@@ -85,17 +85,17 @@ sub new { > $pxs->{'EXCLUDE_DIRS'}{'CVS'} = 1; > $pxs->{'EXCLUDE_DIRS'}{'.cache'} = 1; > >- $pxs->{'PORTAGEXS_ETC_DIR'} = '/etc/pxs/'; >- $pxs->{'ETC_DIR'} = '/etc/'; >+ $pxs->{'PORTAGEXS_ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/'; >+ $pxs->{'ETC_DIR'} = '@GENTOO_PORTAGE_EPREFIX@/etc/'; > > $pxs->{'MAKE_PROFILE_PATHS'} = [ >- '/etc/make.profile', >- '/etc/portage/make.profile' >+ '@GENTOO_PORTAGE_EPREFIX@/etc/make.profile', >+ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.profile' > ]; > > $pxs->{'MAKE_CONF_PATHS'} = [ >- '/etc/make.conf', >- '/etc/portage/make.conf' >+ '@GENTOO_PORTAGE_EPREFIX@/etc/make.conf', >+ '@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf' > ]; > > for my $path ( @{ $pxs->{'MAKE_PROFILE_PATHS'} } ) { >diff --git a/lib/PortageXS/Core.pm b/lib/PortageXS/Core.pm >index d9ebc9a..bf5dc63 100644 >--- a/lib/PortageXS/Core.pm >+++ b/lib/PortageXS/Core.pm >@@ -118,7 +118,7 @@ sub getPortageMakeParam { > my $self = shift; > my $param = shift; > my @files = (); >- my @etcfiles = qw(/usr/share/portage/config/make.globals /etc/make.conf); >+ my @etcfiles = qw(@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals @GENTOO_PORTAGE_EPREFIX@/etc/make.conf); > my $v = ''; > my $parent = ''; > my $curPath; >@@ -162,7 +162,7 @@ sub getPortageMakeParam { > > # - Defaults > > if ($param eq 'PORTDIR' && !$v) { >- $v='/usr/portage'; >+ $v='@GENTOO_PORTAGE_EPREFIX@/usr/portage'; > } > > return $v; >@@ -189,7 +189,7 @@ sub getPortdir { > return $self->{'PORTDIR'}; > } > else { >- $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/portage/make.conf'),'PORTDIR','lastseen'); >+ $self->{'PORTDIR'}=$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/portage/make.conf'),'PORTDIR','lastseen'); > return $self->{'PORTDIR'}; > } > } >@@ -206,7 +206,7 @@ sub getPortdirOverlay { > my $self = shift; > my $forcereload = shift; > >- return split(/ /,$self->getParamFromFile($self->getFileContents('/usr/share/portage/config/make.globals').$self->getFileContents('/etc/make.conf'),'PORTDIR_OVERLAY','lastseen')); >+ return split(/ /,$self->getParamFromFile($self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/usr/share/portage/config/make.globals').$self->getFileContents('@GENTOO_PORTAGE_EPREFIX@/etc/make.conf'),'PORTDIR_OVERLAY','lastseen')); > } > > # Description: >diff --git a/usr/bin/portagexs_client b/usr/bin/portagexs_client >index 598d05a..688cb97 100755 >--- a/usr/bin/portagexs_client >+++ b/usr/bin/portagexs_client >@@ -1,4 +1,4 @@ >-#!/usr/bin/perl >+#!@GENTOO_PORTAGE_EPREFIX@/usr/bin/perl > > # ----------------------------------------------------------------------------- > # >@@ -54,9 +54,9 @@ if(!($sock = IO::Socket::SSL->new( PeerAddr => $remote_addr, > SSL_use_cert => 1, > SSL_verify_mode => 0x01, > SSL_passwd_cb => sub { return "" }, >- SSL_key_file => '/etc/pxs/certs/client-key.pem', >- SSL_cert_file => '/etc/pxs/certs/client-cert.pem', >- SSL_ca_file => '/etc/pxs/certs/my-ca.pem' >+ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-key.pem', >+ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/client-cert.pem', >+ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem' > ))) { > $pxs->print_err("unable to create socket: ".&IO::Socket::SSL::errstr."\n"); > $pxs->print_err("Server down?\n"); >diff --git a/usr/sbin/portagexsd b/usr/sbin/portagexsd >index 638f662..587a489 100755 >--- a/usr/sbin/portagexsd >+++ b/usr/sbin/portagexsd >@@ -50,7 +50,7 @@ else { > sub main { > # - Parse config > > my %config = (); >- $config{'cfgfiledata'} = $pxs->getFileContents("/etc/pxs/portagexsd.conf"); >+ $config{'cfgfiledata'} = $pxs->getFileContents("@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf"); > $config{'Port'} = $pxs->getParamFromFile($config{'cfgfiledata'},"Port","lastseen"); > $config{'SSLpasswd'} = $pxs->getParamFromFile($config{'cfgfiledata'},"SSLpasswd","lastseen"); > $config{'PidFile'} = $pxs->getParamFromFile($config{'cfgfiledata'},"PidFile","lastseen"); >@@ -60,7 +60,7 @@ sub main { > $config{'cfgfiledata'} = undef; > > if (!$config{'I_AM_ROOT_AND_I_KNOW_WHAT_I_AM_DOING'}) { >- syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (/etc/pxs/portagexsd.conf)'); >+ syslog("info", 'Not starting server as it seems that you did not have a look at the configs yet! (@GENTOO_PORTAGE_EPREFIX@/etc/pxs/portagexsd.conf)'); > exit(0); > } > >@@ -70,9 +70,9 @@ sub main { > Reuse => 1, > SSL_verify_mode => 0x01, > SSL_passwd_cb => sub {return $config{'SSLpasswd'}}, >- SSL_key_file => '/etc/pxs/certs/server-key.pem', >- SSL_cert_file => '/etc/pxs/certs/server-cert.pem', >- SSL_ca_file => '/etc/pxs/certs/my-ca.pem' >+ SSL_key_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-key.pem', >+ SSL_cert_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/server-cert.pem', >+ SSL_ca_file => '@GENTOO_PORTAGE_EPREFIX@/etc/pxs/certs/my-ca.pem' > )) ) { > syslog("info", "Unable to create socket: ", &IO::Socket::SSL::errstr); > exit(0); >-- >1.8.1.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 478126
:
354164
|
354166
|
354168
|
354304
|
354306