Sajith C R | 21 Mar 2013 17:02
Picon

Re: pkg-discuss Digest, Vol 67, Issue 14

Hi Tim,
Thanks for the replay.
I found following two cases do not work
1. Copy the p5p file to global zone and local zone but their paths are
different on global zone and local zone. Set the publisher on global zone
and local zone with #pkg set-publisher -g <path> <publisher> command with
corresponding path.Say /tmp on global zone and / on local zone.
in this case package install fails with following error
----------------------------------------------
A 'sync-linked' operation failed for child 'zone:testzone' with an
unexpected
return value of 1 and the following error message:
pkg: 0/1 catalogs successfully updated:

Unable to contact valid package repository
Encountered the following error(s):
Unable to contact any configured publishers.
This is likely a network configuration problem.
file protocol error: code: 22 reason: The path '/Mypkg.p5p' does not
contain a valid package repository.
Repository URL: 'file:///Mypkg.p5p'.

----------------------------------------------
2. if we try to set the publisher on global zone, with pkg set-publisher -p
option, then the SMF service /application/pkg/system-repository in global
zone will go to maintenance state and thus do not allow to set a publisher
in local zone.

But when I repeat the step #1 with my p5p package with same path say /tmp
on global and local zone (and with -g option to set-publisher), package
(Continue reading)

Tim Foster | 19 Mar 2013 21:51
Picon
Favicon

Code review reminder: pkg/update fix and sysrepo config resiliency

Hi there,

Just a quick reminder that I've got two small fixes out for code review 
at the moment, and was wondering if anyone had time to take a look?

The webrevs are:

https://cr.opensolaris.org/action/browse/pkg/timf/sysrepo-resilient-config/sysrepo-resilient-config-webrev/

https://cr.opensolaris.org/action/browse/pkg/timf/add-cronjob/add_cronjob-webrev

The original mails to pkg-discuss were:

Subject: Code review: making pkg.sysrepo more resilient in the face of 
inaccessible file repos
  (sent 02/26)

Subject: Code review: add_cronjob failing after unclean shutdown
  (sent 03/14)

	cheers,
			tim
Sajith C R | 19 Mar 2013 12:54
Picon

p5p package install with parent dependency within local zones

Hi IPS team,
I am facing following issue with p5p archive package install inside local
zones on solaris 11.
I use p5p format package to install my package on solaris 11 and the
package contains following entries in the manifest to define parent
dependency.

depend type=parent fmri=feature/package/dependency/self
variant.opensolaris.zone=nonglobal

Prior to solaris 11 update, since the file based p5p publisher is not
propagated inside a zone automatically, I had to install the p5p package
inside local zones by copying the p5p file inside zone and then setting
publisher inside zone which was working fine for me.

with parent dependency mentioned, the package upgrades are not working with
my p5p format packages.
When publisher is set at global zone, IPS complain about version mismatch
with local zone.
If global zone is upgraded after detaching the local zone, later zone
attach fails because of package version mismatch.

I want to how to upgrade such packages on a pre-solaris 11 update1 setups?

With solaris 11u1 onwards, this issue is not there as both global zone and
local zones are updates together.

Thanks in advance.

--

-- 
(Continue reading)

James Litchfield | 18 Mar 2013 20:03
Picon
Favicon

How to repair /etc/pam.conf

Through some mysterious process, I have ended up with a
zero length /etc/pam.conf.

The intriguing thing is how do I rectify this situation?

I can find the file in the package, I can do a pkg fix on the
package that contains it and I still end up with what I had before.
One possibility is that it gets built on the fly?

This does bring up a question: how does one extract a
single file from a package in a supported manner?

Jim
----

>  pkg search /etc/pam.conf
> INDEX      ACTION VALUE        PACKAGE
> path       file   etc/pam.conf pkg:/system/core-os <at> 5.12-5.12.0.0.0.17.3
> pkg: Some repositories failed to respond appropriately:
> Some repositories don't support requested search operation:
> extra:
> Unable to retrieve requested package data for publisher extra; no 
> repositories are currently configured for use with this publisher.
>
> # pkg fix pkg:/system/core-os <at> 5.12-5.12.0.0.0.17.3
> Verifying: pkg://solaris/system/core-os                         ERROR
>     dir: export
>         Group: 'staff (10)' should be 'sys (3)'
>     dir: var/share
>         Group: 'root (0)' should be 'sys (3)'
(Continue reading)

Tim Foster | 14 Mar 2013 06:56
Picon
Favicon

Code review: add_cronjob failing after unclean shutdown

hi there,

I've a short webrev here that fixes the case where a system was rebooted 
without the SMF stop-method script being called for the services that 
use the pkg5_include.sh function 'add_cronjob', causing the subsequent 
start-method script to fail.

This bug affects svc:/application/pkg/update and the new 
svc:/application/pkg/mirror services.

