Shawn Walker wrote:
Robert Milkowski wrote:
Shawn Walker wrote:
integrated as opposed to providing other tools to accomplish the same task.

Shawn - after having all that discussion I was thinking, are you proposing actually something like:

cat pseudo_code_pkgnodeps.sh
 pkgrecive $1 | grep -v "^depend " | pkgsend -n $package--nodeps
 pkg install $package--nodeps

More like:

pkgrecv -s <src_repo> -d <dest_repo> --no-deps $1
pkg install pkg://my_publisher/$1

This is not that bad then, especially if -d could be ommited and default local depo would be used.


If yes why not to implement it as a feature of pkg?

Because there is a high cost in doing so and it doesn't belong there.
Just as *NIX systems often have separate tools that can be combined to perform jobs in efficient useful ways (think awk, grep, sed, etc.), the pkg(5) commands also are each suited to a different task. pkgrecv / pkgsend are for publication, pkg for managing images, pkg.depotd for serving packages, etc.


But at the same time not everyone is a package developer and an obvious place to look for --nodeps for a sysadmin would be a tool to install a package, like they have already been used to on other platforms. IMHO sometimes one has to compromise a goal of being totally correct with end-user usability and Solaris did suffer because of it many times in tha past.

In this particular case, assumin that local depo would be ready to use out of the box (which is already the case iirc) I think that putting extra section in pkg manpage which will explain with an example on how to re-publish a package without its dependencies in one single command to a local or remote repository then that would be good enough.

Right now it would be a manual process and for any sysadmin not familiar with package building with ips it would be utterly frustrating to do it at 3am because of some production issue needed to be fixed now, but once above would be implemented and hidden from a user then that would be more than fine.

For some reason the 3am arguments remind me of semi-recent USA political campaigns ;)

As my friend used to say - "it's all about perception". The 3am argument is a real life experience one and a whole discussion imho is more about misunderstanding each other than the feature itself. Because ips is relatively new and many people are not that much familiar with how to build or publish packages with it the idea of republishing seems like a lot to do... but actually it is not, especially if something like pkgrecv --nodeps


Assuming an example and description would end-up in pkg manpage I'm entirely happy with such approach
:)

--
Robert Milkowski
http://milek.blogspot.com

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

Reply via email to