Re: [OpenIndiana-discuss] Setting LD_PRELOAD

2010-11-07 Thread Alan Coopersmith
Paul Johnston wrote:
> pa...@openindiana:~$ grep PRELOAD .bashrc
> LD_PRELOAD=/usr/lib/libCrun.so.1
> /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
> export LD_PRELOAD

That doesn't say "set LD_PRELOAD only for this program", that says
run this program RIGHT NOW (when loading your .bashrc) with that
variable set.

The conventional way when you're stuck with a binary you can't rebuild
is to mv the binary to a new name, and save a shell script in the old
name that sets the variable just for that binary and then executes it.
(Though even that has problems if your binary in turn execs other programs.)

But, since that's in /usr/local and sounds like open source software,
you should just build it right in the first place.


-- 
-Alan Coopersmith-alan.coopersm...@oracle.com
 Oracle Solaris Platform Engineering: X Window System


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Subpixel Patches

2010-11-07 Thread Albert Lee
On Mon, Nov 8, 2010 at 12:14 AM, Dustin Marquess  wrote:
> All,
>
> Sorry in advance if this more of an IllumOS question, but I don't think it is.
>
> As somebody who sits and stares at an LCD all day long, I have a
> nitpick for fonts looking good.  This has been one area that for me,
> all *IXs have been falling flat on.
>
> In my quest, I found the following site:
>
> http://www.infinality.net/blog/?cat=4
>
> They offer patches for freetype, cairo, and libXft that make fonts
> awesome.  Back in the OpenSolaris days, when I was attempting to move
> my work laptop over, I managed to get freetype patched, but I always
> had problems finding the correct cairo & libXft sources to
> patch/install.
>
> Before I attempt again, is there any decent reason why these patches
> shouldn't be in IllumOS/OpenIndiana proper?
>
> I went through all of the SRPMs and pulled out the font patches and
> put them @ http://www.cmsnoc.com/font/ to make it easier to dig
> through.
>


These changes are questionable. As hinting is usually meant to fit
outlines to the pixel grid at small sizes for clarity, the phrase
"subpixel hinting" is a bit of an oxymoron. The main part is
self-described as simply disabling hinting along the X axis.

Do these apply to the autohinter or the embedded hints? Do you have
examples of rendering improvements? If there are improvements, why
hasn't upstream adopted them?

"Good" for font rendering is highly subjective. With the (formerly
patented) bytecode interpreter enabled, I find the FreeType output for
most fonts included with the system, such as the commonly used
Liberation and DejaVu fonts, to be pleasant and have less noticeable
artifacts than the Windows font renderer output with the Windows
system fonts and Core Fonts.

-Albert

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Subpixel Patches

2010-11-07 Thread Dustin Marquess
All,

Sorry in advance if this more of an IllumOS question, but I don't think it is.

As somebody who sits and stares at an LCD all day long, I have a
nitpick for fonts looking good.  This has been one area that for me,
all *IXs have been falling flat on.

In my quest, I found the following site:

http://www.infinality.net/blog/?cat=4

They offer patches for freetype, cairo, and libXft that make fonts
awesome.  Back in the OpenSolaris days, when I was attempting to move
my work laptop over, I managed to get freetype patched, but I always
had problems finding the correct cairo & libXft sources to
patch/install.

Before I attempt again, is there any decent reason why these patches
shouldn't be in IllumOS/OpenIndiana proper?

I went through all of the SRPMs and pulled out the font patches and
put them @ http://www.cmsnoc.com/font/ to make it easier to dig
through.

-Dustin

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] OpenJVM

2010-11-07 Thread BM
On Sun, Nov 7, 2010 at 9:32 PM, Apostolos Syropoulos
 wrote:
> And someone was saying that they cannot close OpenJDK:
>
> http://www.theregister.co.uk/2010/11/06/oracle_dueling_jvms/
>
> Oracle stinks

I think we can calm down on this one at least for two reasons:
1. Java failed for Sun to bring them money.
2. Snorcle can not *close* Java. In worst case it will be a fork from
OpenJDK, as it already is with forks like us (OpenIndiana),
LibreOffice and SkySQL. And we already have IcedTea around.

