Skip to contentSkip to conversation

config.mak.uname: correct perl path on FreeBSD

PATCH In review Nguyễn Thái Ngọc Duy 3 participants 8 messages Jul 25, 2016 – Jul 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 config.mak.uname: correct perl path on FreeBSD

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

 config.mak.uname | 1 +
 1 file changed, 1 insertion(+)
config.mak.uname +1 -0
index a88f139..4cd62bd 100644
@@ -203,6 +203,7 @@ ifeq ($(uname_S),FreeBSD)
 		NO_STRTOUMAX = YesPlease
 	endif
 	PYTHON_PATH = /usr/local/bin/python
+	PERL_PATH = /usr/local/bin/perl
 	HAVE_PATHS_H = YesPlease
 	GMTIME_UNRELIABLE_ERRORS = UnfortunatelyYes
 	HAVE_BSD_SYSCTL = YesPlease
Signature · 1 line
2.9.1.566.gbd532d4
#1 lore raw
Quoted 9 lines · Nguyễn Thái Ngọc Duy

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

author
#2 lore raw
Quoted 6 lines · Junio C Hamano
Quoted 5 lines · Nguyễn Thái Ngọc Duy

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

Quoted 7 lines
Quoted 4 lines

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

I'm no fbsd expert but from the first sentence in [1] "Perl has been removed from base more than ten years ago..." I would assume it meant "... removed from base, _to_ ports system" which means /usr/local for all package installation (for ten years for perl). So I think we are good.

Signature · 1 line
Duy
#3 lore raw
Quoted 12 lines · Duy Nguyen
Quoted 11 lines · Junio C Hamano
Quoted 9 lines · Nguyễn Thái Ngọc Duy

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Quoted 8 lines
Quoted 2 lines

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

I'm no fbsd expert but from the first sentence in [1] "Perl has been removed from base more than ten years ago..." I would assume it meant "... removed from base, _to_ ports system" which means /usr/local for all package installation (for ten years for perl). So I think we are good.

I guess we didn't follow through

    http://public-inbox.org/git/%3C20160720025630.GA71874%40plume%3E/

and allowed the thread to drift into a tangent?

#4 lore raw
Quoted 8 lines · Junio C Hamano
Quoted 6 lines · Duy Nguyen
Quoted 5 lines · Junio C Hamano
Quoted 4 lines · Nguyễn Thái Ngọc Duy

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

Ah, I missed that. I guess that explains why nobody complained about the problem sooner.

Quoted 14 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Quoted 8 lines
Quoted 2 lines

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

I'm no fbsd expert but from the first sentence in [1] "Perl has been removed from base more than ten years ago..." I would assume it meant "... removed from base, _to_ ports system" which means /usr/local for all package installation (for ten years for perl). So I think we are good.

Quoted 5 lines

I guess we didn't follow through

    http://public-inbox.org/git/%3C20160720025630.GA71874%40plume%3E/

and allowed the thread to drift into a tangent?

+Cc Dscho

I've been meaning to followup on that, but had connectivity problems to my VM last week. I still prefer we use numeric comparisons for version numbers since numbers are... numeric. IOW, I prefer we go with my original patch.

#5 lore raw
Quoted 31 lines · Eric Wong
Quoted 8 lines · Junio C Hamano
Quoted 6 lines · Duy Nguyen
Quoted 5 lines · Junio C Hamano
Quoted 4 lines · Nguyễn Thái Ngọc Duy

It looks the the symlink /usr/bin/perl (to /usr/local/bin/perl) has been removed at least on FreeBSD 10.3. See [1] for more information.

[1] https://svnweb.freebsd.org/ports/head/UPDATING?r1=386270&r2=386269&pathrev=386270&diff_format=c

Ah, I missed that. I guess that explains why nobody complained about the problem sooner.

Quoted 18 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Quoted 8 lines
Quoted 2 lines

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

I'm no fbsd expert but from the first sentence in [1] "Perl has been removed from base more than ten years ago..." I would assume it meant "... removed from base, _to_ ports system" which means /usr/local for all package installation (for ten years for perl). So I think we are good.

I guess we didn't follow through

    http://public-inbox.org/git/%3C20160720025630.GA71874%40plume%3E/
Quoted 8 lines
Quoted 1 line

and allowed the thread to drift into a tangent?

+Cc Dscho

I've been meaning to followup on that, but had connectivity problems to my VM last week. I still prefer we use numeric comparisons for version numbers since numbers are... numeric. IOW, I prefer we go with my original patch.

I tend to agree with you if we have to do "systems older than this should use /usr/bin, others should use /usr/local/bin", but this different incarnation of the same topic seems to claim that older ones had /usr/local/bin forever anyway, and that was what made the patch interesting.

#6 lore raw
Quoted 34 lines · Junio C Hamano
Quoted 24 lines · Eric Wong
Quoted 3 lines · Junio C Hamano
Quoted 2 lines · Duy Nguyen
Quoted 1 line · Junio C Hamano

On Mon, Jul 25, 2016 at 9:21 AM, Nguyễn Thái Ngọc Duy <[email protected]> wrote:

about the problem sooner.

Quoted 18 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines

---
Tested with fbsd 10.3, kvm image. But I suppose it's the same as real fbsd.

Quoted 8 lines
Quoted 2 lines

Thanks; and we know that older (but not too old that we no longer care about) FreeBSD all have /usr/local/bin/perl?

I'm no fbsd expert but from the first sentence in [1] "Perl has been removed from base more than ten years ago..." I would assume it meant "... removed from base, _to_ ports system" which means /usr/local for all package installation (for ten years for perl). So I think we are good.

I guess we didn't follow through

    http://public-inbox.org/git/%3C20160720025630.GA71874%40plume%3E/
Quoted 8 lines
Quoted 1 line

and allowed the thread to drift into a tangent?

+Cc Dscho

I've been meaning to followup on that, but had connectivity problems to my VM last week. I still prefer we use numeric comparisons for version numbers since numbers are... numeric. IOW, I prefer we go with my original patch.

Quoted 5 lines

I tend to agree with you if we have to do "systems older than this should use /usr/bin, others should use /usr/local/bin", but this different incarnation of the same topic seems to claim that older ones had /usr/local/bin forever anyway, and that was what made the patch interesting.

I dug around the freebsd history (git://github.com/freebsd/freebsd.git)
(~1.5G) and the 3.x and 4.x releases with perl in base still contained many references to /usr/local/bin/perl

It also seems FreeBSD 2.x releases were also perl-less in base; so yes, I'm alright with Duy's patch :)

#7 lore raw
Quoted 6 lines · Eric Wong

I dug around the freebsd history (git://github.com/freebsd/freebsd.git)
(~1.5G) and the 3.x and 4.x releases with perl in base still contained many references to /usr/local/bin/perl

It also seems FreeBSD 2.x releases were also perl-less in base; so yes, I'm alright with Duy's patch :)

Thanks for a quick digging to converge to the simplest solution.

Will replace and merge to 'next' soonish.