Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Aurélien Larcher
On Thu, Jan 14, 2021 at 9:26 PM Pierfrancesco Caci  wrote:

> cool thanks, in the meantime I found that I could do this:
>
> root@openindiana:~# pkg list -avHf sudo
> pkg://ik5pvx-repo/security/sudo@1.9.3.1-2020.0.1.0:20210114T173814Z
>  ---
> pkg://openindiana.org/security/sudo@1.9.3.1-2020.0.1.0:20201031T120907Z
>  i--
> pkg://openindiana.org/security/sudo@1.8.31-2020.0.1.0:20200330T16Z
>   ---
> root@openindiana:~# pkg install ik5pvx-repo/security/sudo
>
> pkg install: The following pattern(s) did not match any allowable
> packages.  Try
> using a different matching pattern, or refreshing publisher information:
>
> ik5pvx-repo/security/sudo
> root@openindiana:~# pkg install
> pkg://ik5pvx-repo/security/sudo@1.9.3.1-2020.0.1.0:20210114T173814Z
> Packages to update:   1
>Create boot environment:  No
> Create backup boot environment: Yes
> [...etc]
>
> It is running my version now, although it didn't take all the modifications
> I did. But that's another story.
>

Congratulations on your first steps :)

>
>
>
> On Thu, Jan 14, 2021 at 9:15 PM Aurélien Larcher <
> aurelien.larc...@gmail.com>
> wrote:
>
> > On Thu, Jan 14, 2021 at 9:08 PM Pierfrancesco Caci 
> > wrote:
> >
> > > The "rebuild" did the trick, but how do I specify to pkg to install the
> > > version from my repo instead of the official one? The version is the
> same
> > >
> >
> > First you need to allow cross-publisher updates:
> >
> > pfexec pkg set-publisher --non-sticky openindiana
> >
> > so that you can update from a package published at openindiana's repo to
> > yours.
> >
> > Then:
> >
> > pfexec pkg update -g /path/to/repo my_package_name
> >
> > Also you can do:
> >
> > pfexec pkg install -g /path/to/repo my_package_fmri
> >
> > where my_package_fmri is the full package identifier that you can
> > copy/paste from the output of gmake publish.
> >
> >
> >
> >
> >
> >
> >
> > >
> > >
> > > On Thu, Jan 14, 2021 at 8:39 PM Aurélien Larcher <
> > > aurelien.larc...@gmail.com>
> > > wrote:
> > >
> > > > You can even
> > > >
> > > > pkgrepo -s /path/to/repo list
> > > >
> > > > to make sure it was published where you think it was.
> > > >
> > > > On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher, <
> > > aurelien.larc...@gmail.com
> > > > >
> > > > wrote:
> > > >
> > > > > You can try to:
> > > > >
> > > > > pkgrepo -s /path/to/repo rebuild
> > > > >
> > > > > to update the repo index.
> > > > >
> > > > > On 1/14/21, Pierfrancesco Caci  wrote:
> > > > > > Hello,
> > > > > > I'm trying to learn how to recompile a package and put it in a
> > local
> > > > > repo.
> > > > > > I've followed the ips-dev-guide.pdf for setting up the repo, and
> > the
> > > > > > "Getting started with the Userland Consolidation" from github.
> > > > > > I got the package to compile and copy to the repo (gmake
> publish),
> > > but
> > > > > when
> > > > > > I try to search for that package with "pkg search sudo" I get
> this
> > > > error:
> > > > > >
> > > > > > pkg: Some repositories failed to respond appropriately:
> > > > > > ik5pvx-repo:
> > > > > >   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason:
> > > Search
> > > > > > temporarily unavailable.
> > > > > > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4
> > > > times)
> > > > > >
> > > > > > What am I doing wrong?
> > > > > >
> > > > > > Pf
> > > > > >
> > > > > > --
> > > > > >  Pierfrancesco Caci, ik5pvx
> > > > > > ___
> > > > > > openindiana-discuss mailing list
> > > > > > openindiana-discuss@openindiana.org
> > > > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > > > >
> > > > >
> > > > >
> > > > > --
> > > > > ---
> > > > > Praise the Caffeine embeddings
> > > > >
> > > > ___
> > > > openindiana-discuss mailing list
> > > > openindiana-discuss@openindiana.org
> > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > >
> > >
> > >
> > > --
> > >  Pierfrancesco Caci, ik5pvx
> > > ___
> > > openindiana-discuss mailing list
> > > openindiana-discuss@openindiana.org
> > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > >
> >
> >
> > --
> > ---
> > Praise the Caffeine embeddings
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
> --
>  Pierfrancesco Caci, ik5pvx
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Carsten Grzemba via openindiana-discuss


