Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-31 Thread Nikolay Molchanov
> It is hackery because you are placing special behaviour into how input > is read from stdin for the sole purpose of supporting a deficiency in > the design of the program. What is the deficiency in the design of the "pkgrm" program? I don't suggest to change its interface, because I don't see h

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-31 Thread Nikolay Molchanov
Shawn Walker wrote: On 31/10/2007, Nikolay Molchanov <[EMAIL PROTECTED]> wrote: I'm not suggesting to change stdio, I'm suggesting to change pkgrm code to use "read(0, buf, 1);" in loop to read 1 byte from standard input until the end of line or EOF happens. Basica

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-31 Thread Nikolay Molchanov
I'm not suggesting to change stdio, I'm suggesting to change pkgrm code to use "read(0, buf, 1);" in loop to read 1 byte from standard input until the end of line or EOF happens. Basically it is the same loop as it uses to write its questions: 12580:write(2, " D", 1)= 1 1258

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-31 Thread Nikolay Molchanov
Jennifer Pioch wrote: On 10/31/07, Nikolay Molchanov <[EMAIL PROTECTED]> wrote: Thank you very much, guys, for giving this example: % yes | pkgrm ... It really works! But it is absolutely not understandable why a standard Unix solution does not work: % echo "y" |

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-30 Thread Nikolay Molchanov
Good idea! Unfortunately it also does not work, and I suspect the root of the problem is a bug in /usr/sbin/pkgrm command. Here is the output: # printf "y\ny\n" y y # printf "y\ny\n" | pkgrm SPROprfnx The following package is currently installed: SPROprfnx Sun Studio 12 Non-ship 64-bit com

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-30 Thread Nikolay Molchanov
I tried another way to pass 2 "y" replies: rm -f /tmp/yes.txt touch /tmp/yes.txt echo "y" >> /tmp/yes.txt echo "y" >> /tmp/yes.txt cat /tmp/yes.txt | pkgrm SPROprfnx And it also does not work. It reads fisrt "y", but ignores the second "y". At the same time /usr/sbin/pkgadd works just fine. It al

Re: [osol-discuss] package add and remove in non-interactive mode

2007-10-30 Thread Nikolay Molchanov
Thank you very much, guys, for giving this example: % yes | pkgrm ... It really works! But it is absolutely not understandable why a standard Unix solution does not work: % echo "y" | echo "y" | pkgrm ... What is interesting, the first "y" works, but the second "y" does not. Why? Is it a bug?

Re: Mozilla and GNUhacked "dmake" / was: Re: [osol-discuss] Re: [Fwd: RFE: Replace /usr/css/bin/make with

2006-05-01 Thread Nikolay Molchanov
Roland, Nikolay Molchanov wrote: [snip] We plan to start with Mozilla build, and to define the list of features, that we need in dmake to build Mozilla without changes in makefiles. Erm... such a project is likely going to fail. Mozilla depends specific

Re: [osol-discuss] Re: [Fwd: RFE: Replace /usr/css/bin/make with

2006-05-01 Thread Nikolay Molchanov
Ian, >>>Which features do you like to add? >> >>We plan to start with Mozilla build, and to define the list of features, >>that we need in dmake to build Mozilla without changes in makefiles. >>The list is not defined yet. Obviously "if" and other new keywords >>can create some conflicts with exi

Re: [osol-discuss] Re: [Fwd: RFE: Replace /usr/css/bin/make with

2006-05-01 Thread Nikolay Molchanov
Hi Joerg, Nikolay Molchanov <[EMAIL PROTECTED]> wrote: Roland Mainz <[EMAIL PROTECTED]> wrote: How different is their "make" version (or better: What are the differences ?) ? GNU makefiles

[osol-discuss] Re: [Fwd: RFE: Replace /usr/css/bin/make with

2006-04-22 Thread Nikolay Molchanov
> Roland Mainz <[EMAIL PROTECTED]> wrote: > > > How different is their "make" version (or better: > What are the differences ?) ? GNU makefiles and SUN makefiles have different syntax, and this is the main difference between "gmake" and "dmake". Sun Studio "dmake" (in serial mode) is compatible w

[osol-discuss] Re: Successful build on Ultra 3

2005-07-24 Thread Nikolay Molchanov
Hello Bill and Rich, I think it is not quite correct to compare sparc build with x64 build, but anyway, could you please add more information: 1. number of CPUs 2. number of parallel jobs (assuming you use dmake) 3. total real time 4. total user time 5. total sys time Thanks in advance, Nikolay

[osol-discuss] Re: SCCS histories, Bugs and missing deltas.

2005-07-09 Thread Nikolay Molchanov
o) and put this workspace on web, developers will be able to do bringover directly from OpenSolaris workspace. Nikolay Molchanov This message posted from opensolaris.org ___ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org

[osol-discuss] Re: Code Management System for OpenSolaris

2005-07-07 Thread Nikolay Molchanov
kspace with a CVS or SVN repository, and also allows to create intermediate local deltas, and to have local child workspaces. Nikolay Molchanov P.S.: As I said, we already have a TW-CVS bridge, and it can be easy modified to work with SVN, or with any other CMS, which provides command line

[osol-discuss] Re: Code Management System for OpenSolaris

2005-07-06 Thread Nikolay Molchanov
I don't know if JDS sources have ever been under TW, or if JDS developers used to use TW, but now decided to use CVS (which sounds strange to me :-). Anyway, this is not a problem. We have created a TeamWare client for CVS. This tool allows to use CVS repository as a "parent" workspace, so each de

[osol-discuss] Code Management System for OpenSolaris

2005-07-06 Thread Nikolay Molchanov
Solaris development, and for many other projects inside Sun. What about external developers? What do we recommend them to use? Technically it is easy to provide free CodeManager binaries for OpenSolaris developers. Thanks, Nikolay Molchanov P.S.: For those who want to know what is TeamWare, there a