Skip to main content

[pkg-discuss] Packaging release notes for packages being removed?

  • From: Alan Coopersmith < >
  • To:
  • Subject: [pkg-discuss] Packaging release notes for packages being removed?
  • Date: Fri, 31 May 2013 12:56:13 -0700

I'm working on the removal of some Xorg driver packages and thought I'd
use the release note mechanism in IPS to provide a heads up on upgrade.

I created a file named x11:server:xorg:driver:xorg-video-nv-1.txt which
contained the message I wanted to display:

The nv open source driver for Xorg for Nvidia graphics is no longer provided.

If you have an xorg.conf file which specifies this device driver, you will
need to change it to use the "nvidia" or "vesa" drivers instead.

I then changed the xorg-video-nv package to be marked obsolete:

set name=pkg.fmri \
    
value=pkg:/x11/server/xorg/driver/xorg-video-nv@2.1.20,5.12-5.12.0.0.0.24.0
set name=pkg.obsolete value=true

and added the release note to the x11-server-xorg.p5m manifest:

file \
    
path=usr/share/doc/release-notes/x11:server:xorg:driver:xorg-video-nv-1.txt \
    
release-note=pkg:/x11/server/xorg/driver/xorg-video-nv@2.1.20,5.12-5.12.0.0.0.24.0

since I can't put it in the package being removed, and it made most sense in 
the
package providing the Xorg server (since if you don't have that, you don't 
care
about xorg.conf or Xorg driver modules).

Upon upgrading to my test repo with these changes it looked like it was 
working:

Packages to remove:   2
Packages to update: 176
Services to change:   2

Release notes can be viewed with 'pkg history -n 1 -N'
DOWNLOAD                                PKGS         FILES    XFER (MB)   
SPEED
Completed                            178/178       428/428    35.8/35.8    
0B/s
[...]

But that command doesn't work - even extending the number to -n 10 simply 
prints

2013-05-30T13:16:43: Release notes: None

for all the entries (though with various dates).

Do release notes not work for obsoleting packages?  Or have I missed 
something?

-- 
        -Alan Coopersmith-              

         Oracle Solaris Engineering - http://blogs.oracle.com/alanc


[pkg-discuss] Packaging release notes for packages being removed?

Alan Coopersmith 05/31/2013

[pkg-discuss] Re: Packaging release notes for packages being removed?

Bart Smaalders 05/31/2013

[pkg-discuss] Re: Packaging release notes for packages being removed?

Alan Coopersmith 05/31/2013
 
 
Close
loading
Please Confirm
Close