Am 14.01.21 21:08 schrieb Pierfrancesco Caci  : 
> 
> The "rebuild" did the trick, but how do I specify to pkg to install the
> version from my repo instead of the official one? The version is the same
> 
> 
> On Thu, Jan 14, 2021 at 8:39 PM Aurélien Larcher 
> wrote:
> 
> > You can even
> >
> > pkgrepo -s /path/to/repo list
> >
> > to make sure it was published where you think it was.
> >
> > On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher,  > >
> > wrote:
> >
> > > You can try to:
> > >
> > > pkgrepo -s /path/to/repo rebuild
> > >
> > > to update the repo index.
> > >
> > > On 1/14/21, Pierfrancesco Caci  wrote:
> > > > Hello,
> > > > I'm trying to learn how to recompile a package and put it in a local
> > > repo.
> > > > I've followed the ips-dev-guide.pdf for setting up the repo, and the
> > > > "Getting started with the Userland Consolidation" from github.
> > > > I got the package to compile and copy to the repo (gmake publish), but
> > > when
> > > > I try to search for that package with "pkg search sudo" I get this
> > error:
> > > >
> > > > pkg: Some repositories failed to respond appropriately:
> > > > ik5pvx-repo:
> > > > file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason: Search
> > > > temporarily unavailable.
> > > > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4
> > times)
> > > >
> > > > What am I doing wrong?
> 
its normal, search do not work on file repositories, only on pkg server.
 
> 
> 
> > > >
> > > > Pf
> > > >
> > > > --
> > > > Pierfrancesco Caci, ik5pvx
> > > > ___
> > > > openindiana-discuss mailing list
> > > > openindiana-discuss@openindiana.org
> > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > >
> > >
> > >
> > > --
> > > ---
> > > Praise the Caffeine embeddings
> > >
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
> 
> 
> -- 
>  Pierfrancesco Caci, ik5pvx
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
> 

you shoud set up your publisher in this kind:
builder@oi-dev:/code/github/openindiana/oi-userland/components/developer/rust$ 
pkg publisher
PUBLISHER TYPE STATUS P LOCATION
userland origin online F file:///code/github/openindiana/oi-userland/i386/repo/
openindiana.org (non-sticky) origin online T http://pkg.openindiana.org/hipster/

the order is important an can set with the --search-before option of 'pkg 
set-publisher'.
if you create a newer version you can fail on the userland-incorporation 
package which define the versions of packages if they installed. Than you have 
to unlock the version locking of userland-incorporation whith
$ sudo pkg change-facet 
which is the facet you have to unlock can you check whith
$ pkg contents -m userland-incorporation | grep 
 
-- 
Carsten
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Pierfrancesco Caci
cool thanks, in the meantime I found that I could do this:

root@openindiana:~# pkg list -avHf sudo
pkg://ik5pvx-repo/security/sudo@1.9.3.1-2020.0.1.0:20210114T173814Z
 ---
pkg://openindiana.org/security/sudo@1.9.3.1-2020.0.1.0:20201031T120907Z
 i--
pkg://openindiana.org/security/sudo@1.8.31-2020.0.1.0:20200330T16Z
  ---
root@openindiana:~# pkg install ik5pvx-repo/security/sudo

pkg install: The following pattern(s) did not match any allowable
packages.  Try
using a different matching pattern, or refreshing publisher information:

ik5pvx-repo/security/sudo
root@openindiana:~# pkg install
pkg://ik5pvx-repo/security/sudo@1.9.3.1-2020.0.1.0:20210114T173814Z
Packages to update:   1
   Create boot environment:  No
Create backup boot environment: Yes
[...etc]

It is running my version now, although it didn't take all the modifications
I did. But that's another story.



On Thu, Jan 14, 2021 at 9:15 PM Aurélien Larcher 
wrote:

