Hi all,

I'm looking for a review of the fix for bug #395:

  http://defect.opensolaris.org/bz/show_bug.cgi?id=395
  import's package statements don't allow forward slashes

Webrev is at:

  http://cr.opensolaris.org/~richb/pkg-395-v1/

In order to test this I created a new dummy package called "libc"
under .../distro-import/98/common/system

containing:

package system/libc
description "Package to test package names with slashes"
version 0.1
add dir path=tmp/bug395s mode=0755 owner=root group=bin
depend SUNWcsl
end package

and (just to test it), added a new line:

+include common/system/libc

to .../src/util/distro-import/98/slim_cluster.

I then build the slim_cluster with:

#! /bin/ksh

export ROOT=/export/home/richb/pkg/bugs/395/gate/proto/root_i386
export PYTHONPATH=${ROOT}/usr/lib/python2.4/vendor-packages
export REPO=http://localhost:2395/
export 
WOS_PKGS=/export/home/pkg-solaris/WOS_Packages/x/98/Solaris_11/Product/

(cd src/util/distro-import ;    \
    make -e clobber ;        \
    make -e 98/slim_import
) > errs.import 2>&1 &

Note that I had to copy .bashrc and .profile from
.../src/util/distro-import/99 to .../src/util/distro-import/98
in order to get this to build. See:
http://mail.opensolaris.org/pipermail/pkg-discuss/2008-October/006958.html
for more details on that.

Sun internal folks can see this repository at 
http://stard.sfbay.sun.com:2395
In particular look for the "pkg:/system/libc" package. In order to view that
package's info and manifest files, you will need a pull of the pkg 
sources with
the fix for bug #3664 in it - thanks Shawn).

I then installed that new package on my local system (which is running build
#98) with:

[EMAIL PROTECTED]:~$ pfexec pkg set-authority -O 
http://stard.sfbay.sun.com:2395 bug-395
[EMAIL PROTECTED]:~$ pfexec pkg refresh
[EMAIL PROTECTED]:~$ pfexec pkg install "system/libc"
PHASE                                        ACTIONS
Install Phase                                    5/5
PHASE                                          ITEMS
Reading Existing Index                           9/9
Indexing Packages                                1/1
[EMAIL PROTECTED]:~$ pfexec pkg unset-authority bug-395

I checked to see if the new directory had been installed:

[EMAIL PROTECTED]:~$ ls -lasi /tmp/bug395s
total 16
1617731081    8 drwxr-xr-x   2 root     bin          117 Oct  1 08:41 .
1529697611    8 drwxrwxrwt  14 root     sys         1328 Oct  1 08:41 ..

Thanks.

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to