The logic here is pretty simple: if the difference of two JVM's (payed
and free) will be small (as Snorcle beats the breast "there will be
always fast performance free JVM"), Snorcle will capture bigger market
chunk. If not, expect it will really fork. When I say "free" and
"small difference", I also mean that we still will be able to write
*commercial* software with their *free* version legally. They have now
JRockit (very performant JVM) and Hotspot (more to be reliable, rather
then performant) and Oracle always wanted to merge them together.

After all, if Snorcle wants, then they can push patents, since Java
*and* Solaris are Oracle IP, by the way. Therefore this strategy is
probably valid to everything, where they have fingers in, including
OpenIndiana itself.

Google is using Java extensively, so they will do something about it
(Go comes in mind). Therefore I would rather stop cry, keep an eye on
random moves at Oracle, and make sure IcedTea is working on
OpenIndiana flawlessly out of the standard package. :-)

The bottom line is: Java will never be more free than is now. So bear with that.
-- 
Kind regards, BM

Things, that are stupid at the beginning, rarely ends up wisely.

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Setting LD_PRELOAD

2010-11-07 Thread McBofh

On  7/11/10 11:27 PM, Paul Johnston wrote:
...


Please regard this as a learning exercise for me so if I don't do
the exactly right thing I learn a little bit each iteration :-)
Anyway

pa...@openindiana:~$ grep PRELOAD .bashrc
LD_PRELOAD=/usr/lib/libCrun.so.1 /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
export LD_PRELOAD

pa...@openindiana:~$ source .bashrc
Environment variable BINDIR is not set

pa...@openindiana:~$ file /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
/usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp: ELF 32-bit LSB executable 
80386 Version 1 [FPU], dynamically linked, not stripped
pa...@openindiana:~$ ldd /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
libdl.so.1 => /lib/libdl.so.1
libm.so.2 => /lib/libm.so.2
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libcurses.so.1 => /lib/libcurses.so.1
libkstat.so.1 => /lib/libkstat.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1

Just curious why setting LD_PRELOAD for a single file complains
about BINDIR


That's almost definitely from your erlang entry in LD_PRELOAD.

As others have mentioned, setting LD_PRELOAD in your shell is
massively deprecated - you can and will get weird results.

When you're building your utility/app/whatever, use

LDFLAGS=-R/path/to/libs:/path/to/other/libs -L/path/to/libs 
-L/path/to/other/libs

that way the binaries will have the right search path baked into them
at compile time, rather than you needing to hack around them with
LD_PRELOAD afterwards.



As an aside if anyone can recommend good source/tutorial on linking
/ compiling in c I would be very grateful.


I recommend bookmarking this collection:

http://docs.sun.com/app/docs/coll/45.27?l=en
OpenSolaris Software Developer Collection

and then having a read through the Linker and Libraries Guide
(http://docs.sun.com/app/docs/doc/819-0690?l=en).


That will make you think of a lot of questions, soask.


McB

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread Hillel Lubman

That's great.

Are there any plans to integrate KDE/Qt packages straight into OpenIndiana?

Thanks,

Hillel.

On 07/11/10 10:38, ken mays wrote:

The KDE4Solaris team has released KDE 4.5.3 binaries for OpenSolaris-based 
distros:

Reference:
http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html

Sources:
ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/

Blog:
http://blog.hajma.cz/2010/09/kde4-on-openindiana.html

~ Ken Mays


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread Gabriel de la Cruz
:D

On Sun, Nov 7, 2010 at 6:44 PM, Sriram Narayanan  wrote:

> On Sun, Nov 7, 2010 at 10:13 PM, L'oiseau de mer 
> wrote:
> > Have there the System V Packages Version?(.pkg)
> > My OpenSolaris 2009.06 can't use it.
>
> These are IPS packages :)
>
> -- Sriram
>
> >
> > 2010/11/7 ken mays 
> >
> >> The KDE4Solaris team has released KDE 4.5.3 binaries for
> OpenSolaris-based
> >> distros:
> >>
> >> Reference:
> >>
> http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html
> >>
> >> Sources:
> >> ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/
> >>
> >> Blog:
> >> http://blog.hajma.cz/2010/09/kde4-on-openindiana.html
> >>
> >> ~ Ken Mays
> >>
> >>
> >>
> >>
> >> ___
> >> OpenIndiana-discuss mailing list
> >> OpenIndiana-discuss@openindiana.org
> >> http://openindiana.org/mailman/listinfo/openindiana-discuss
> >>
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> >
>
>
>
> --
> Belenix: www.belenix.org
>
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] stablity

2010-11-07 Thread Michael Stapleton
The only unstable thing seems to be  my typing..

Rewrite follows:

