Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

DESTDIR support #65

Merged
merged 8 commits into from Sep 9, 2014
Merged

DESTDIR support #65

merged 8 commits into from Sep 9, 2014

Conversation

plicease
Copy link
Contributor

@plicease plicease commented Sep 9, 2014

This should resolve #39

also noted a documentation error when I was reviewing the documentation in writing the test.

In addition to the unit test, I was able to build rpms in OBS for both Acme::Alien::DontPanic and Acme::Ford::Prefect

https://build.opensuse.org/project/show/home:platypus:Alien-Base

plicease and others added 6 commits September 8, 2014 12:09
@plicease plicease added bug and removed bug labels Sep 9, 2014
@plicease plicease mentioned this pull request Sep 9, 2014
@mohawk2
Copy link
Contributor

mohawk2 commented Sep 9, 2014

Looks ok. Aye.

use File::Copy qw( copy );

my $cmd = shift;
@ARGV = grep { s/DESTDIR/$ENV{DESTDIR}/eg; $_ } @ARGV;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is modifying $_ in a grep. Might be nicer as for.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually... should that be a /e? It seems like perl-evaluating the env var isn't right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be a map not grep, will update the branch.

@zmughal
Copy link
Member

zmughal commented Sep 9, 2014

Merge: Aye

Looks good and that RPM is awesome! I kinda feel that I'd like to have a note in ACTION_alien_install that says why $target is being changed to take into account the $destdir for future readers of the code. Either that or make a function does the same and document that. Am I overthinking it? :-)

also the /e is unnecessary in this case
@plicease
Copy link
Contributor Author

plicease commented Sep 9, 2014

@zmughal added some commentary.

plicease added a commit that referenced this pull request Sep 9, 2014
@plicease plicease merged commit b2ad66b into Perl5-Alien:master Sep 9, 2014
@plicease plicease deleted the destdir branch September 9, 2014 09:11
plicease added a commit that referenced this pull request Jul 17, 2017
plicease added a commit that referenced this pull request Jul 17, 2017
plicease added a commit that referenced this pull request Jul 17, 2017
plicease added a commit that referenced this pull request Jul 17, 2017
plicease added a commit that referenced this pull request Jul 17, 2017
plicease added a commit that referenced this pull request Jul 17, 2017
Alien-Base: 
Alien-Base: DESTDIR support
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DESTDIR support
3 participants