> On Thu, Jan 14, 2021 at 9:08 PM Pierfrancesco Caci 
> wrote:
>
> > The "rebuild" did the trick, but how do I specify to pkg to install the
> > version from my repo instead of the official one? The version is the same
> >
>
> First you need to allow cross-publisher updates:
>
> pfexec pkg set-publisher --non-sticky openindiana
>
> so that you can update from a package published at openindiana's repo to
> yours.
>
> Then:
>
> pfexec pkg update -g /path/to/repo my_package_name
>
> Also you can do:
>
> pfexec pkg install -g /path/to/repo my_package_fmri
>
> where my_package_fmri is the full package identifier that you can
> copy/paste from the output of gmake publish.
>
>
>
>
>
>
>
> >
> >
> > On Thu, Jan 14, 2021 at 8:39 PM Aurélien Larcher <
> > aurelien.larc...@gmail.com>
> > wrote:
> >
> > > You can even
> > >
> > > pkgrepo -s /path/to/repo list
> > >
> > > to make sure it was published where you think it was.
> > >
> > > On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher, <
> > aurelien.larc...@gmail.com
> > > >
> > > wrote:
> > >
> > > > You can try to:
> > > >
> > > > pkgrepo -s /path/to/repo rebuild
> > > >
> > > > to update the repo index.
> > > >
> > > > On 1/14/21, Pierfrancesco Caci  wrote:
> > > > > Hello,
> > > > > I'm trying to learn how to recompile a package and put it in a
> local
> > > > repo.
> > > > > I've followed the ips-dev-guide.pdf for setting up the repo, and
> the
> > > > > "Getting started with the Userland Consolidation" from github.
> > > > > I got the package to compile and copy to the repo (gmake publish),
> > but
> > > > when
> > > > > I try to search for that package with "pkg search sudo" I get this
> > > error:
> > > > >
> > > > > pkg: Some repositories failed to respond appropriately:
> > > > > ik5pvx-repo:
> > > > >   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason:
> > Search
> > > > > temporarily unavailable.
> > > > > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4
> > > times)
> > > > >
> > > > > What am I doing wrong?
> > > > >
> > > > > Pf
> > > > >
> > > > > --
> > > > >  Pierfrancesco Caci, ik5pvx
> > > > > ___
> > > > > openindiana-discuss mailing list
> > > > > openindiana-discuss@openindiana.org
> > > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > > >
> > > >
> > > >
> > > > --
> > > > ---
> > > > Praise the Caffeine embeddings
> > > >
> > > ___
> > > openindiana-discuss mailing list
> > > openindiana-discuss@openindiana.org
> > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > >
> >
> >
> > --
> >  Pierfrancesco Caci, ik5pvx
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
> --
> ---
> Praise the Caffeine embeddings
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
 Pierfrancesco Caci, ik5pvx
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Aurélien Larcher
On Thu, Jan 14, 2021 at 9:08 PM Pierfrancesco Caci  wrote:

> The "rebuild" did the trick, but how do I specify to pkg to install the
> version from my repo instead of the official one? The version is the same
>

First you need to allow cross-publisher updates:

pfexec pkg set-publisher --non-sticky openindiana

so that you can update from a package published at openindiana's repo to
yours.

Then:

pfexec pkg update -g /path/to/repo my_package_name

Also you can do:

pfexec pkg install -g /path/to/repo my_package_fmri

where my_package_fmri is the full package identifier that you can
copy/paste from the output of gmake publish.







>
>
> On Thu, Jan 14, 2021 at 8:39 PM Aurélien Larcher <
> aurelien.larc...@gmail.com>
> wrote:
>
> > You can even
> >
> > pkgrepo -s /path/to/repo list
> >
> > to make sure it was published where you think it was.
> >
> > On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher, <
> aurelien.larc...@gmail.com
> > >
> > wrote:
> >
> > > You can try to:
> > >
> > > pkgrepo -s /path/to/repo rebuild
> > >
> > > to update the repo index.
> > >
> > > On 1/14/21, Pierfrancesco Caci  wrote:
> > > > Hello,
> > > > I'm trying to learn how to recompile a package and put it in a local
> > > repo.
> > > > I've followed the ips-dev-guide.pdf for setting up the repo, and the
> > > > "Getting started with the Userland Consolidation" from github.
> > > > I got the package to compile and copy to the repo (gmake publish),
> but
> > > when
> > > > I try to search for that package with "pkg search sudo" I get this
> > error:
> > > >
> > > > pkg: Some repositories failed to respond appropriately:
> > > > ik5pvx-repo:
> > > >   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason:
> Search
> > > > temporarily unavailable.
> > > > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4
> > times)
> > > >
> > > > What am I doing wrong?
> > > >
> > > > Pf
> > > >
> > > > --
> > > >  Pierfrancesco Caci, ik5pvx
> > > > ___
> > > > openindiana-discuss mailing list
> > > > openindiana-discuss@openindiana.org
> > > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > > >
> > >
> > >
> > > --
> > > ---
> > > Praise the Caffeine embeddings
> > >
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
> --
>  Pierfrancesco Caci, ik5pvx
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
---
Praise the Caffeine embeddings
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Pierfrancesco Caci
The "rebuild" did the trick, but how do I specify to pkg to install the
version from my repo instead of the official one? The version is the same


