Skip to content

perftools.rb fixes for GNU patch - #12

Closed
erikh wants to merge 1 commit into
tmm1:masterfrom
erikh:master
Closed

erikh wants to merge 1 commit into
tmm1:masterfrom
erikh:master

Conversation

@erikh

@erikh erikh commented Sep 10, 2010

Copy link
Copy Markdown
Contributor

The patch command, when using GNU patch, will attempt to prompt the user to check files out of perforce (this feature doesn't exist in BSD patch and thus isn't a problem).

This is a problem in the 0.5.0 release in rubygems, where the patching in extconf.rb will fail on any modern GNU patch.

Issuing -g0 will quell this prompting and patching will go smoothly.

My heuristic is probably crap, but it works on OS X (with GNU patch via macports) and FreeBSD.

@tmm1

tmm1 commented Sep 10, 2010

Copy link
Copy Markdown
Owner

Strange, I've never run into this before. I'd prefer to either delete any files that identify the directory as a perforce checkout, or simply set ENV['PATCH_GET'] = 0 so we don't have to do any patch version detection.

@erikh

erikh commented Sep 10, 2010

Copy link
Copy Markdown
Contributor Author

Ah, I must have missed that in the manual. I like that solution quite a bit better.

I definitely don't have that in the environment, so I'm presuming it became the default at some point?

I'll get a refork + new pull req to you sometime today.

@tmm1

tmm1 commented Sep 10, 2010

Copy link
Copy Markdown
Owner

I see the PATCH_GET env variable mentioned in the man page on my debian box, which has patch 2.5.9

@erikh

erikh commented Sep 10, 2010

Copy link
Copy Markdown
Contributor Author

Yeah, I wasn't disputing its existence, just my eyeballs.

I too am using 2.5.9 (10.6 with recent macports) but I did check env and it's not in there. I'll get you a fixed patch that sets that and removes the lousy check soonish.

@tmm1

tmm1 commented Sep 11, 2010

Copy link
Copy Markdown
Owner

Fixed by #13. Thanks!

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants