|
|
Info for developersCommon issues
Running a development server, smf(5)-style
One convenient way to run the server is, after pulling down a child, is
to use the $ cd path/to/child $ cd src $ su Password: # make link # svccfg import pkg-server.xmlThen, anytime you want to reload the server (because you edited module source, say), you only have to issue # ./bump-server.ksh(You can do this as non- root, if you've given yourself the
"Service Management" profile in /etc/user_attr.)
Running the client and server from the workspace proto areaDevelopers may find it easier to run the client and server from their location in the workspace proto area. Server$ WS=<path to root of workspace> $ PYTHONPATH=$WS/proto/root_`uname -p`/usr/lib/python2.4/vendor-packages/; export PYTHONPATH $ PKG_REPO=<path to repo> $WS/proto/root_`uname -p`/usr/lib/pkg.depotd Client$ WS=<path to workspace root> $ PYTHONPATH=$WS/proto/root_`uname -p`/usr/lib/python2.4/vendor-packages/; export PYTHONPATH $ PATH=$WS/proto/root_`uname -p`/usr/bin:$PATH; export PATH $ PKG_IMAGE=<path to image root>; export PKG_IMAGE $ pkg image-create -F -a authname=http://<server address>:10000 $PKG_IMAGE $ pkg refresh $ pkg install <package> Bug ManagementBugs should be filed on defect.opensolaris.org, under classification "Development", product "pkg". When you grab a bug to work on it, please assign yourself to the bug. If you decide to stop working on it, reset the assignee to the default. Although bugzilla should constrain the state transition to some extent, if we constrain it too much, you have to go through a number of state transitions to get to where you want to go. If there are problems with the state transitions (like they're proving to be super inconvenient), raise the issue on pkg-discuss. Generally, when you figure out why the buggy behavior is as it is, explain it and change the state to CAUSEKNOWN. When you figure out how to fix it, explain the fix and change the state to FIXUNDERSTOOD. When you actually start fixing the bug, change the state to FIXINPROGRESS. Once you've gotten all your testing done, reviews completed, etc, and pushed a changeset containing the fix to the main repository, add a comment like "Fixed in changeset Unless you're a project leader, don't change the state to anything more resolved than that, unless you're closing it off as a duplicate, saying you won't fix it, or can't reproduce, etc. Don't mark it as RESOLVED/FIXED or CLOSED/FIXED or FIXINBUILD. These are all "gatekeeper" states, at least for now. |