Re: looking for port origin for executable

2021-05-05 Thread Tatsuki Makino
Piotr Smyrak wrote on 2021/05/05 02:28:
> $ find /usr/ports -name pkg-plist | xargs grep -l bin/g-ir-scanner

If grep is to be used, then

grep -rn --include \*/Makefile\* --include \*/pkg-plist\* -e g-ir-scanner 
/usr/ports

It can also be picked up to some extent from PLIST_FILES in the Makefile.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-05 Thread Eugene Grosbein
05.05.2021 0:28, Piotr Smyrak wrote:

>>  Would some kind soul please tell me which port installs the
>> executable "g-ir-scanner"?  I was purging unused ports and seem to
>> have done this one by mistake.
> 
> When I hit a wall like this, this is my usual way to get around without
> any additional tools:
> 
> $ find /usr/ports -name pkg-plist | xargs grep -l bin/g-ir-scanner

Or just: locale g-ir-scanner
Which is much faster as it uses indexed /var/db/locate.database


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-05 Thread Michael Gmelin


> On 5. May 2021, at 20:25, Christian Weisgerber  wrote:
> 
> On 2021-05-04, Robert Huff  wrote:
> 
>>Would some kind soul please tell me which port installs the
>> executable "g-ir-scanner"?  I was purging unused ports and seem to
>> have done this one by mistake.
> 
> pkg-which(1)
> 
> $ pkg which /usr/local/bin/g-ir-scanner
> /usr/local/bin/g-ir-scanner was installed by package 
> gobject-introspection-1.66.1,1
> 

This only works if the package it came from is still installed. Robert was 
trying to find the package that will give him that file, as he deleted that 
package by accident.

Best
Michael

> -- 
> Christian "naddy" Weisgerber  na...@mips.inka.de
> ___
> freebsd-ports@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-05 Thread Christian Weisgerber
On 2021-05-04, Robert Huff  wrote:

>   Would some kind soul please tell me which port installs the
> executable "g-ir-scanner"?  I was purging unused ports and seem to
> have done this one by mistake.

pkg-which(1)

$ pkg which /usr/local/bin/g-ir-scanner
/usr/local/bin/g-ir-scanner was installed by package 
gobject-introspection-1.66.1,1

-- 
Christian "naddy" Weisgerber  na...@mips.inka.de
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Rodrigo Osorio

On 5/4/21 3:53 PM, Freddie Cash wrote:

On Tue, May 4, 2021 at 8:33 AM Robert Huff  wrote:


 Would some kind soul please tell me which port installs the
executable "g-ir-scanner"?  I was purging unused ports and seem to
have done this one by mistake.


http://freshports.org allows you to do searches of pkg-plist files.  It's a
little finicky, though.

Doing a search for "g-ir-scanner" returns 0 hits, regardless of what type
of search is done.

Doing a search for "bin/g-ir-scanner" returns gobject-introspection.

So if you know the path for the file (relative to /usr/local), then the
search works.


pkg-provides also does the job :)

% pkg provides g-ir-scanner

Name    : gobject-introspection-1.66.1,1
Desc    : Generate interface introspection data for GObject libraries
Repo    : FreeBSD
Filename: usr/local/man/man1/g-ir-scanner.1.gz
  usr/local/bin/g-ir-scanner

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Rodrigo Osorio

On 5/4/21 5:29 PM, Tatsuki Makino wrote:

Rodrigo Osorio wrote on 2021/05/05 00:59:

pkg-provides also does the job :)

% pkg provides g-ir-scanner

Name    : gobject-introspection-1.66.1,1
Desc    : Generate interface introspection data for GObject libraries
Repo    : FreeBSD
Filename: usr/local/man/man1/g-ir-scanner.1.gz
   usr/local/bin/g-ir-scanner

Where can I find pkg provides? <--- ports-mgmt/pkg-provides :)

Absolutely !


If it's somewhere in the PATH, pkg which -p g-ir-scanner is fine.

Sure, pkg-provides helps you to identify the package for a tool
you wanna use :)



___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"



___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Tatsuki Makino
Rodrigo Osorio wrote on 2021/05/05 00:59:
> pkg-provides also does the job :)
> 
> % pkg provides g-ir-scanner
> 
> Name    : gobject-introspection-1.66.1,1
> Desc    : Generate interface introspection data for GObject libraries
> Repo    : FreeBSD
> Filename: usr/local/man/man1/g-ir-scanner.1.gz
>   usr/local/bin/g-ir-scanner

Where can I find pkg provides? <--- ports-mgmt/pkg-provides :)

If it's somewhere in the PATH, pkg which -p g-ir-scanner is fine.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Piotr Smyrak
On Tue, 4 May 2021 11:33:12 -0400
Robert Huff  wrote:

>   Would some kind soul please tell me which port installs the
> executable "g-ir-scanner"?  I was purging unused ports and seem to
> have done this one by mistake.

When I hit a wall like this, this is my usual way to get around without
any additional tools:

$ find /usr/ports -name pkg-plist | xargs grep -l bin/g-ir-scanner

-- 
 Piotr Smyrak
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Rodrigo Osorio

On 5/4/21 3:53 PM, Freddie Cash wrote:

On Tue, May 4, 2021 at 8:33 AM Robert Huff  wrote:


  Would some kind soul please tell me which port installs the
executable "g-ir-scanner"?  I was purging unused ports and seem to
have done this one by mistake.


http://freshports.org allows you to do searches of pkg-plist files.  It's a
little finicky, though.

Doing a search for "g-ir-scanner" returns 0 hits, regardless of what type
of search is done.

Doing a search for "bin/g-ir-scanner" returns gobject-introspection.

So if you know the path for the file (relative to /usr/local), then the
search works.


pkg-provides also does the job :)

% pkg provides g-ir-scanner

Name    : gobject-introspection-1.66.1,1
Desc    : Generate interface introspection data for GObject libraries
Repo    : FreeBSD
Filename: usr/local/man/man1/g-ir-scanner.1.gz
  usr/local/bin/g-ir-scanner


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Freddie Cash
On Tue, May 4, 2021 at 8:33 AM Robert Huff  wrote:

> Would some kind soul please tell me which port installs the
> executable "g-ir-scanner"?  I was purging unused ports and seem to
> have done this one by mistake.
>

http://freshports.org allows you to do searches of pkg-plist files.  It's a
little finicky, though.

Doing a search for "g-ir-scanner" returns 0 hits, regardless of what type
of search is done.

Doing a search for "bin/g-ir-scanner" returns gobject-introspection.

So if you know the path for the file (relative to /usr/local), then the
search works.

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: looking for port origin for executable

2021-05-04 Thread Herbert J. Skuhra
On Tue, May 04, 2021 at 11:33:12AM -0400, Robert Huff wrote:
> 
> Hello:
>   Would some kind soul please tell me which port installs the
> executable "g-ir-scanner"?  I was purging unused ports and seem to
> have done this one by mistake.

devel/gobject-introspection

--  
Herbert
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"