Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 466512 - sys-apps/ack-2.0.0 version bump
Summary: sys-apps/ack-2.0.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Rajiv Aaron Manglani (RETIRED)
URL: http://petdance.com/2013/04/ack-2-0-h...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 20:38 UTC by Rajiv Aaron Manglani (RETIRED)
Modified: 2013-06-18 01:06 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Updated Gentoo Patch (ack-gentoo-r2.patch,589 bytes, patch)
2013-04-22 18:31 UTC, Chris Mayo
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rajiv Aaron Manglani (RETIRED) gentoo-dev 2013-04-19 20:38:48 UTC
http://petdance.com/2013/04/ack-2-0-has-been-released/


ack 2.0 has been released. ack is a grep-like search tool that has been optimized for searching large heterogeneous trees of source code.

ack has been around since 2005. Since then it has become very popular and is packaged by all the major Linux distributions. It is cross-platform and pure Perl, so will run on Windows easily. See the “Why ack?” page for the top ten reasons, and dozens of testimonials.

ack 2.0 has many changes from 1.x, but here are four big differences and features that long-time ack 1.x users should be aware of.

By default all text files are searched, not just files with types that ack recognizes. If you prefer the old ack 1.x behavior of only searching files that ack recognizes, you can use the -k/--known-types option.
There is a much more flexible type identification system available. You can specify a file type based on extension (.rb for Ruby), filename (Rakefile is a Ruby file), first line matching a regex (Matching /#!.+ruby/ is a Ruby file) or regex match on the filename itself.
Greater support for ackrc files. You can have a system-wide ackrc at /etc/ackrc, a user-specific ackrc in ~/.ackrc, and ackrc files local to your projects.
The -x argument tells ack to read the list of files to search from stdin, much like xargs. This lets you do things like git ls | ack -x foo and ack will search every file in the git repository, and only those files that appear in the repository.
On the horizon, we see creating a framework that will let authors create ack plugins in Perl to allow flexibility. You might create a plugin that allows searching through zip files, or reading text from an Excel spreadsheet, or a web page.

ack has always thrived on numerous contributions from the ack community, but I especially want to single out Rob Hoelz for his work over the past year or two. If it were not for Rob, ack  2.0 might never have seen the light of day, and for that I am grateful.

A final note: In the past, ack’s home page was betterthangrep.com. With the release of ack 2.0, I’ve changed to beyondgrep.com. “Beyond” feels less adversarial than “better than”, and implies moving forward as well as upward. beyondgrep.com also includes a page of other tools that go beyond the capabilities of grep when searching source code.

For long time ack users, I hope you enjoy ack 2.0 and that it makes your programming life easier and more enjoyable. If you’ve never used ack, give it a try.


xoxo,
Andy

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
Comment 1 Chris Mayo 2013-04-22 18:31:45 UTC
Created attachment 346318 [details, diff]
Updated Gentoo Patch

Gentoo Patch against latest 2.02.

Also etc/ack.bash_completion.sh does not appear to exist.
Comment 2 Leho Kraav (:macmaN @lkraav) 2013-04-28 16:07:41 UTC
I was also wondering about 1.96 bash-completion. AFAICS the ebuild does say IUSE, but does nothing to actually pull the dependency in if it doesn't exist on the system. Shouldn't it have either "inherit bash-completion" or an [R]DEPEND line?
Comment 3 Leho Kraav (:macmaN @lkraav) 2013-04-28 16:08:19 UTC
Point being, hopefully this will be addressed in 2.00 ebuild and backported accordingly.
Comment 4 Tim Harder gentoo-dev 2013-06-18 01:06:19 UTC
2.04 added to CVS.