https://cr.opensolaris.org/action/browse/pkg/timf/add-cronjob/add_cronjob-webrev

Comments welcome,

	cheers,
			tim
Joe Higgins | 12 Mar 2013 14:29
Picon
Favicon

safety of the update (downgrade) operation

Hi,

I had a general question about the pkg update operation.

With the update operation the user can pick specify a version which 
might actually be a downgrade on a installed package.

I see one caveat in the man page about

Please note that updating
           specific packages across package rename or obsolete boundaries
           is not supported.

So are they any additional scenarios WRT to downgrading packages which 
customers need to be concerned about.

Joe
Erik.Trauschke | 11 Mar 2013 23:34
Picon
Favicon

15804991 option mangling and verification should be part of the API, not the CLI client

Author: Erik Trauschke <Erik.Trauschke <at> oracle.com>
Repository: /hg/pkg/gate
Branch: default
Latest revision: 09e276ba70c65d321c8d9f631b70bf74be5fc01d
Total changesets: 1
Log message:
15804991 option mangling and verification should be part of the API, not the CLI client

Files:
	create: src/modules/client/options.py
	update: src/client.py
	update: src/modules/client/api_errors.py
	update: src/modules/misc.py
	update: src/pkg/manifests/package:pkg.p5m
	update: src/po/POTFILES.in
Peter Cudhea | 9 Mar 2013 16:24
Picon
Favicon

Fwd: Removed from hook-test-commits <at> ips.java.net

When I created a new account at java.net and then joined the new IPS java.net project, I got the following
message.   Do you know what causes this?   

/peter

Begin forwarded message:

> From: hook-test-commits-request <at> ips.java.net
> Date: March 9, 2013 10:20:54 AM EST
> To: peter.cudhea <at> oracle.com
> Subject: Removed from hook-test-commits <at> ips.java.net
> 
> Your address (peter.cudhea <at> oracle.com) has been removed from list
> hook-test-commits <at> ips.java.net, probably because we received
> non-delivery reports for your address.
> 
> You can subscribe again :
> mailto:sympa <at> ips.java.net?subject=sub%20hook-test-commits

Peter Cudhea
peter.cudhea <at> oracle.com
Danek Duvall | 8 Mar 2013 23:11
Picon
Favicon

IPS project migrating to java.net

In an effort to consolidate our support infrastructure, we are moving the
remaining projects on opensolaris.org to java.net, including IPS.  The
transition will be complete on March 24, as you may have noticed.

The project on java.net will be available via the following URL:

    http://java.net/projects/ips

The source code is available from the following URLs:

    ssh://<username> <at> hg.java.net/ips~pkg-gate
    https://hg.java.net/hg/ips~pkg-gate

The latter URL does not require any association with the project or even
with java.net -- you can retrieve the source without registering.

You will need to register with java.net to stay on the mailing list,
though, which is now

    pkg-discuss <at> ips.java.net

We can't transfer user accounts automatically, due to privacy restrictions
and the fact that usernames might conflict, so you'll have to register and
subscribe yourself.

As of this time, java.net does not provide a dedicated mechanism to post
code reviews, so we're piggy-backing on the "website" feature, that allows
you to post arbitrary html content.  Right now, it's updated via a "website
hook", which updates the website based on the contents of a particular
repository.  In this case, that repo is
(Continue reading)

danek.duvall | 8 Mar 2013 19:07
Picon
Favicon

Added tag s12b17 for changeset 9339dcdbcf9d

Author: Danek Duvall <danek.duvall <at> oracle.com>
Repository: /hg/pkg/gate
Branch: default
Latest revision: 5a3a050c4d978f1bd30e3f1582379561d224f145
Total changesets: 1
Log message:
Added tag s12b17 for changeset 9339dcdbcf9d

Files:
	update: .hgtags
danek.duvall | 7 Mar 2013 00:20
Picon
Favicon

16447594 resync nroff manpages from docs group

Author: Danek Duvall <danek.duvall <at> oracle.com>
Repository: /hg/pkg/gate
Branch: default
Latest revision: 9339dcdbcf9db7b0e773609c53ddadfb191f879c
Total changesets: 1
Log message:
16447594 resync nroff manpages from docs group

Files:
	update: src/man/packagemanager.1
	update: src/man/pkg.1
	update: src/man/pkg.5
	update: src/man/pkg.depot-config.1m
	update: src/man/pkg.depotd.1m
	update: src/man/pkg.sysrepo.1m
	update: src/man/pkgdepend.1
	update: src/man/pkgdiff.1
	update: src/man/pkgmerge.1
	update: src/man/pkgmogrify.1
	update: src/man/pkgrecv.1
	update: src/man/pkgrepo.1
	update: src/man/pkgsend.1
	update: src/man/pm-updatemanager.1

Gmane