I have been using OI for development and as a production server and have
had NO problems stability wise. On my laptop I found that the SMB
service is preventing sleeping. If I disable SMB service, power saving
works well. But, something is reenabling the service, which in my
opinion 
should not be happening. I have not had a chance to dig into it further.

OI is not unstable, we should stop saying so. It is just not proven to
be stable, or unstable for that matter.

Mike



On Sun, 2010-11-07 at 12:08 -0500, Michael Stapleton wrote:

> I have been using OI for development and as a production server and have
> had NO problems stability wise. On my laptop I found that the SMB
> service is preventing sleeping. If I disable SMB service, power saving
> works well. But, something is reenabling the service,
> OI is not unstable, we should stop saying so. It is just not proven to
> be stable, or unstable for that matter.
> 
> Mike
> 
> 
>  to be so. which in my opinion should not be happening. I have not had a
> chance to dig into it further.
> On Sat, 2010-11-06 at 10:51 -0400, Vasten Tech wrote:
> 
> > Power saving does not work. The machine will not go to sleep.
> > 
> > On Sat, 2010-11-06 at 12:08 +0100, Dick Hoogendijk wrote:
> > > On 6-11-2010 10:43, Paul Johnston wrote:
> > > >  On 11/ 6/10 09:33 AM, Dick Hoogendijk wrote:
> > > >> I used to run OpenSolaris-b134 for my home server and it worked very 
> > > >> well. What is the status for OpenIndiana in this respect? Could it be 
> > > >> used to run a home server or is it still to unstable for this? In 
> > > >> other words: is it worse, better or the same as OpenSolaris-b134 was?
> > > > In my limited experience, I swopped over as soon as Indiana came out 
> > > > and have seen no difference in reliablilty/stability.
> > > 
> > > Thanks. Other experiences?
> > > 
> > > ___
> > > OpenIndiana-discuss mailing list
> > > OpenIndiana-discuss@openindiana.org
> > > http://openindiana.org/mailman/listinfo/openindiana-discuss
> > 
> > 
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] stablity

2010-11-07 Thread Michael Stapleton
I have been using OI for development and as a production server and have
had NO problems stability wise. On my laptop I found that the SMB
service is preventing sleeping. If I disable SMB service, power saving
works well. But, something is reenabling the service,
OI is not unstable, we should stop saying so. It is just not proven to
be stable, or unstable for that matter.

Mike


 to be so. which in my opinion should not be happening. I have not had a
chance to dig into it further.
On Sat, 2010-11-06 at 10:51 -0400, Vasten Tech wrote:

> Power saving does not work. The machine will not go to sleep.
> 
> On Sat, 2010-11-06 at 12:08 +0100, Dick Hoogendijk wrote:
> > On 6-11-2010 10:43, Paul Johnston wrote:
> > >  On 11/ 6/10 09:33 AM, Dick Hoogendijk wrote:
> > >> I used to run OpenSolaris-b134 for my home server and it worked very 
> > >> well. What is the status for OpenIndiana in this respect? Could it be 
> > >> used to run a home server or is it still to unstable for this? In 
> > >> other words: is it worse, better or the same as OpenSolaris-b134 was?
> > > In my limited experience, I swopped over as soon as Indiana came out 
> > > and have seen no difference in reliablilty/stability.
> > 
> > Thanks. Other experiences?
> > 
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> 
> 
> 
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread Sriram Narayanan
On Sun, Nov 7, 2010 at 10:13 PM, L'oiseau de mer  wrote:
> Have there the System V Packages Version?(.pkg)
> My OpenSolaris 2009.06 can't use it.

These are IPS packages :)

-- Sriram

>
> 2010/11/7 ken mays 
>
>> The KDE4Solaris team has released KDE 4.5.3 binaries for OpenSolaris-based
>> distros:
>>
>> Reference:
>> http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html
>>
>> Sources:
>> ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/
>>
>> Blog:
>> http://blog.hajma.cz/2010/09/kde4-on-openindiana.html
>>
>> ~ Ken Mays
>>
>>
>>
>>
>> ___
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss@openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
Belenix: www.belenix.org

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread L'oiseau de mer
Have there the System V Packages Version?(.pkg)
My OpenSolaris 2009.06 can't use it.

2010/11/7 ken mays 

