Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ag grepper: New package #730

Closed
wants to merge 17 commits into from
Closed

ag grepper: New package #730

wants to merge 17 commits into from

Conversation

forgottenswitch
Copy link
Contributor

@forgottenswitch forgottenswitch commented Oct 28, 2016

"A better grep" and an addon package.
Distributions name it the_silver_searcher.

@forgottenswitch forgottenswitch changed the title Ag grepper ag grepper: New package Oct 28, 2016
@@ -0,0 +1,33 @@
# Maintainer: Mihail Konev <k.mvc@ya.ru>
Copy link
Contributor

Choose a reason for hiding this comment

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

IMO this folder should be named ag-git.
There should be another folder ag which installs stable release version.

The same applies to cgvg.


pkgname=ag
srcname=the_silver_searcher
pkgver=git
Copy link
Contributor

Choose a reason for hiding this comment

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

@mati865
Copy link
Collaborator

mati865 commented Oct 29, 2016

pkgver is wrong. For git packages it should use commit number like here https://github.com/Alexpux/MSYS2-packages/blob/master/gyp-git/PKGBUILD

The gettext package must be supplying
the /usr/bin/gettext,
while libintl should be enough for gettext().
@mati865
Copy link
Collaborator

mati865 commented Oct 31, 2016

pkgver is still wrong, look here: https://github.com/Alexpux/MSYS2-packages/blob/master/gyp-git/PKGBUILD#L24

url="https://github.com/ggreer/the_silver_searcher"
groups=('base' 'base-devel')
provides=('ag')
conflicts=('ag')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Remove provides=('ag'), conflicts=('ag') and groups=('base' 'base-devel')

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was package() in cgvg that was failing.

@@ -0,0 +1,35 @@
# Maintainer: Mihail Konev <k.mvc@ya.ru>

pkgname=ag
Copy link
Collaborator

Choose a reason for hiding this comment

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

change pkgname=ag to pkgname=ag-git

@@ -0,0 +1,29 @@
# Maintainer: Mihail Konev <k.mvc@ya.ru>

pkgname=cgvg
Copy link
Collaborator

Choose a reason for hiding this comment

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

change pkgname=cgvg to pkgname=cgvg-git

url="https://github.com/forgottenswitch/cgvg"
groups=('base' 'base-devel')
provides=('cgvg')
conflicts=('cgvg')
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove groups=('base' 'base-devel'), provides=('cgvg'), conflicts=('cgvg')

@forgottenswitch
Copy link
Contributor Author

forgottenswitch commented Nov 4, 2016

The cgvg is also implemented here, having profiles concept (but no manpage):
https://github.com/sampson-chen/sack

@mingwandroid
Copy link
Member

We already have ag in MINGW-packages so I'm against adding it here too. This came up already about a year ago.

@mingwandroid
Copy link
Member

The named pipe issue can be fixed with some tests for the pipe names. Git for Windows does this.

Slightly related, until the pipe handling is fixed, to prevent MINGW-packages ag from thinking it's in pipe mode pass . as an argument to indicate the current working directory.

@forgottenswitch
Copy link
Contributor Author

forgottenswitch commented Nov 8, 2016

Put this into header and patch ag, nodejs, ffmpeg, everything stdout is not a tty?
https://github.com/git-for-windows/git/pull/102/commits

Also:

[msys2-runtime]$ ag "[-]pty"
winsup/cygwin/fhandler_tty.cc
516:      __small_sprintf (buf, "\\\\.\\pipe\\cygwin-%S-pty%d-master-ctl",
1299:     __small_sprintf (buf, "\\\\.\\pipe\\cygwin-%S-pty%d-master-ctl",
1700:  __small_sprintf (buf, "\\\\.\\pipe\\cygwin-%S-pty%d-master-ctl",

@mingwandroid
Copy link
Member

Yes, but we need to be careful of licenses. @kblees, would you consider relicensing this code under BSD so we can use it in GPL and BSD software in MSYS2? If not then we'll need to rewrite it.

@mingwandroid
Copy link
Member

Sure.

@forgottenswitch
Copy link
Contributor Author

forgottenswitch commented Nov 8, 2016

Minimal working example:
https://github.com/forgottenswitch/mingw-isatty

This also pulls ntdll.dll, as well as headers

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.

None yet

4 participants