News for hackers. Stuff that matters.
Re:Perl Regex Removed From Grep in Mountain Lion by js2 on Friday September 28, 2012 @09:01PM (#4588489)
http://wiki.freebsd.org/BSDgrep

BSD grep has been imported to 9.0-CURRENT on July 22, 2010. It has been obtained from the OpenBSD and the FreeGrep projects to make it appropriate for our needs to provide GNU compatibility and let ports build without problems. GNU compatibility is almost 100%, the only missing feature is -P (--perl-regex), which is not possible to support without having PCRE in base system and anyway, it was disabled in GNU grep for the same reason.

Somewhat ironic as OS X includes PCRE. Not sure why Apple didn't stay with GNUgrep.

Re:Perl Regex Removed From Grep in Mountain Lion by Hemospectrum on Friday September 28, 2012 @09:15PM (#4588523)
Since the introduction of the GPL3, there's been a steady purge of GNU software from OS X. This is why Apple's GCC, bash, etc. are stuck at old versions lacking a variety of useful features.

I'm kind of curious what they'll do about Emacs. It doesn't have a BSD-licensed counterpart like everything else they've removed... Maybe they'll just leave it out.

Re:Perl Regex Removed From Grep in Mountain Lion by __david__ on Friday September 28, 2012 @09:31PM (#4588557)
The built in Emacs is languishing along side the built-in bash. It's GNU Emacs 22.1 from "2007 April 13" (according to the man page) which is going on 5 years old at this point. The current release of Emacs is 24.2. You can get a binary of it here: http://www.emacsformacosx.com/
Re:Perl Regex Removed From Grep in Mountain Lion by Hemospectrum on Friday September 28, 2012 @09:59PM (#4588606)
I already do this, even though I rarely use Emacs. Presumably those who work with it every day are far more hampered than me by a five-year-old installation. So my actual (rhetorical) question for Apple is whether there's a point to keeping around a version of Emacs so out of date that anyone using it would install their own copy anyway.
Re:Perl Regex Removed From Grep in Mountain Lion by smosher on Friday September 28, 2012 @09:36PM (#4588566)
Since the introduction of the GPL3, there's been a steady purge of GNU software from OS X.

Is it all GNU software that's being purged, or just the GPLv3 licensed stuff? If the latter, I can't say I blame them. The former case can go either way but I guess it's good to future-proof early.

Re:Perl Regex Removed From Grep in Mountain Lion by Hemospectrum on Friday September 28, 2012 @09:44PM (#4588580)
As far as I know, all GNU software went to GPLv3. Literally all of it. Even things with no substantial updates since 2007.
Re:Perl Regex Removed From Grep in Mountain Lion by gizmo686 on Friday September 28, 2012 @09:56PM (#4588601)
Isn't (one of) the points of the GPL that you cannot change the licensing of the software?
Re:Perl Regex Removed From Grep in Mountain Lion by SwellJoe on Friday September 28, 2012 @10:09PM (#4588629)
The copyright holder can do anything they want with the license of the software, including change it. What has been released under older versions of the license cannot be taken back, as millions of people received the software under the old license...so if you received a version of Emacs under GPL v2, you have every right to continue to distribute it under the terms of that license, and you have no ability to alter those terms (since you are not the copyright holder). But, the GNU foundation (who holds the copyright for Emacs and all GNU software) has every right to alter what license they distribute new versions of the software under.

A lot of people have a lot of weird superstitions about the GPL. It's probably useful to read the license sometime. It may also be useful to acquire a basic understanding of copyright law, if you are a software developer.

Re:Perl Regex Removed From Grep in Mountain Lion by Hemospectrum on Friday September 28, 2012 @10:11PM (#4588632)
Short answer: Not quite.

Long answer: One of the conditions for contributing code to the GNU project is assigning copyright to the FSF. That means they're legally the sole copyright holders for all software they distribute. The official reason for this is so they can pursue GPL violations in court without involving the actual authors of the code. It also permits them to change the license on any of their software. Finally, there are various reasons they might be able to do this anyway even if they didn't have the copyright assignment rule, so long as the new restrictions didn't conflict with whatever license the original software was distributed under.

Re:Perl Regex Removed From Grep in Mountain Lion by pooriaazimi on Saturday September 29, 2012 @02:28AM (#4588975)
So, in theory, FSF can overnight change the license of all GNU softwares to shareware and sell them?

That's really fucked up. (I trust they won't do such a thing, but I didn't think such a thing could be possible)

Re:Perl Regex Removed From Grep in Mountain Lion by AndrewDucker on Saturday September 29, 2012 @04:06AM (#4589076)
They can change how they license it from this moment on - but any copies they've already licensed continue to be licensed the way they were.

So if they licensed it to you as GPL, and then say "From now on, shareware is the way forward!" then you can continue to share yours as GPL, fork it, etc.

Re:Perl Regex Removed From Grep in Mountain Lion by bluedanieru on Saturday September 29, 2012 @03:19AM (#4589030)
Well it's more likely than you might think over a span of a couple decades...

But, I think if they were to go rogue it would be a matter of forking a GPL-licensed version of the software and continuing development on that under an open license.

Re:Perl Regex Removed From Grep in Mountain Lion by jkn on Saturday September 29, 2012 @03:50AM (#4589065)
I don't think it is likely at all even in decades, and if they did they would be sued by loads of contributors for violating their binding promise to adhere with free software spirit in future licenses. You get some guarantees when you assign your copyright to the FSF.

And all this is ignoring that most GNU programs are licensed under a GPL variant and any future version, so they would not need the copyright to upgrade the license anyway.

Re:Perl Regex Removed From Grep in Mountain Lion by bluedanieru on Sunday September 30, 2012 @04:44AM (#4592401)
I'm not saying it's a thing that's going to happen, just that you shouldn't have some blind faith that it won't ("I trust they won't do such a thing"). I'm pretty sure RMS would agree with the sentiment.
Re:Perl Regex Removed From Grep in Mountain Lion by tl on Friday September 28, 2012 @10:04PM (#4588617)
If you hold the copyright, new versions can be under whatever license you want. Old versions cannot have their license changed.
Re:Perl Regex Removed From Grep in Mountain Lion by ubernostrum on Friday September 28, 2012 @11:11PM (#4588740)
Basically all FSF-curated projects ask for contributors to assign copyright to the FSF. Which means the FSF ends up owning the rights to all the code, and can (as the copyright holder) switch to a different license for new versions.
Re:Perl Regex Removed From Grep in Mountain Lion by kunvay on Saturday September 29, 2012 @01:03PM (#4590139)
We think that stinks and is unfair to contributors. We can understand giving a license to use, but complete ownership is unfair and unreasonable.
Re:Perl Regex Removed From Grep in Mountain Lion by jkn on Saturday September 29, 2012 @03:42AM (#4589058)
I very much blame them for their effort to ensure they can prevent users from modifying Free Software utilities on their own machines. What else would be the purpose of avoiding GPLv3? And breaking compatibility with user scripts and removing features in the process... Glad my macbook pro can still boot linux.
Re:Perl Regex Removed From Grep in Mountain Lion by ConstantineXVI on Friday September 28, 2012 @10:04PM (#4588618)
Doubt there was anyone at Apple concerned or willing enough to take the time/effort to port -P into bsdgrep.
Re:Perl Regex Removed From Grep in Mountain Lion by james2vegas on Saturday September 29, 2012 @03:35AM (#4589043)
Yeah, just use pcregrep