> The KDE4Solaris team has released KDE 4.5.3 binaries for OpenSolaris-based
> distros:
>
> Reference:
> http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html
>
> Sources:
> ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/
>
> Blog:
> http://blog.hajma.cz/2010/09/kde4-on-openindiana.html
>
> ~ Ken Mays
>
>
>
>
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread Lou Picciano
Beautiful! Thanks, Ken. 


Lou Picciano 


- Original Message - 
From: "ken mays"  
To: "Discussion list for OpenIndiana"  
Sent: Sunday, November 7, 2010 10:38:47 AM 
Subject: [OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros 

The KDE4Solaris team has released KDE 4.5.3 binaries for OpenSolaris-based 
distros: 

Reference: 
http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html 

Sources: 
ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/ 

Blog: 
http://blog.hajma.cz/2010/09/kde4-on-openindiana.html 

~ Ken Mays 




___ 
OpenIndiana-discuss mailing list 
OpenIndiana-discuss@openindiana.org 
http://openindiana.org/mailman/listinfo/openindiana-discuss 
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] KDE 4.5.3 for OpenSolaris-based distros

2010-11-07 Thread ken mays
The KDE4Solaris team has released KDE 4.5.3 binaries for OpenSolaris-based 
distros:

Reference:
http://mail.opensolaris.org/pipermail/kde-discuss/2010-November/003106.html

Sources:
ftp://ftp.kde.org/pub/kde/stable/4.5.3/src/

Blog:
http://blog.hajma.cz/2010/09/kde4-on-openindiana.html

~ Ken Mays


  

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Setting LD_PRELOAD

2010-11-07 Thread Paul Johnston

 On 11/ 6/10 11:34 PM, McBofh wrote:

On  7/11/10 08:57 AM, Paul Johnston wrote:

Under my thread about couchdb I was advised to set LD_PRELOAD.
I thought this had not worked but is seems bigger than that :-)


Then it appears that the LD_PRELOAD environment setting is not
being passed onto the child. You need to try recompiling the
executable beam.smp with '-LCrun'.

Regards,
Moinak.


Err!
pa...@openindiana:~$ echo $LD_PRELOAD
/usr/lib/libCrun.so.1
pa...@openindiana:~$ ps
ld.so.1: ps: fatal: /usr/lib/libCrun.so.1: wrong ELF class: ELFCLASS32
Killed
pa...@openindiana:~$ prstat
ld.so.1: prstat: fatal: /usr/lib/libCrun.so.1: wrong ELF class: 
ELFCLASS32

Killed

Well it sure is doing something if not fixing my couchdb problem :-)



if you tried

LD_PRELOAD=libCrun.so /path/to/utility

then the linker should have found the correct library
for the app that you invoked on the same command line.

By just setting an env var, subsequent program invocations
were forced to use the 32bit version, even if they are
64bit programs.

McB




Dear all.
Please regard this as a learning exercise for me so if I don't do the 
exactly right thing I learn a little bit each iteration :-)

Anyway

pa...@openindiana:~$ grep PRELOAD .bashrc
LD_PRELOAD=/usr/lib/libCrun.so.1 
/usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp

export LD_PRELOAD

pa...@openindiana:~$ source .bashrc
Environment variable BINDIR is not set

pa...@openindiana:~$ file /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
/usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp:ELF 32-bit LSB 
executable 80386 Version 1 [FPU], dynamically linked, not stripped

pa...@openindiana:~$ ldd /usr/local/lib/erlang/erts-5.8.1.1/bin/beam.smp
libdl.so.1 => /lib/libdl.so.1
libm.so.2 => /lib/libm.so.2
libsocket.so.1 => /lib/libsocket.so.1
libnsl.so.1 => /lib/libnsl.so.1
libcurses.so.1 => /lib/libcurses.so.1
libkstat.so.1 => /lib/libkstat.so.1
libpthread.so.1 => /lib/libpthread.so.1
libc.so.1 => /lib/libc.so.1
libmp.so.2 => /lib/libmp.so.2
libmd.so.1 => /lib/libmd.so.1

Just curious why setting LD_PRELOAD for a single file complains about BINDIR

As an aside if anyone can recommend good source/tutorial on linking / 
compiling in c I would be very grateful.


Cheers Paul

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] OpenJVM

2010-11-07 Thread Apostolos Syropoulos
And someone was saying that they cannot close OpenJDK:

http://www.theregister.co.uk/2010/11/06/oracle_dueling_jvms/

Oracle stinks

A.S.

 
--
Apostolos Syropoulos
Xanthi, Greece


  

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss