Re: Long double alignment test

2004-06-03 Thread David A. Riggs

Brett Cundal wrote:

> I'm maintaining GNU Smalltalk, which is having problems building on
> most 64-bit platforms. I'm having difficulty tracking these problems
> down, so I'm asking for some assistance from anyone who has access to
> these platforms (any DD, I believe).
> 

Anyone know if this works? Could someone please run this on each of
the archs we support (particularly ia64) and report the results to me?



Here's another 64-bit arch to compare to, I was curious about the
answer myself.

[EMAIL PROTECTED]:~/tmp$ uname -a
Linux moltar 2.4.26-sparc64 #1 Sat Apr 24 01:43:10 EDT 2004 sparc64 
GNU/Linux


[EMAIL PROTECTED]:~/tmp$ ./longalign   # your code
sizeof(foo)=16
sizeof(align)=8
sizeof(f2)=32
union may be aligned on 8 byte boundaries.

[EMAIL PROTECTED]:~/tmp$ ./longalign2  # Neil's code
char: 1
short: 2
int: 4
long: 4
long long: 8
void*: 4
float: 4
double: 8
long double: 8

- David A. Riggs 



Executing with root priviliges

2004-06-04 Thread David A. Riggs

I'm in the process of writing (and with help, packaging) a piece
of software which needs to be executed as root. It happens to be
a graphical app for configuring a laptop, and is the sort of thing
that regular non-root users on a "single user" system would want
to run.

Looking through installed programs in my Gnome menu, I see several
apps like this which are wrapped with a call to Gksu. After talking
with several different people, I see a few different preferred ways
to gain root priviliges for apps like this...

- gksu, users who want to really run it as root
- su, users who refuse to install any excess X11 apps(?!)
- sudo, users who've given themselves not-quite root access to
  certain apps or passwordless access (that's my camp)

Anyway, I don't want my app to have a dependancy on gksu, as it
technically doesn't have anything to do with my application, and
from just talking to a few people appears to not be a universally
accepted solution (I'm sure there are other alternatives that
people prefer).

So, my question is...is there, or should there be, some virtual
package or system-wide or user-wide preference for gaining root
priviliges under X11? What's the best current way to get this
into the menu system with the least amount of pain for both
the packager and the user?

--
- David A. Riggs 



Re: Executing with root priviliges

2004-06-05 Thread David A. Riggs

Eike "zyro" Sauer wrote:

Goswin von Brederlow schrieb:


There is also "ssh [EMAIL PROTECTED] -X foobar".



...and kdesu...



Right, thanks, but that's really not my point though...Does
anyone have any feed back on my real question (quoted below),
or should I ask on debian.devel?

The real question:

> So, my question is...is there, or should there be, some virtual
> package or system-wide or user-wide preference for gaining root
> priviliges under X11? What's the best current way to get this
> into the menu system with the least amount of pain for both
> the packager and the user?



--
- David A. Riggs 



Re: Executing with root priviliges

2004-06-05 Thread David A. Riggs

Goswin von Brederlow wrote:

Eduard Bloch <[EMAIL PROTECTED]> writes:


Moin Goswin!
Goswin von Brederlow schrieb am Samstag, den 05. Juni 2004:


> So, my question is...is there, or should there be, some virtual
> package or system-wide or user-wide preference for gaining root
> priviliges under X11? What's the best current way to get this
> into the menu system with the least amount of pain for both
> the packager and the user?


Get all the root gaining mechanisms maintainers to sit together and
work out a common mechanism to register menu items that need root.

Some x-gain-root package that all mechanism and all root needing


There is already the script su-to-root in the current menu package which
does almost what you want - looking around and choosing a su-like
program.



Do you know if all the mentioned su-like programs mentioned are
supported?


Wow, I didn't even realize that 'menu' provided this script. A quick
glance reveals that 'su-to-root' tries the following in this order:

1. gksu
2. kdesu
3. an xterm prompting with su

I propose that 'su-to-root' look at a configuration file for a preferred
method, first in /etc and then in ~/ so users may specify their
preference. If people think this is a good idea, I'll place a wishlist
bug for 'menu' and a patch.

- David A. Riggs 



Re: Long double alignment test

2004-06-03 Thread David A. Riggs
Brett Cundal wrote:
> I'm maintaining GNU Smalltalk, which is having problems building on
> most 64-bit platforms. I'm having difficulty tracking these problems
> down, so I'm asking for some assistance from anyone who has access to
> these platforms (any DD, I believe).
> 
Anyone know if this works? Could someone please run this on each of
the archs we support (particularly ia64) and report the results to me?

Here's another 64-bit arch to compare to, I was curious about the
answer myself.
[EMAIL PROTECTED]:~/tmp$ uname -a
Linux moltar 2.4.26-sparc64 #1 Sat Apr 24 01:43:10 EDT 2004 sparc64 
GNU/Linux

[EMAIL PROTECTED]:~/tmp$ ./longalign   # your code
sizeof(foo)=16
sizeof(align)=8
sizeof(f2)=32
union may be aligned on 8 byte boundaries.
[EMAIL PROTECTED]:~/tmp$ ./longalign2  # Neil's code
char: 1
short: 2
int: 4
long: 4
long long: 8
void*: 4
float: 4
double: 8
long double: 8
- David A. Riggs 
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Executing with root priviliges

2004-06-04 Thread David A. Riggs
I'm in the process of writing (and with help, packaging) a piece
of software which needs to be executed as root. It happens to be
a graphical app for configuring a laptop, and is the sort of thing
that regular non-root users on a "single user" system would want
to run.
Looking through installed programs in my Gnome menu, I see several
apps like this which are wrapped with a call to Gksu. After talking
with several different people, I see a few different preferred ways
to gain root priviliges for apps like this...
- gksu, users who want to really run it as root
- su, users who refuse to install any excess X11 apps(?!)
- sudo, users who've given themselves not-quite root access to
  certain apps or passwordless access (that's my camp)
Anyway, I don't want my app to have a dependancy on gksu, as it
technically doesn't have anything to do with my application, and
from just talking to a few people appears to not be a universally
accepted solution (I'm sure there are other alternatives that
people prefer).
So, my question is...is there, or should there be, some virtual
package or system-wide or user-wide preference for gaining root
priviliges under X11? What's the best current way to get this
into the menu system with the least amount of pain for both
the packager and the user?
--
- David A. Riggs 
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Executing with root priviliges

2004-06-05 Thread David A. Riggs
Eike "zyro" Sauer wrote:
Goswin von Brederlow schrieb:
There is also "ssh [EMAIL PROTECTED] -X foobar".

...and kdesu...

Right, thanks, but that's really not my point though...Does
anyone have any feed back on my real question (quoted below),
or should I ask on debian.devel?
The real question:
> So, my question is...is there, or should there be, some virtual
> package or system-wide or user-wide preference for gaining root
> priviliges under X11? What's the best current way to get this
> into the menu system with the least amount of pain for both
> the packager and the user?

--
- David A. Riggs 
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Re: Executing with root priviliges

2004-06-05 Thread David A. Riggs
Goswin von Brederlow wrote:
Eduard Bloch <[EMAIL PROTECTED]> writes:
Moin Goswin!
Goswin von Brederlow schrieb am Samstag, den 05. Juni 2004:
> So, my question is...is there, or should there be, some virtual
> package or system-wide or user-wide preference for gaining root
> priviliges under X11? What's the best current way to get this
> into the menu system with the least amount of pain for both
> the packager and the user?
Get all the root gaining mechanisms maintainers to sit together and
work out a common mechanism to register menu items that need root.
Some x-gain-root package that all mechanism and all root needing
There is already the script su-to-root in the current menu package which
does almost what you want - looking around and choosing a su-like
program.
Do you know if all the mentioned su-like programs mentioned are
supported?
Wow, I didn't even realize that 'menu' provided this script. A quick
glance reveals that 'su-to-root' tries the following in this order:
1. gksu
2. kdesu
3. an xterm prompting with su
I propose that 'su-to-root' look at a configuration file for a preferred
method, first in /etc and then in ~/ so users may specify their
preference. If people think this is a good idea, I'll place a wishlist
bug for 'menu' and a patch.
- David A. Riggs 
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]