pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/49117: new pkg_info file list option
The following reply was made to PR pkg/49117; it has been noted by GNATS.
From: Aleksey Cheusov <vle%gmx.net@localhost>
To: =?UTF-8?Q?R=C3=A9my_Chibois?= <rchibois%gmail.com@localhost>
Cc: gnats-bugs%netbsd.org@localhost, pkg-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/49117: new pkg_info file list option
Date: Fri, 15 Aug 2014 23:13:55 +0300
--001a1139872022a8480500b0a94a
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
On Fri, Aug 15, 2014 at 9:17 PM, R=C3=A9my Chibois
<rchibois%gmail.com@localhost> wro=
te:
> >> There is currently no way to search for non-installed packages
> containing
> >> a file. A simple (compressed) file in the spirit of pkg_summary.gz and
> >> stored in binary package repositories would allow this.
> >
> >
> > JFYI: pkgtools/nih, a package manager for pkgsrc, provides a
> functionality
> > you need.
>
> Thanks for this information, Aleksey.
>
> The proposed option is aimed at binary package management and a companion
> tool to pkgin, that is without the need to fetch the entire pkgsrc tree.
>
Well, "nih search" is actually not about scanning pkgsrc tree.
As I said, it provides search in binary repository as well.
Scanning pkgsrc tree and search in it is just one option.
I mentioned "nih" because it has powerful search capabilities. It supports
search in binary repository.
The only problem is that bulk build tools (distbb, pbulk) don't provide
something like your pkg_files.gz,
so, searching in PLIST in this mode is not available.
As about your original proposal, I'd like to see pkg_files.gz file in
pkg_summary(5) format, that is KEY=3DVALUE.
pkgtools/pkg_summary-utils contains pkg_bin_summary script built on top of
"pkg_info -XL" and implements
things similar to your pkg_info -Y.
0 cheusov>pkg_bin_summary -f PKGNAME,PKGPATH,PLIST pkglint
PKGNAME=3Dpkglint-4.144
PKGPATH=3Dpkgtools/pkglint
PLIST=3D/opt/pkgsrc4unix/bin/pkglint
PLIST=3D/opt/pkgsrc4unix/bin/plist-clash
PLIST=3D/opt/pkgsrc4unix/man/man1/pkglint.1
PLIST=3D/opt/pkgsrc4unix/share/pkglint/deprecated.map
PLIST=3D/opt/pkgsrc4unix/share/pkglint/makevars.map
0 cheusov>pkg_bin_summary -f PKGNAME,PKGPATH,PLIST
/srv/pkgsrc_bin/Linux/RHEL/x86_64/6/current/All/pkg-config-0.28.tgz
PKGNAME=3Dpkg-config-0.28
PKGPATH=3Ddevel/pkg-config
PLIST=3D/opt/pkgsrc4unix/bin/pkg-config
PLIST=3D/opt/pkgsrc4unix/man/man1/pkg-config.1
PLIST=3D/opt/pkgsrc4unix/share/aclocal/pkg.m4
PLIST=3D/opt/pkgsrc4unix/share/doc/pkg-config/pkg-config-guide.html
0 cheusov>
Obviously, you can search in pkg_summary(5) files just like in pkg_files.gz=
.
In my view the goal #1 should be pbulk generating pkg_files.gz file in
pkg_summary(5) format.
Patching pkg_info is not necessary. We already have "pkg_info -BL" and even
"pkg_bin_summary"
built on top of it.
P.S. Search in pkg_summary(5) files is also already implemented in
pkg_grep_summary (pkgtools/pkg_summary-utils).
--001a1139872022a8480500b0a94a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On F=
ri, Aug 15, 2014 at 9:17 PM, R=C3=A9my Chibois <span dir=3D"ltr"><<a hre=
f=3D"mailto:rchibois%gmail.com@localhost"
target=3D"_blank">rchibois%gmail.com@localhost</a>>=
;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div class=3D"">>> =
There is currently no way to search for non-installed packages containing<b=
r>
>> a file. A simple (compressed) file in the spirit of pkg_summary.gz=
and<br>
>> stored in binary package repositories would allow this.<br>
><br>
><br>
> JFYI: pkgtools/nih, a package manager for pkgsrc, provides a functiona=
lity<br>
> you need.<br>
<br>
</div>Thanks for this information, Aleksey.<br>
<br>
The proposed option is aimed at binary package management and a companion<b=
r>
tool to pkgin, that is without the need to fetch the entire pkgsrc tree.<br=
></blockquote><div><br></div><div>Well, "nih search" is actually =
not about scanning pkgsrc tree. <br></div><div>As I said, it provides searc=
h in binary repository as well.<br>
Scanning pkgsrc tree and search in it is just one option.</div><div>I menti=
oned "nih" because it has powerful search capabilities. It suppor=
ts search in binary repository.<br>The only problem is that bulk build tool=
s (distbb, pbulk) don't provide something like your pkg_files.gz,<br>
</div><div>so, searching in PLIST in this mode is not available.<br></div><=
div><br></div><div>As about your original proposal, I'd like to see pkg=
_files.gz file in pkg_summary(5) format, that is KEY=3DVALUE.<br></div><div=
>
pkgtools/pkg_summary-utils contains pkg_bin_summary script built on top of =
"pkg_info -XL" and implements<br></div><div>things similar to you=
r pkg_info -Y.<br><br>0 cheusov>pkg_bin_summary -f PKGNAME,PKGPATH,PLIST=
pkglint<br>
PKGNAME=3Dpkglint-4.144<br>PKGPATH=3Dpkgtools/pkglint<br>PLIST=3D/opt/pkgsr=
c4unix/bin/pkglint<br>PLIST=3D/opt/pkgsrc4unix/bin/plist-clash<br>PLIST=3D/=
opt/pkgsrc4unix/man/man1/pkglint.1<br>PLIST=3D/opt/pkgsrc4unix/share/pkglin=
t/deprecated.map<br>
PLIST=3D/opt/pkgsrc4unix/share/pkglint/makevars.map<br><br>0 cheusov>pkg=
_bin_summary -f PKGNAME,PKGPATH,PLIST /srv/pkgsrc_bin/Linux/RHEL/x86_64/6/c=
urrent/All/pkg-config-0.28.tgz <br>PKGNAME=3Dpkg-config-0.28<br>PKGPATH=3Dd=
evel/pkg-config<br>
PLIST=3D/opt/pkgsrc4unix/bin/pkg-config<br>PLIST=3D/opt/pkgsrc4unix/man/man=
1/pkg-config.1<br>PLIST=3D/opt/pkgsrc4unix/share/aclocal/pkg.m4<br>PLIST=3D=
/opt/pkgsrc4unix/share/doc/pkg-config/pkg-config-guide.html<br><br>0 cheuso=
v><br>
</div><br></div><div class=3D"gmail_quote"></div><div class=3D"gmail_quote"=
>Obviously, you can search in pkg_summary(5) files just like in pkg_files.g=
z.<br><br></div><div class=3D"gmail_quote">In my view the goal #1 should be=
pbulk generating pkg_files.gz file in pkg_summary(5) format.<br>
<br></div><div class=3D"gmail_quote">Patching pkg_info is not necessary. We=
already have "pkg_info -BL" and even "pkg_bin_summary"=
<br>built on top of it.<br></div><div class=3D"gmail_quote"><br></div><div =
class=3D"gmail_quote">
P.S. Search in pkg_summary(5) files is also already implemented in pkg_grep=
_summary (pkgtools/pkg_summary-utils).<br><br></div></div></div>
--001a1139872022a8480500b0a94a--
Home |
Main Index |
Thread Index |
Old Index