On Thu, Jan 14, 2021 at 8:39 PM Aurélien Larcher 
wrote:

> You can even
>
> pkgrepo -s /path/to/repo list
>
> to make sure it was published where you think it was.
>
> On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher,  >
> wrote:
>
> > You can try to:
> >
> > pkgrepo -s /path/to/repo rebuild
> >
> > to update the repo index.
> >
> > On 1/14/21, Pierfrancesco Caci  wrote:
> > > Hello,
> > > I'm trying to learn how to recompile a package and put it in a local
> > repo.
> > > I've followed the ips-dev-guide.pdf for setting up the repo, and the
> > > "Getting started with the Userland Consolidation" from github.
> > > I got the package to compile and copy to the repo (gmake publish), but
> > when
> > > I try to search for that package with "pkg search sudo" I get this
> error:
> > >
> > > pkg: Some repositories failed to respond appropriately:
> > > ik5pvx-repo:
> > >   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason: Search
> > > temporarily unavailable.
> > > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4
> times)
> > >
> > > What am I doing wrong?
> > >
> > > Pf
> > >
> > > --
> > >  Pierfrancesco Caci, ik5pvx
> > > ___
> > > openindiana-discuss mailing list
> > > openindiana-discuss@openindiana.org
> > > https://openindiana.org/mailman/listinfo/openindiana-discuss
> > >
> >
> >
> > --
> > ---
> > Praise the Caffeine embeddings
> >
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
 Pierfrancesco Caci, ik5pvx
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Aurélien Larcher
You can even

pkgrepo -s /path/to/repo list

to make sure it was published where you think it was.

On Thu, 14 Jan 2021, 8:10 pm Aurélien Larcher, 
wrote:

> You can try to:
>
> pkgrepo -s /path/to/repo rebuild
>
> to update the repo index.
>
> On 1/14/21, Pierfrancesco Caci  wrote:
> > Hello,
> > I'm trying to learn how to recompile a package and put it in a local
> repo.
> > I've followed the ips-dev-guide.pdf for setting up the repo, and the
> > "Getting started with the Userland Consolidation" from github.
> > I got the package to compile and copy to the repo (gmake publish), but
> when
> > I try to search for that package with "pkg search sudo" I get this error:
> >
> > pkg: Some repositories failed to respond appropriately:
> > ik5pvx-repo:
> >   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason: Search
> > temporarily unavailable.
> > Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4 times)
> >
> > What am I doing wrong?
> >
> > Pf
> >
> > --
> >  Pierfrancesco Caci, ik5pvx
> > ___
> > openindiana-discuss mailing list
> > openindiana-discuss@openindiana.org
> > https://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
> --
> ---
> Praise the Caffeine embeddings
>
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Aurélien Larcher
You can try to:

pkgrepo -s /path/to/repo rebuild

to update the repo index.

On 1/14/21, Pierfrancesco Caci  wrote:
> Hello,
> I'm trying to learn how to recompile a package and put it in a local repo.
> I've followed the ips-dev-guide.pdf for setting up the repo, and the
> "Getting started with the Userland Consolidation" from github.
> I got the package to compile and copy to the repo (gmake publish), but when
> I try to search for that package with "pkg search sudo" I get this error:
>
> pkg: Some repositories failed to respond appropriately:
> ik5pvx-repo:
>   file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason: Search
> temporarily unavailable.
> Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4 times)
>
> What am I doing wrong?
>
> Pf
>
> --
>  Pierfrancesco Caci, ik5pvx
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss
>


-- 
---
Praise the Caffeine embeddings

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] local pkg repo error

2021-01-14 Thread Pierfrancesco Caci
Hello,
I'm trying to learn how to recompile a package and put it in a local repo.
I've followed the ips-dev-guide.pdf for setting up the repo, and the
"Getting started with the Userland Consolidation" from github.
I got the package to compile and copy to the repo (gmake publish), but when
I try to search for that package with "pkg search sudo" I get this error:

pkg: Some repositories failed to respond appropriately:
ik5pvx-repo:
  file protocol error: code: E_FTP_WEIRD_PASS_REPLY (11) reason: Search
temporarily unavailable.
Repository URL: 'file:///export/home/ik5pvx/my-repo'. (happened 4 times)

What am I doing wrong?

Pf

-- 
 Pierfrancesco Caci, ik5pvx
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss