[gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread alain . didierjean

As the subject says, here's what I get:

/bin/sh: line 3: 10089 Abandon
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
-D ../../dist/public/dbm
make[1]: *** [../../dist/public/dbm] Erreur 134
make[1]: quittant le répertoire «
/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
»
make: *** [export] Erreur 2
 * ERROR: dev-libs/nss-3.12.8 failed:
 *   dbm make failed
 *
 * Call stack:
 * ebuild.sh, line  54:  Called src_compile
 *   environment, line 2703:  Called die
 * The specific snippet of code:
 *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
 *
 * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.8',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.8'.
 * The complete build log is located at
'/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'

 Failed to emerge dev-libs/nss-3.12.8, Log file:

  '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'

 * Messages for package dev-libs/nss-3.12.8:

 * ERROR: dev-libs/nss-3.12.8 failed:
 *   dbm make failed
 *
 * Call stack:
 * ebuild.sh, line  54:  Called src_compile
 *   environment, line 2703:  Called die
 * The specific snippet of code:
 *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
 *
 * If you need support, post the output of 'emerge --info =dev-libs/nss-3.12.8',
 * the complete build log and the output of 'emerge -pqv =dev-libs/nss-3.12.8'.
 * The complete build log is located at
'/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
isba alain # emerge -pqv =dev-libs/nss-3.12.8
[ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
isba alain # emerge --info =dev-libs/nss-3.12.8
Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
2.6.34-gentoo-r12 x86_64)


Any cue ?



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Alan McKinnon
Apparently, though unproven, at 10:21 on Tuesday 09 November 2010, 
alain.didierj...@free.fr did opine thusly:

 As the subject says, here's what I get:

What's the output just before the section you posted?



 
 /bin/sh: line 3: 10089 Abandon
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
 64_OPT.OBJ/nsinstall -D ../../dist/public/dbm
 make[1]: *** [../../dist/public/dbm] Erreur 134
 make[1]: quittant le répertoire «
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/i
 nclude »
 make: *** [export] Erreur 2
  * ERROR: dev-libs/nss-3.12.8 failed:
  *   dbm make failed
  *
  * Call stack:
  * ebuild.sh, line  54:  Called src_compile
  *   environment, line 2703:  Called die
  * The specific snippet of code:
  *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
  *
  * If you need support, post the output of 'emerge --info
 =dev-libs/nss-3.12.8', * the complete build log and the output of 'emerge
 -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
  * The ebuild environment file is located at
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
  * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
 
  Failed to emerge dev-libs/nss-3.12.8, Log file:
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'
 
  * Messages for package dev-libs/nss-3.12.8:
 
  * ERROR: dev-libs/nss-3.12.8 failed:
  *   dbm make failed
  *
  * Call stack:
  * ebuild.sh, line  54:  Called src_compile
  *   environment, line 2703:  Called die
  * The specific snippet of code:
  *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
  *
  * If you need support, post the output of 'emerge --info
 =dev-libs/nss-3.12.8', * the complete build log and the output of 'emerge
 -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
  * The ebuild environment file is located at
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
  * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
 isba alain # emerge -pqv =dev-libs/nss-3.12.8
 [ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
 isba alain # emerge --info =dev-libs/nss-3.12.8
 Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
 2.6.34-gentoo-r12 x86_64)
 
 
 Any cue ?

-- 
alan dot mckinnon at gmail dot com



[solved] Re: [gentoo-user] Setup for two graphical logins on one machine

2010-11-09 Thread Markus Oehme
Hi everybody,

I managed to get it running as I wished. The only thing, that I couldn't
solve in a nice way was using fluxbox instead of Xfce upon login in xdm, but
a little hack did the trick.

I left my setup as described and added an init-script /etc/init.d/xdm2 which
is mostly copy and paste from /etc/init.d/xdm trimmed down to what I
actually need. It simply starts xdm, which does the Right Things(tm) after
configuration. I edited /etc/X11/xdm/Xservers to account for the allready
running X. Then I hacked /etc/X11/xdm/xdm-config to point to fluxbox in a
hard-coded way.

That's it. Works fine :)


   Markus


--
Aoccdrnig to a threoy, it deosn't mttaer in waht oredr the ltteers in a wrod
are, the olny iprmoatnt tihng is taht the frist and lsat ltteer are in the
rghit pclae. The rset can be a taotl mses and you can sitll raed it in msot
csaes. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef,
but the wrod as a wlohe. And I awlyas thought slpeling was ipmorantt.



xdm2
Description: Binary data


Xservers
Description: Binary data


xdm-config
Description: Binary data


Re: [gentoo-user] Anyone using consolekit?

2010-11-09 Thread 李健
I don't know how to solve this, but I hope the following messages may help
you.

 Messages generated by process 14982 on 2010-10-18 23:54:00 CST for
package
sys-auth/polkit-0.96-r1:

WARN: postinst
If you don't use GDM or KDM for logging in,
you must start your desktop environment (DE) as follows:
ck-launch-session $STARTGUI
Where $STARTGUI is a DE-starting command such as 'gnome-session'.
You should add this to your ~/.xinitrc if you use startx.

End.

2010/11/6 walt w41...@gmail.com

 When I turned on the consolekit useflag, all the nice auto-mounting stuff
 in
 gnome stopped working.

 The cause seems to be that when I'm using X, I'm listed by ck-list-sessions
 as both non-active and non-local, so I can't mount e.g. a usb stick unless
 I switch to a virtual console where I'm recognized as both local and
 active.

 I don't know if this is a bug or a feature, or maybe I need to reconfigure
 something.

 Any opinions on how consolekit should handle this fairly common scenario?

 I can fix my problem by turning off the consolekit useflag, of course, but
 I'd rather learn something :)







-- 
Jian Li


Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Alan McKinnon
Apparently, though unproven, at 16:04 on Tuesday 09 November 2010, Benyamin 
Dvoskin did opine thusly:

 Hi Everyone ,
 I am actually quite new to Gentoo , so give me a break if my question is a
 newbie one.
 anyway , while installing Gentoo , I got to the point where I want to
 compile the kernel , and for that I've done the following :
 
 emerge --sync
 
 it did the sync , but stated at the end that I must upgrade portage using
 emerge portage
 
 so I tried that , and it doesn't seem to work , but giving out the
 following output :
 *
 
 --- Invalid atom in /etc/portage/package.keywords:
 dev-perl/Locale-gettext-1.05-r1

This syntax needs an operator before it, something like , =, 
This is true for any line in any of those files with a version number.

In this case, you can delete the line entirely. That package and version is 
marked stable and is always available so there is no need to keyword it at 
all.

 Calculating dependencies /
 !!! All ebuilds that could satisfy dev-perl/Locale-gettext have been
 masked.
 !!! One of the following masked packages is required to complete your
 request:
 - dev-perl/Locale-gettext-1.05-r1 (masked by: EAPI 2)

You are getting this because of the above incorrect line in the keywords file


For more info, read the keywords and masking sections of the Gentoo Install 
Doc, and the portage man pages - all of them. Actually, just read them all 
several times.

emerge(1)
ebuild(5)
make.conf(5)
portage(5)

There's no easy way round this. To drive Gentoo effectively, you MUST read and 
study the man pages in depth.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Bill Longman
On 11/09/2010 06:04 AM, Benyamin Dvoskin wrote:
 Hi Everyone ,
 I am actually quite new to Gentoo , so give me a break if my question is
 a newbie one.
 anyway , while installing Gentoo , I got to the point where I want to
 compile the kernel , and for that I've done the following :
 
 emerge --sync
 
 it did the sync , but stated at the end that I must upgrade portage
 using emerge portage
 
 so I tried that , and it doesn't seem to work , but giving out the
 following output :
 /
 
 --- Invalid atom in /etc/portage/package.keywords:
 dev-perl/Locale-gettext-1.05-r1
 Calculating dependencies /
 !!! All ebuilds that could satisfy dev-perl/Locale-gettext have been
 masked.
 !!! One of the following masked packages is required to complete your
 request:
 - dev-perl/Locale-gettext-1.05-r1 (masked by: EAPI 2)
 
 The current version of portage supports EAPI '1'. You must upgrade to a
 newer version of portage before EAPI masked packages can be installed.
 
 For more information, see MASKED PACKAGES section in the emerge man page or
 refer to the Gentoo Handbook.
 (dependency required by sys-apps/help2man-1.37.1 [ebuild])
 
 
 /What should I do to solve this ?
 I've googled it , yet haven't found a solution ... ( found some stuff
 about it , but couldn't make it work )
 please help ...

Benny, welcome to the club.

Try env-update then source /etc/profile.

The env-update command straightens out all the /etc/env.d directories
for the new software that you installed.

You're at the hard part, here, so keep going.

After that, just post for us the output from emerge --info and a
little basic info about the machine you're running.




Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Alex Schuster
Benyamin Dvoskin writes:

 Hi Everyone ,
 I am actually quite new to Gentoo , so give me a break if my question
 is a newbie one.

Welcome :)

 anyway , while installing Gentoo , I got to the point where I want to
 compile the kernel , and for that I've done the following :
 
 emerge --sync
 
 it did the sync , but stated at the end that I must upgrade portage
 using emerge portage

This is a suggestion, but not really necessary. You can probably also just 
emerge your kernel if you like to continue with this, and deal with the 
portage update later.

 so I tried that , and it doesn't seem to work , but giving out the
 following output :
 *
 
 --- Invalid atom in /etc/portage/package.keywords:
 dev-perl/Locale-gettext-1.05-r1

The format in this file is either category/package, or something like 
=category/package-version. The '=' may also be something like '' or 
'='. So this line is being ignored, and the package is still masked.

I'd add a '=', or change it like this:
~dev-perl/Locale-gettext-1.05

This means that you want version 1.05, including all r-something 
versions which usually are small (probably security) updates you want to 
have.

 Calculating dependencies /
 !!! All ebuilds that could satisfy dev-perl/Locale-gettext have been
 masked.
 !!! One of the following masked packages is required to complete your
 request:
 - dev-perl/Locale-gettext-1.05-r1 (masked by: EAPI 2)
 
 The current version of portage supports EAPI '1'. You must upgrade to a
 newer version of portage before EAPI masked packages can be installed.

Oky, it seems this package needs a newer portage than you have, but you 
cannot install this portage because it needs the package... strange, btu 
these things hapen from time to time. Is your install CD an old one?

If you have gentoolkit installed, you can use the equery command to find 
out what a package depends on:

wo...@weird ~ $ equery depends Locale-gettext
 * These packages depend on Locale-gettext:
games-arcade/frozen-bubble-2.2.0 (dev-perl/Locale-gettext)
sys-apps/help2man-1.38.2 (nls ? dev-perl/Locale-gettext)

So, I have it too, because frozen-bubble needs it. And help2man, if the 
nls USE flag is set. Try this:

USE=-nls emerge portage

So you install portage and dependencies temporarily without nls support. 
Once you have the new portage, you can emerge it again, and this time 
Locale-gettext will be included as a dependency.

Good luck,

Wonko



[gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant Edwards
On 2010-11-09, Florian Philipp li...@f_philipp.fastmail.net wrote:
 Am 09.11.2010 05:52, schrieb Grant:
 This is OT, but you guys have proven extremely insightful over the
 years and I would love to hear what you think.
 
 I've been working on a particular software project for a long time.
 I'd like to hire a team of developers to take over the project, but I
 consider the code to be valuable and I'd like to keep the whole of it
 secure, even from my own developers.

You can't work on code you can't understand.  If you try, you just end
up breaking things.

 I was thinking I could do this by using some technique to obfuscate
 the true intention of the code modules.  Maybe a recorded series of
 search/replaces for variable names which are reversed once code
 editing is complete?  Has any software been made available to aid in
 an endeavor like this?

 About what programming language are we talking? For Java and
 Javascript, there is a range of obfuscators available. For C/C++, I
 don't think it is really necessary. Can't you simply put your stuff
 into a binary-only library?

Read the OP again.  He wants to obsfuscate the code to make it
unreadable for the people he's hiring to work on it.

It would be simpler and cheaper to hire developers who don't
understand programming language in question, computers, programming in
general, or even english.

Then don't let them access any computers that have the source code.

You'll get better results that way -- far fewer bugs will be
introduced.

1/2 :)

-- 
Grant Edwards   grant.b.edwardsYow! I think my career
  at   is ruined!
  gmail.com




[gentoo-user] Problem with upgrading portage

2010-11-09 Thread Benyamin Dvoskin
Hi Everyone ,
I am actually quite new to Gentoo , so give me a break if my question is a
newbie one.
anyway , while installing Gentoo , I got to the point where I want to
compile the kernel , and for that I've done the following :

emerge --sync

it did the sync , but stated at the end that I must upgrade portage using
emerge portage

so I tried that , and it doesn't seem to work , but giving out the following
output :
*

--- Invalid atom in /etc/portage/package.keywords:
dev-perl/Locale-gettext-1.05-r1
Calculating dependencies /
!!! All ebuilds that could satisfy dev-perl/Locale-gettext have been
masked.
!!! One of the following masked packages is required to complete your
request:
- dev-perl/Locale-gettext-1.05-r1 (masked by: EAPI 2)

The current version of portage supports EAPI '1'. You must upgrade to a
newer version of portage before EAPI masked packages can be installed.

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
(dependency required by sys-apps/help2man-1.37.1 [ebuild])


*What should I do to solve this ?
I've googled it , yet haven't found a solution ... ( found some stuff about
it , but couldn't make it work )
please help ...

Thanks a lot
Benny


Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Benyamin Dvoskin
Hi ,

Thanks for the suggestions.
In the proccess of trying to understand my possible mistake
I'm wondering ,
which stage3 file should I use ? the i686 or the i486 ?

I'm trying to install it on an Asus EEEPC 1005ha netbook

which stage should I use ? ( and I suppose i'll have to use the same with
the CFLAGS .. ? )

Thanks,
Benny


On Tue, Nov 9, 2010 at 4:11 PM, Bill Longman bill.long...@gmail.com wrote:

 On 11/09/2010 06:04 AM, Benyamin Dvoskin wrote:
  Hi Everyone ,
  I am actually quite new to Gentoo , so give me a break if my question is
  a newbie one.
  anyway , while installing Gentoo , I got to the point where I want to
  compile the kernel , and for that I've done the following :
 
  emerge --sync
 
  it did the sync , but stated at the end that I must upgrade portage
  using emerge portage
 
  so I tried that , and it doesn't seem to work , but giving out the
  following output :
  /
  
  --- Invalid atom in /etc/portage/package.keywords:
  dev-perl/Locale-gettext-1.05-r1
  Calculating dependencies /
  !!! All ebuilds that could satisfy dev-perl/Locale-gettext have been
  masked.
  !!! One of the following masked packages is required to complete your
  request:
  - dev-perl/Locale-gettext-1.05-r1 (masked by: EAPI 2)
 
  The current version of portage supports EAPI '1'. You must upgrade to a
  newer version of portage before EAPI masked packages can be installed.
 
  For more information, see MASKED PACKAGES section in the emerge man page
 or
  refer to the Gentoo Handbook.
  (dependency required by sys-apps/help2man-1.37.1 [ebuild])
  
 
  /What should I do to solve this ?
  I've googled it , yet haven't found a solution ... ( found some stuff
  about it , but couldn't make it work )
  please help ...

 Benny, welcome to the club.

 Try env-update then source /etc/profile.

 The env-update command straightens out all the /etc/env.d directories
 for the new software that you installed.

 You're at the hard part, here, so keep going.

 After that, just post for us the output from emerge --info and a
 little basic info about the machine you're running.





[gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-09 Thread Mick
Hi All,

I've had at least 3 fs corruptions on a Reiser4 fs, in as many months.

I understand that the fs type is experimental, but am wondering if it
is the fs at fault here or Dell's hard drive:

=== START OF INFORMATION SECTION ===
Model Family: Seagate Momentus 7200.4 series
Device Model: ST9500420ASG
Serial Number:5VJ377P2
Firmware Version: 0004SDM1
User Capacity:500,107,862,016 bytes
Device is:In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:Tue Nov  9 15:42:19 2010 GMT

I've run a short and long test with smartmontools and it passed both.

I need to mention here that the machine is a laptop which I use
regularly on train journeys (bumpy ride).  The drive has a Seagate
G-Force Protection™ which is meant to park the head in case of a fall.
 Could this be causing the problems I'm experiencing?

Shall I abandon this fs and opt for another?
-- 
Regards,
Mick



[gentoo-user] Openconnect, Failed to open tun device

2010-11-09 Thread Andrew Lowe

Hi all,
	Anyone out there that has installed Openconnect and has it connecting 
to a VPN? I need to get into my Uni's vpn, and being on linux, the Cisco 
thingy is useless. I'm attempting to use openconnect, which I've got 
from an overlay. I've installed it and when I try to start it up, as 
root, with the command:


openconnect --script /etc/vpnc/vpnc-script https://sslvpn.curtin.edu.au

I get:

Attempting to connect to 134.7.249.196:443
SSL negotiation with sslvpn.curtin.edu.au
Connected to HTTPS on sslvpn.curtin.edu.au
GET https://sslvpn.curtin.edu.au/
Got HTTP response: HTTP/1.0 302 Temporary moved
SSL negotiation with sslvpn.curtin.edu.au
Connected to HTTPS on sslvpn.curtin.edu.au
GET https://sslvpn.curtin.edu.au/+webvpn+/index.html?tgroup=VPN-SSL-GROUP
Got HTTP response: HTTP/1.1 303 See Other
GET 
https://sslvpn.curtin.edu.au/+webvpn+/index.html?tgroup=VPN-SSL-GROUPtgcookieset=1

Got HTTP response: HTTP/1.1 303 See Other
GET https://sslvpn.curtin.edu.au/+webvpn+/index.html
Please enter your username and password.
Username:MY_USERNAME_GOES_HERE
Password:MY_PASSWORD_GOES_HERE
POST https://sslvpn.curtin.edu.au/+webvpn+/index.html
Got CONNECT response: HTTP/1.1 200 OK
CSTP connected. DPD 10, Keepalive 180
Failed to open tun device: No such file or directory

	From my reading of the openconnect website, which is quite bare, I 
don't need a tun driver if I'm running as root - correct?


In my kernel I have:

bluey etc # grep -n TUN /usr/src/linux/.config
532:CONFIG_INET_XFRM_TUNNEL=y
533:CONFIG_INET_TUNNEL=y
535:CONFIG_INET_XFRM_MODE_TUNNEL=y
816:# CONFIG_TUN is not set
bluey etc #

Any other thoughts on what I should have?

Andrew



Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Alex Schuster
Benyamin Dvoskin writes:

 In the proccess of trying to understand my possible mistake
 I'm wondering ,
 which stage3 file should I use ? the i686 or the i486 ?

 I'm trying to install it on an Asus EEEPC 1005ha netbook

i686 if you want a 32 bit OS, x86_64 for 64 bit.

 which stage should I use ? ( and I suppose i'll have to use the same
 with the CFLAGS .. ? )

Have a look here:
http://en.gentoo-wiki.com/wiki/Safe_Cflags
http://en.gentoo-
wiki.com/wiki/Safe_Cflags/Intel#Atom_230.2C_Atom_330.2C_Atom_N-Series

Or use -march=native, if you compile locally.

Wonko



Re: [gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-09 Thread Alex Schuster
Mick writes:

 I've had at least 3 fs corruptions on a Reiser4 fs, in as many months.
 
 I understand that the fs type is experimental, but am wondering if it
 is the fs at fault here or Dell's hard drive:
[...]
 I've run a short and long test with smartmontools and it passed both.

You could also try badblocks [-n].

 I need to mention here that the machine is a laptop which I use
 regularly on train journeys (bumpy ride).  The drive has a Seagate
 G-Force Protection™ which is meant to park the head in case of a fall.

Which probably would not help in the train, unless you drop it there.

Wonko



Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Benyamin Dvoskin
whats the i468 for ?


On Tue, Nov 9, 2010 at 6:00 PM, Alex Schuster wo...@wonkology.org wrote:

 Benyamin Dvoskin writes:

  In the proccess of trying to understand my possible mistake
  I'm wondering ,
  which stage3 file should I use ? the i686 or the i486 ?
 
  I'm trying to install it on an Asus EEEPC 1005ha netbook

 i686 if you want a 32 bit OS, x86_64 for 64 bit.

  which stage should I use ? ( and I suppose i'll have to use the same
  with the CFLAGS .. ? )

 Have a look here:
 http://en.gentoo-wiki.com/wiki/Safe_Cflags
 http://en.gentoo-
 wiki.com/wiki/Safe_Cflags/Intel#Atom_230.2C_Atom_330.2C_Atom_N-Series

 Or use -march=native, if you compile locally.

Wonko




Re: [gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-09 Thread Maciej Grela
2010/11/9 Mick michaelkintz...@gmail.com:
 Hi All,

 I've had at least 3 fs corruptions on a Reiser4 fs, in as many months.

 I understand that the fs type is experimental, but am wondering if it
 is the fs at fault here or Dell's hard drive:


Check your RAM using memtest86.

-- 
Maciej Grela



Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Neil Bothwick
On Tue, 9 Nov 2010 17:00:01 +0100, Alex Schuster wrote:

  I'm trying to install it on an Asus EEEPC 1005ha netbook  
 
 i686 if you want a 32 bit OS, x86_64 for 64 bit.

The 1005HA has a 32 bit CPU.

CHOST=i686-pc-linux-gnu
CFLAGS=-O2 -march=prescott -pipe -fomit-frame-pointer
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j3

works for me, or you could use -march=native.


-- 
Neil Bothwick

PC DOS Error #03: Windows not found: (C)heer (P)arty (D)ance


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant
 Read the OP again.  He wants to obsfuscate the code to make it
 unreadable for the people he's hiring to work on it.

 It would be simpler and cheaper to hire developers who don't
 understand programming language in question, computers, programming in
 general, or even english.

 Then don't let them access any computers that have the source code.

 You'll get better results that way -- far fewer bugs will be
 introduced.

The idea isn't to make the code unreadable.  Obviously anyone working
on it needs to be able to read and understand it.

This idea was brought on while reading a Wikipedia page about modular
programming:

Theoretically, a modularized software project will be more easily
assembled by large teams, since no team members are creating the whole
system, or even need to know about the system as a whole. They can
focus just on the assigned smaller task.

http://en.wikipedia.org/wiki/Modular_programming

I don't mind system administration but I don't want to be a programmer
any more.  I'd like to hire programmers to work in the manner
described above.  They would each work on modules and not know about
the system as a whole.  How can something like this be implemented?

- Grant



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Hilco Wijbenga
On 9 November 2010 09:14, Grant emailgr...@gmail.com wrote:
 Theoretically, a modularized software project will be more easily
 assembled by large teams, since no team members are creating the whole
 system, or even need to know about the system as a whole. They can
 focus just on the assigned smaller task.

 http://en.wikipedia.org/wiki/Modular_programming

 I don't mind system administration but I don't want to be a programmer
 any more.  I'd like to hire programmers to work in the manner
 described above.  They would each work on modules and not know about
 the system as a whole.  How can something like this be implemented?

Okay, so this has nothing to do with obfuscation, not trusting people,
or protecting IP. This is normal software development.

One would want to break a large application into manageable pieces.
Usually, those pieces would be libraries (where the meaning of
library depends on your programming language of choice: SOs, DLLs,
JARs, etcetera). If your application is monolithic right now then you
(and/or your developers) will have to spend some time modularizing it.

So is your question really how do I modularize my code?



[gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Hi,

it is possible to run a 32-bit binary executable on a 64-bit system
(AMD64).


But: Is it possible to compile source code on a 64-bit system and get
an 32-bit executable a the result ??? And if 'yes'...how???

Thank you very much for any help in advance!

Best regards,
mcc




Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Jarry

On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote:


But: Is it possible to compile source code on a 64-bit system and get
an 32-bit executable a the result ??? And if 'yes'...how???


I think that is what cross-compilation is good for...

Jarry

--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Maciej Grela
2010/11/9  meino.cra...@gmx.de:
 Hi,

 it is possible to run a 32-bit binary executable on a 64-bit system
 (AMD64).


 But: Is it possible to compile source code on a 64-bit system and get
 an 32-bit executable a the result ??? And if 'yes'...how???


gr...@kraken ~ $ cat test.c
void main() {}
gr...@kraken ~ $ gcc -o a.out.64 test.c
gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c
gr...@kraken ~ $ file a.out.*
a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1
(GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
2.6.9, not stripped
a.out.64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
stripped
gr...@kraken ~ $

Br,
Maciej Grela



Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Jarry mr.ja...@gmail.com [10-11-09 18:36]:
 On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote:
 
 But: Is it possible to compile source code on a 64-bit system and get
 an 32-bit executable a the result ??? And if 'yes'...how???
 
 I think that is what cross-compilation is good for...
 
 Jarry
 
 -- 
 ___
 This mailbox accepts e-mails only from selected mailing-lists!
 Everything else is considered to be spam and therefore deleted.
 

Is there a toolchain already setup for cross-compiling 32-bit
executables on a AMD64 system, or do I have to do all that cross-
compiling magic by myself ?

Best regards,
mcc




Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Maciej Grela maciej.gr...@gmail.com [10-11-09 18:40]:
 2010/11/9  meino.cra...@gmx.de:
  Hi,
 
  it is possible to run a 32-bit binary executable on a 64-bit system
  (AMD64).
 
 
  But: Is it possible to compile source code on a 64-bit system and get
  an 32-bit executable a the result ??? And if 'yes'...how???
 
 
 gr...@kraken ~ $ cat test.c
 void main() {}
 gr...@kraken ~ $ gcc -o a.out.64 test.c
 gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c
 gr...@kraken ~ $ file a.out.*
 a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1
 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
 2.6.9, not stripped
 a.out.64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
 dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
 stripped
 gr...@kraken ~ $
 
 Br,
 Maciej Grela
 

Oh YEAH! That's a definition of straight forward I do like very much!
Thanks a lot, Maciej! You saved me a lot of half defunct bits ! ;)

Best regards,
mcc




Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread meino . cramer
Maciej Grela maciej.gr...@gmail.com [10-11-09 18:40]:
 2010/11/9  meino.cra...@gmx.de:
  Hi,
 
  it is possible to run a 32-bit binary executable on a 64-bit system
  (AMD64).
 
 
  But: Is it possible to compile source code on a 64-bit system and get
  an 32-bit executable a the result ??? And if 'yes'...how???
 
 
 gr...@kraken ~ $ cat test.c
 void main() {}
 gr...@kraken ~ $ gcc -o a.out.64 test.c
 gr...@kraken ~ $ gcc -m32 -o a.out.32 test.c
 gr...@kraken ~ $ file a.out.*
 a.out.32: ELF 32-bit LSB executable, Intel 80386, version 1
 (GNU/Linux), dynamically linked (uses shared libs), for GNU/Linux
 2.6.9, not stripped
 a.out.64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux),
 dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not
 stripped
 gr...@kraken ~ $
 
 Br,
 Maciej Grela
 

Sorry a little offtopic, but: There is kinda nonsense-humor of 
gcc in you lines. To call a program, which only consists of void main() {},
to be non stripped is - at least - british understatement (no
punt intended!) :) ;) X-}

Best regards,
mcc





Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Jacob Todd
Crosstools
On Nov 9, 2010 12:39 PM, meino.cra...@gmx.de wrote:
 Jarry mr.ja...@gmail.com [10-11-09 18:36]:
 On 9. 11. 2010 18:25, meino.cra...@gmx.de wrote:

 But: Is it possible to compile source code on a 64-bit system and get
 an 32-bit executable a the result ??? And if 'yes'...how???

 I think that is what cross-compilation is good for...

 Jarry

 --
 ___
 This mailbox accepts e-mails only from selected mailing-lists!
 Everything else is considered to be spam and therefore deleted.


 Is there a toolchain already setup for cross-compiling 32-bit
 executables on a AMD64 system, or do I have to do all that cross-
 compiling magic by myself ?

 Best regards,
 mcc




Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread alain . didierjean
Selon Alan McKinnon alan.mckin...@gmail.com:

 Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
 alain.didierj...@free.fr did opine thusly:

  As the subject says, here's what I get:

 What's the output just before the section you posted?


Here you are :

make[1]: quittant le répertoire «
/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/coreconf/nsinstall
»
make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
cd include; make export
make[1]: entrant dans le répertoire «
/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
»
Creating ../../dist/public/dbm
/usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
/usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
/usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
/usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
/usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
/usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0]
/proc/13606/cmdline:
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
-D ../../dist public dbm

 
  /bin/sh: line 3: 10089 Abandon
  ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
  64_OPT.OBJ/nsinstall -D ../../dist/public/dbm
  make[1]: *** [../../dist/public/dbm] Erreur 134
  make[1]: quittant le répertoire «
  /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/i
  nclude »
  make: *** [export] Erreur 2
   * ERROR: dev-libs/nss-3.12.8 failed:
   *   dbm make failed
   *
   * Call stack:
   * ebuild.sh, line  54:  Called src_compile
   *   environment, line 2703:  Called die
   * The specific snippet of code:
   *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
   *
   * If you need support, post the output of 'emerge --info
  =dev-libs/nss-3.12.8', * the complete build log and the output of 'emerge
  -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
  '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
   * The ebuild environment file is located at
  '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
   * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
 
   Failed to emerge dev-libs/nss-3.12.8, Log file:
'/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'
 
   * Messages for package dev-libs/nss-3.12.8:
 
   * ERROR: dev-libs/nss-3.12.8 failed:
   *   dbm make failed
   *
   * Call stack:
   * ebuild.sh, line  54:  Called src_compile
   *   environment, line 2703:  Called die
   * The specific snippet of code:
   *   emake -j1 CC=$(tc-getCC) || die dbm make failed;
   *
   * If you need support, post the output of 'emerge --info
  =dev-libs/nss-3.12.8', * the complete build log and the output of 'emerge
  -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
  '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
   * The ebuild environment file is located at
  '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
   * S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
  isba alain # emerge -pqv =dev-libs/nss-3.12.8
  [ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
  isba alain # emerge --info =dev-libs/nss-3.12.8
  Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
  2.6.34-gentoo-r12 x86_64)
 
 
  Any cue ?

 --
 alan dot mckinnon at gmail dot com






Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant
 Theoretically, a modularized software project will be more easily
 assembled by large teams, since no team members are creating the whole
 system, or even need to know about the system as a whole. They can
 focus just on the assigned smaller task.

 http://en.wikipedia.org/wiki/Modular_programming

 I don't mind system administration but I don't want to be a programmer
 any more.  I'd like to hire programmers to work in the manner
 described above.  They would each work on modules and not know about
 the system as a whole.  How can something like this be implemented?

 Okay, so this has nothing to do with obfuscation, not trusting people,
 or protecting IP. This is normal software development.

 One would want to break a large application into manageable pieces.
 Usually, those pieces would be libraries (where the meaning of
 library depends on your programming language of choice: SOs, DLLs,
 JARs, etcetera). If your application is monolithic right now then you
 (and/or your developers) will have to spend some time modularizing it.

 So is your question really how do I modularize my code?

I'm most interested in the part about developers not knowing about the
system as a whole.  I'd like developers to work on my code, but
prevent them from selling the code or using it themselves.  I thought
a good way to accomplish this might be to modularize heavily and
change variable names.

It sounds like I'm really going against the grain here.  Is it
standard practice to hire a developer on the internet from any given
country, never meet him or her, have them fax a signed NDA, and turn
over your biggest asset to them?

- Grant



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Mark Knecht
On Tue, Nov 9, 2010 at 9:14 AM, Grant emailgr...@gmail.com wrote:
 Read the OP again.  He wants to obsfuscate the code to make it
 unreadable for the people he's hiring to work on it.

 It would be simpler and cheaper to hire developers who don't
 understand programming language in question, computers, programming in
 general, or even english.

 Then don't let them access any computers that have the source code.

 You'll get better results that way -- far fewer bugs will be
 introduced.

 The idea isn't to make the code unreadable.  Obviously anyone working
 on it needs to be able to read and understand it.

 This idea was brought on while reading a Wikipedia page about modular
 programming:

 Theoretically, a modularized software project will be more easily
 assembled by large teams, since no team members are creating the whole
 system, or even need to know about the system as a whole. They can
 focus just on the assigned smaller task.

 http://en.wikipedia.org/wiki/Modular_programming

 I don't mind system administration but I don't want to be a programmer
 any more.  I'd like to hire programmers to work in the manner
 described above.  They would each work on modules and not know about
 the system as a whole.  How can something like this be implemented?

 - Grant

Get ready to pay a lot more for the documentation and testing portions
of your costs.

If you write a clear spec for the modular block that the programmer is
developing or maintaining then they can follow that during
implementation. However, how do they test their code if they don't
understand the environment that it's being used in?

1) Write test programs that call the block they developed or
maintained. Ensure those test programs exercise _ALL_ the functions of
the block in all possible permutations with all possible initial
states that the module will see during it's life in the larger
product. That's a very difficult problem to _prove_ you've done. I
have worked on chip designs with hundreds of millions of transistors.
In a sense every transistor is a line of code somewhere and it's
simply very difficult to prove you've ever tested everything. I
promise you that the processor in your computer has bugs in the
hardware. They are there. Once in awhile you'll hit on and your PC
will crash. No processor is 'perfect'.

2) Pay the developer to 'Instrument' your module so that every time
it's called it saves some info that can be used to backtrace what has
been happening. When a problem arises have a way to read and
understand the implementation. This can slow down the performance of
the system terribly.

Keeping the software developers completely in the mushroom barn is
(possibly) a pretty expensive thing to try and do.

Hope this helps,
Mark



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Jacob Todd
Only expose the teams to what they need, give them prototypes and
discriptions to the other parts. Like a man page.
On Nov 9, 2010 12:16 PM, Grant emailgr...@gmail.com wrote:
 Read the OP again.  He wants to obsfuscate the code to make it
 unreadable for the people he's hiring to work on it.

 It would be simpler and cheaper to hire developers who don't
 understand programming language in question, computers, programming in
 general, or even english.

 Then don't let them access any computers that have the source code.

 You'll get better results that way -- far fewer bugs will be
 introduced.

 The idea isn't to make the code unreadable. Obviously anyone working
 on it needs to be able to read and understand it.

 This idea was brought on while reading a Wikipedia page about modular
 programming:

 Theoretically, a modularized software project will be more easily
 assembled by large teams, since no team members are creating the whole
 system, or even need to know about the system as a whole. They can
 focus just on the assigned smaller task.

 http://en.wikipedia.org/wiki/Modular_programming

 I don't mind system administration but I don't want to be a programmer
 any more. I'd like to hire programmers to work in the manner
 described above. They would each work on modules and not know about
 the system as a whole. How can something like this be implemented?

 - Grant



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Hilco Wijbenga
On 9 November 2010 10:08, Grant emailgr...@gmail.com wrote:
 It sounds like I'm really going against the grain here.  Is it
 standard practice to hire a developer on the internet from any given
 country, never meet him or her, have them fax a signed NDA, and turn
 over your biggest asset to them?

:-) No way. :-) That is a recipe for disaster.

Firstly, in general, when it comes to code: you get what you pay for.
And bad code will cost you much more in the long run than simply
paying more for good code.

Now that doesn't mean that by definition all cheap(er) developers are
bad (or that all expensive ones are good) but the odds are not in your
favour. So if you still want to pay less then go with a reputable
company that provides that service. (I don't mean IBM, I mean some
company in India or Russia.) You'll not only get your developers but
you'll also be guaranteed that they'll be automatically replaced
should they leave the company.

You still have to insist on talking to the developers. Make sure they
can code and know what they're talking about. I think you'll find that
it takes a *lot* of time and effort (and a teaspoon of luck) to create
a good team.

And handling a distributed team in different timezones is hard work
too. You'll need a lot more documentation which then will still be
interpreted incorrectly. Yes, I'm talking for experience. :-)



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Dale

alain.didierj...@free.fr wrote:

Selon Alan McKinnonalan.mckin...@gmail.com:

   

Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
alain.didierj...@free.fr did opine thusly:

 

As the subject says, here's what I get:
   

What's the output just before the section you posted?

 

Here you are :

make[1]: quittant le répertoire «
/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/coreconf/nsinstall
»
make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
cd include; make export
make[1]: entrant dans le répertoire «
/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
»
Creating ../../dist/public/dbm
/usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
/usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
/usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
/usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
/usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
/usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0]
/proc/13606/cmdline:
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
-D ../../dist public dbm

   


I would try it with sandbox disabled.

FEATURES=-*sandbox* your emerge command here

It may work.  Certainly worth a shot I guess.

Dale

:-)  :-)


Re: [gentoo-user] Problem with upgrading portage

2010-11-09 Thread Alan McKinnon
Apparently, though unproven, at 18:10 on Tuesday 09 November 2010, Benyamin 
Dvoskin did opine thusly:

 whats the i468 for ?

For any cpu that's less capable than a genuine 686

In other words, it's for ancient machines. It's not supposed to be used lots.


 
 On Tue, Nov 9, 2010 at 6:00 PM, Alex Schuster wo...@wonkology.org wrote:
  Benyamin Dvoskin writes:
   In the proccess of trying to understand my possible mistake
   I'm wondering ,
   which stage3 file should I use ? the i686 or the i486 ?
   
   I'm trying to install it on an Asus EEEPC 1005ha netbook
  
  i686 if you want a 32 bit OS, x86_64 for 64 bit.
  
   which stage should I use ? ( and I suppose i'll have to use the same
   with the CFLAGS .. ? )
  
  Have a look here:
  http://en.gentoo-wiki.com/wiki/Safe_Cflags
  http://en.gentoo-
  wiki.com/wiki/Safe_Cflags/Intel#Atom_230.2C_Atom_330.2C_Atom_N-Series
  
  Or use -march=native, if you compile locally.
  
 Wonko

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Alan McKinnon
The language of this list is English. You might be lucky and find someone who 
understands French and knows the answer to your problem, but the odds are not 
good. I don't speak French at all, I can't even make jokes about le BigMac 
and get it right, so I can't help you much :-)

I suggest you find and post to a French speaking list, or translate the French 
error messages to English.


Apparently, though unproven, at 19:56 on Tuesday 09 November 2010, 
alain.didierj...@free.fr did opine thusly:

 Selon Alan McKinnon alan.mckin...@gmail.com:
  Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
  
  alain.didierj...@free.fr did opine thusly:
   As the subject says, here's what I get:
  What's the output just before the section you posted?
 
 Here you are :
 
 make[1]: quittant le répertoire «
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/corec
 onf/nsinstall »
 make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
 cd include; make export
 make[1]: entrant dans le répertoire «
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/i
 nclude »
 Creating ../../dist/public/dbm
 /usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
 /usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
 /usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
 /usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
 /usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
 /usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
 64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH
 _64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0] /proc/13606/cmdline:
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
 64_OPT.OBJ/nsinstall -D ../../dist public dbm
 
   /bin/sh: line 3: 10089 Abandon
   ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_
   PTH_ 64_OPT.OBJ/nsinstall -D ../../dist/public/dbm
   make[1]: *** [../../dist/public/dbm] Erreur 134
   make[1]: quittant le répertoire «
   /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/d
   bm/i nclude »
   make: *** [export] Erreur 2
   
* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   
   =dev-libs/nss-3.12.8', * the complete build log and the output of
   'emerge -pqv =dev-libs/nss-3.12.8'. * The complete build log is
   located at '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
   
* The ebuild environment file is located at
   
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
   
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'

Failed to emerge dev-libs/nss-3.12.8, Log file:
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'

* Messages for package dev-libs/nss-3.12.8:

* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   
   =dev-libs/nss-3.12.8', * the complete build log and the output of
   'emerge -pqv =dev-libs/nss-3.12.8'. * The complete build log is
   located at '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
   
* The ebuild environment file is located at
   
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
   
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
   
   isba alain # emerge -pqv =dev-libs/nss-3.12.8
   [ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
   isba alain # emerge --info =dev-libs/nss-3.12.8
   Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
   2.6.34-gentoo-r12 x86_64)
   
   
   Any cue ?
  
  --
  alan dot mckinnon at gmail dot com

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Alan McKinnon
Apparently, though unproven, at 20:08 on Tuesday 09 November 2010, Grant did 
opine thusly:

 It sounds like I'm really going against the grain here.  Is it
 standard practice to hire a developer on the internet from any given
 country, never meet him or her, have them fax a signed NDA, and turn
 over your biggest asset to them?


You are posting to a list dedicated to a Free and Open Source distro.

Folks here won't even bother with an NDA, they'll mostly just give away the 
entire code base for free.

Come on Grant, you know the ropes. What kind of response did you expect?

I'll repeat my earlier question, which you didn't answer as yet. You want to 
keep your code away from your own staff. Obviously, you do not trust your 
staff completely (for whatever reason). Why did you hire them if you can't 
trust them?

You are also abusing code modularity for a purpose it was not intended. It 
improves code quality and reduces cohesion. It does not increase obfuscation.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Florian Philipp
Am 09.11.2010 19:08, schrieb Grant:
 Theoretically, a modularized software project will be more easily
 assembled by large teams, since no team members are creating the whole
 system, or even need to know about the system as a whole. They can
 focus just on the assigned smaller task.

 http://en.wikipedia.org/wiki/Modular_programming

 I don't mind system administration but I don't want to be a programmer
 any more.  I'd like to hire programmers to work in the manner
 described above.  They would each work on modules and not know about
 the system as a whole.  How can something like this be implemented?

 Okay, so this has nothing to do with obfuscation, not trusting people,
 or protecting IP. This is normal software development.

 One would want to break a large application into manageable pieces.
 Usually, those pieces would be libraries (where the meaning of
 library depends on your programming language of choice: SOs, DLLs,
 JARs, etcetera). If your application is monolithic right now then you
 (and/or your developers) will have to spend some time modularizing it.

 So is your question really how do I modularize my code?
 
 I'm most interested in the part about developers not knowing about the
 system as a whole.  I'd like developers to work on my code, but
 prevent them from selling the code or using it themselves.  I thought
 a good way to accomplish this might be to modularize heavily and
 change variable names.
 

Well, there are two ways to go here:
1. Modularize what you have. Give every developer only the source he is
supposed to work on and binary interfaces (libs + header files for
C/C++) and documentation for everything else.

Then the devs will be able to run the software but no one will have all
the source code.

2. Do not give working code to anyone. Define specs, test cases,
prototypes and mock-ups. Then tell your devs to develop against these.

When they have finished their modules (classes, units, whatever), it is
your job to integrate these modules and see whether they work together
as expected. If they don't, improve your specs and tests and give the
code back to the devs for another iteration.

I favor the second approach, especially as there are tools available to
help you and it is safer against reverse-engineering.

I repeat myself but: It would help a lot to know more about the project.
What programming language? What basic structure? Object-oriented,
procedural, distributed (sockets, web services, RPC, ...)?

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
Googling your error messages give Bug #339157 and some  forums threads, one
of which is in french. The bug still open but there is a patch claimed to be
working. Give it a shot after trying Dale's sandbox trick.

bugs.gentoo.org/show_bug.cgi?id=339157

--
   Fatih


On Tue, Nov 9, 2010 at 19:56, alain.didierj...@free.fr wrote:

 Selon Alan McKinnon alan.mckin...@gmail.com:

  Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
  alain.didierj...@free.fr did opine thusly:
 
   As the subject says, here's what I get:
 
  What's the output just before the section you posted?
 

 Here you are :

 make[1]: quittant le répertoire «

 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/coreconf/nsinstall
 »
 make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
 cd include; make export
 make[1]: entrant dans le répertoire «

 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
 »
 Creating ../../dist/public/dbm
 /usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
 /usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
 /usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
 /usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
 /usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
 /usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0]
 /proc/13606/cmdline:

 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
 -D ../../dist public dbm

  
   /bin/sh: line 3: 10089 Abandon
  
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_
   64_OPT.OBJ/nsinstall -D ../../dist/public/dbm
   make[1]: *** [../../dist/public/dbm] Erreur 134
   make[1]: quittant le répertoire «
  
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/i
   nclude »
   make: *** [export] Erreur 2
* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   =dev-libs/nss-3.12.8', * the complete build log and the output of
 'emerge
   -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
* The ebuild environment file is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
  
Failed to emerge dev-libs/nss-3.12.8, Log file:
 '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'
  
* Messages for package dev-libs/nss-3.12.8:
  
* ERROR: dev-libs/nss-3.12.8 failed:
*   dbm make failed
*
* Call stack:
* ebuild.sh, line  54:  Called src_compile
*   environment, line 2703:  Called die
* The specific snippet of code:
*   emake -j1 CC=$(tc-getCC) || die dbm make failed;
*
* If you need support, post the output of 'emerge --info
   =dev-libs/nss-3.12.8', * the complete build log and the output of
 'emerge
   -pqv =dev-libs/nss-3.12.8'. * The complete build log is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/build.log'.
* The ebuild environment file is located at
   '/var/tmp/portage/dev-libs/nss-3.12.8/temp/environment'.
* S: '/var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8'
   isba alain # emerge -pqv =dev-libs/nss-3.12.8
   [ebuild U ] dev-libs/nss-3.12.8 [3.12.7] USE=utils
   isba alain # emerge --info =dev-libs/nss-3.12.8
   Portage 2.1.8.3 (hardened/linux/amd64/10.0, gcc-4.4.4, glibc-2.11.2-r3,
   2.6.34-gentoo-r12 x86_64)
  
  
   Any cue ?
 
  --
  alan dot mckinnon at gmail dot com
 






Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find someone
 who
 understands French and knows the answer to your problem, but the odds are
 not
 good. I don't speak French at all, I can't even make jokes about le
 BigMac
 and get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate the
 French
 error messages to English.



Come on, there was nothing French there except 'Leaving directory' message
preceded by its mnemonic 'make[1]':)
--
   Fatih


Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Fatih Tümen
2010/11/9 Fatih Tümen fthtmn+gen...@gmail.com

 On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:

 The language of this list is English. You might be lucky and find someone who
 understands French and knows the answer to your problem, but the odds are not
 good. I don't speak French at all, I can't even make jokes about le BigMac
 and get it right, so I can't help you much :-)

 I suggest you find and post to a French speaking list, or translate the 
 French
 error messages to English.

 Come on, there was nothing French there except 'Leaving directory' message 
 preceded by its mnemonic 'make[1]':)

..and  'entering directory' ofcourse

--
    Fatih



Re: [gentoo-user] swap usage creeping up

2010-11-09 Thread Fatih Tümen
On Fri, Nov 5, 2010 at 08:45, Iain Buchanan iai...@netspace.net.au wrote:
 OK so vm.swappiness seemed to help a bit but today I notice that swap
 usage is up again.  It's firefox:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 14072 iain      20   0 1369m 897m  15m S    3 29.5 113:14.91 firefox

 I think that's 1.3Gb + 900Mb... sounds like a memory leak to me.

 Anyone else run firefox for 113+ hours?  I'm using 3.6.9-r1.


1.3G is the grant total of Res and Swap.  You need to read man top
before judging not-entirely-accurate values reported by top.

900M is resident on your main memory. '113+ hours' is not a decent
information to draw conclusion from. Running firefox for 113+ hours
with a single tab on a text-only website is not same as running dozens
of tabs with dozens of multimedia/embedded objects.

You say swap usage was up again but dont give data about it. 472M is
what top would report in the above case but it is an unrealictic
values as it is uncompressed size. output of cat /proc/swaps or free
is what one needs to see.

Also make sure that you put the swapiness value which you say worked
for you in /etc/sysctl.conf.

--
   Fatih



Re: [gentoo-user] Perl update = emerge cannot create executables

2010-11-09 Thread Pau Peris
After fixinf fs errors with fsck emerge stopped working so i fixed
with http://www.gentoo.org/proj/en/portage/doc/manually-fixing-portage.xml
Then downloaded a stage3, chrooted, compiled gcc, created a binpkg and
emerged it on the broken system with emerge -K
Now i'm rebuilding the whole system.
Thanks for all :)

2010/11/8 Mick michaelkintz...@gmail.com:
 On Monday 08 November 2010 18:28:58 Pau Peris wrote:
 Please, is there any developer/geek who can help to solve the
 situation? Why do i get :
 [code]/usr/bin/x86_64-pc-linux-gnu-gcc: Exec format error [/code]
 I did nothing than updating the system, also /etc/make.conf (which i
 took a look before getting errors) seems ok.

 I can't say why you *suddenly* started getting problems, but it may indicate
 that there is some hardware problem which caused a fs corruption.  So, check
 the obvious for errors like hard drive (smartmontools) and memory
 (memtest86+).

 If I were you I would follow the instructions in the previous link I sent you,
 and use that to rebuild portage and tool chain before you finish off
 rebuilding the packages that were giving you errors.
 --
 Regards,
 Mick




Re: [gentoo-user] {OT} Deliberately obfuscating my code

2010-11-09 Thread Arttu V.
On 11/9/10, Grant emailgr...@gmail.com wrote:
 I've been working on a particular software project for a long time.
 I'd like to hire a team of developers to take over the project, but I
 consider the code to be valuable and I'd like to keep the whole of it
 secure, even from my own developers.  I was thinking I could do this
 by using some technique to obfuscate the true intention of the code
 modules.  Maybe a recorded series of search/replaces for variable
 names which are reversed once code editing is complete?  Has any
 software been made available to aid in an endeavor like this?

Can you reveal a bit about the nature of the valuable secret in the
code? Is it some weights like with Coca-Cola's recipe and Google's
PageRank? Some entire algorithm, like some proprietary stock trading
scheme/plan implementation? Or something bigger? The entire thing?
Just ickyness over the quality of it, and the glaring holes that'd be
visible to outside devs? :)

You might be able to re-factor the whole codebase to use something
like Strategy Patterns from Gamma et al's book. Then you'd keep the
Strategy implementation parts to your own code base and development,
while the more generic engine part (which just calls the Strategy
when needed) might be developed a bit more freely and openly. Still I
doubt this is your case since you apparently already have some
functional code, so there hopefully is some designed structure in it.

-- 
Arttu V.



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Neil Bothwick
On Tue, 9 Nov 2010 22:05:36 +0200, Alan McKinnon wrote:

 I suggest you find and post to a French speaking list, or translate the
 French error messages to English.

LANG=en emerge foo...

should have GCC spit out English error messages.


-- 
Neil Bothwick

The best things in life are free, but the
expensive ones are still worth a look.


signature.asc
Description: PGP signature


[gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-09 Thread Paul Hartman
Hi,

I have a laptop running Gentoo (with dual-boot to Windows XP). It was
manufactured in 2004 and battery life have been consistent for all
those years. However, it sat dormant for almost a year, after which I
did a few days worth of updating to bring it up to current kernel and
~amd64 package levels. There are two issues that have arisen:

1) The smart battery is not so smart anymore. It only charges about
halfway, then the charging light turns green and it stops. Effective
battery capacity is about one-third of what it used to be. From what I
understand, while Li-ion don't have memory like old Ni-Cd batteries,
the smart circuitry cannot account for power drain that happens when
the battery is not in use. Say the battery lost half of its power
while it was in storage, so the chip thinks charge is at one level
when it is really much lower. When recharging, it stops when it is
full even though it's only halfway there.

Has anyone successfully re-calibrated one of these batteries to
recognize a larger capacity?

My understanding is that, to do this, I should discharge at a constant
rate until it is empty, then charge to full. Repeat ?? times. I've
drained the poor little battery after regular usage (not a constant
rate of discharge) a few times and haven't noticed any change so far.
So I'm probably doing it wrong (or completely misunderstanding...)

This is complicated by my second problem:

2) If I click on the Power Management in the KDE system settings, it
says Number of CPUs 0 Number of batteries 0 and battery-related
options are greyed out. Since battery monitoring does not work, I have
no idea how much battery life is left and have no warning when it
suddenly shuts down, causing filesystem corruption and who knows what
other problems.

Everything in /proc/acpi/battery/ seems normal and /proc/cpuinfo does as well:

$ cat /proc/acpi/battery/BAT1/info
present: yes
design capacity: 4400 mAh
last full capacity:  1984 mAh
battery technology:  rechargeable
design voltage:  14800 mV
design capacity warning: 300 mAh
design capacity low: 100 mAh
cycle count:  0
capacity granularity 1:  32 mAh
capacity granularity 2:  32 mAh
model number:01ZG
serial number:   1020
battery type:LION
OEM info:SMP

$ cat /proc/acpi/battery/BAT1/state
present: yes
capacity state:  ok
charging state:  charged
present rate:0 mA
remaining capacity:  1984 mAh
present voltage: 16384 mV

$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 28
model name  : Mobile AMD Athlon 64 Processor 3000+
stepping: 0
cpu MHz : 2000.000
cache size  : 512 KB
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext
fxsr_opt lm 3dnowext 3dnow rep_good
bogomips: 4009.21
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp

That all seems to look normal to me, so I'm not sure if I'm missing
some setting somewhere else.

Any advice or suggestions would be appreciated.

Thanks,
Paul



Re: [gentoo-user] [Somewhat OT] Laptop battery not showing up in KDE, Smart Battery calibration

2010-11-09 Thread Maciej Grela
2010/11/9 Paul Hartman paul.hartman+gen...@gmail.com:
 Hi,

 I have a laptop running Gentoo (with dual-boot to Windows XP). It was
 manufactured in 2004 and battery life have been consistent for all
 those years. However, it sat dormant for almost a year, after which I
 did a few days worth of updating to bring it up to current kernel and
 ~amd64 package levels. There are two issues that have arisen:

 1) The smart battery is not so smart anymore. It only charges about
 halfway, then the charging light turns green and it stops. Effective
 battery capacity is about one-third of what it used to be. From what I
 understand, while Li-ion don't have memory like old Ni-Cd batteries,
 the smart circuitry cannot account for power drain that happens when
 the battery is not in use. Say the battery lost half of its power
 while it was in storage, so the chip thinks charge is at one level
 when it is really much lower. When recharging, it stops when it is
 full even though it's only halfway there.


The inbuilt battery circuit can account for the self-discharge, the
charge on a lithium cell is proportional to it's voltage IIRC. The
problem is, that li-ion cells don't like being totaly discharged (for
example lying unused for a year). It's advised to charge them and only
then put them into storage (and recharge every once in a while). So
your battery may simply have 3 cells, 2 of which have been damaged by
self-discharge, therefore you are seeing only 30 % of the previous
capacity.

Br,
Maciej Grela



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Paul Hartman
On Tue, Nov 9, 2010 at 11:56 AM,  alain.didierj...@free.fr wrote:
 Selon Alan McKinnon alan.mckin...@gmail.com:

 Apparently, though unproven, at 10:21 on Tuesday 09 November 2010,
 alain.didierj...@free.fr did opine thusly:

  As the subject says, here's what I get:

 What's the output just before the section you posted?


 Here you are :

 make[1]: quittant le répertoire «
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/coreconf/nsinstall
 »
 make -j3 -j1 CC=x86_64-pc-linux-gnu-gcc
 cd include; make export
 make[1]: entrant dans le répertoire «
 /var/tmp/portage/dev-libs/nss-3.12.8/work/nss-3.12.8/mozilla/security/dbm/include
 »
 Creating ../../dist/public/dbm
 /usr/lib/libsandbox.so(+0x3972)[0x2b497350a972]
 /usr/lib/libsandbox.so(+0x3a03)[0x2b497350aa03]
 /usr/lib/libsandbox.so(+0xbdfc)[0x2b4973512dfc]
 /usr/lib/libsandbox.so(+0x413c)[0x2b497350b13c]
 /usr/lib/libsandbox.so(+0x749c)[0x2b497350e49c]
 /usr/lib/libsandbox.so(mkdir+0x37)[0x2b4973511807]
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x191c)[0x2b49730e391c]
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall(+0x19e0)[0x2b49730e39e0]
 /proc/13606/cmdline:
 ../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_64_OPT.OBJ/nsinstall
 -D ../../dist public dbm


Looks similar to this:
http://forums.gentoo.org/viewtopic-t-850517.html



Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Stroller

On 9/11/2010, at 9:03pm, Fatih Tümen wrote:
 On Tue, Nov 9, 2010 at 22:05, Alan McKinnon alan.mckin...@gmail.com wrote:
 
 The language of this list is English. You might be lucky and find 
 someonewhounderstands French and knows the answer to your problem, but the 
 odds arenotgood. I don't speak French at all, I can't even make jokes about 
 leBigMacand get it right, so I can't help you much :-)
 
 I suggest you find and post to a French speaking list, or translate 
 theFrencherror messages to English.
 
 Come on, there was nothing French there except 'Leaving directory' message
 preceded by its mnemonic 'make[1]':)

The point is that I don't know that the error message translates to 'Leaving 
directory'. And it's the only error message there is.

Isn't it possible for non-English speakers to set something like 
LANG=en_GB.UTF-8 in /etc/env.d/02locale and then simply `export 
LANG=en_GB.UTF-8` before posting their errors?

Additionally: Alain, if the only error message shown is 'Leaving directory', 
then you probably need to show us some more, earlier, output.

Stroller.




Re: [gentoo-user] Suspect fs, or suspect disk, or something else?

2010-11-09 Thread Stroller

On 9/11/2010, at 4:04pm, Alex Schuster wrote:
 ...
 I need to mention here that the machine is a laptop which I use
 regularly on train journeys (bumpy ride).  The drive has a Seagate
 G-Force Protection™ which is meant to park the head in case of a fall.
 
 Which probably would not help in the train, unless you drop it there.

Further to Alex's comment: the G-Force Protection™ probably parks the head in 
the event that the laptop goes weightless (a cheap sensor built into the drive 
would be quite adequate to detect that), but it probably takes half a second to 
do so. In the case of up and down jolts I'm not sure that it would detect those 
the same way - maybe it is indeed clever enough to do so, but would it have 
time to park the head?

aB.




[gentoo-user] Maya 2011 anyone

2010-11-09 Thread Zeerak Mustafa Waseem
Hey guys,

I've been trying to install Maya 2011 for some time now. I get the rpms 
unpacked 
(http://usa.autodesk.com/adsk/servlet/ps/dl/item?siteID=123112id=15770983linkID=9242259)
 with no major difficulties.
The dynamic linking needed is in place (ebuild I'm writing to make life easier 
for other people is attatched) as far as I can tell.
The problem occurs when I attempt to run it. I get (What I've found to be error 
20) an error with the licensing despite having a valid license.
Questions are:
Does anyone have maya 2011 running on their gentoo box, and possibly willing to 
help?
If not then is anyone willing to help? This has me boggled, I've tried to the 
best of my knowledge to make it run but can't seem to get past it.
I've primarily followed this (http://etoia.free.fr/?p=1611) article on how to 
install.
The only deviation has been not copying to /usr, /var, there's nothing needing 
/etc, and /opt.
I've the instruction of exporting the maya path has been followed although it's 
been directed to where the maya install is, rather than to /usr/autodesk/maya...

Help would be much appreciated :)

-- 
Zeerak Waseem
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: Maya-2011 for x86 and amd64$

# RPM versions within the tarballs which will get installed
# Matchmover is a camera tracking tool
# Adlmapps is needed to activate
# Adlclient and server are needed to activate
# There is no support for backburner at the current time
# Backburner can distribute cputime to another computer
# Backburner monitor can monitor same with webmonitor
# Toxik is a film compositing tool
# Maya is a 3d editing tool
# Mayadocs for documentation

inherit rpm eutils versionator

IUSE=bundled-libs backburner backburner-monitor backburner-webmonitor doc
matchmover toxik openmotif

S=${WORKDIR}

DESCRIPTION=Autodesk's Maya. Commercial modeling and animation package
HOMEPAGE=http://www.alias.com/eng/products-services/maya/index.shtml;

# Patches to download go into SRC_URI
SRC_URI=autodesk_maya_2011_sp1_linux_64bit.tgz

RESTRICT=fetch nouserpriv

SLOT=$(get_version_component_range 1-2)

LICENSE=maya-11.0 mayadoc-11.0

# Still having trouble getting the docs working right.
KEYWORDS=~amd64

DEPEND=app-arch/rpm2targz app-arch/tar

RDEPEND=|| ( app-shells/tcsh app-shells/csh )
x11-libs/libxcb app-admin/gamin dev-libs/libgamin
media-libs/libquicktime dev-lang/python media-libs/audiofile
sys-libs/e2fsprogs-libs media-libs/openal
media-libs/libpng:1.2

amd64? (
!bundled-libs? ( x11-libs/libXpm x11-libs/libXmu x11-libs/libXt
x11-libs/libXp x11-libs/libXi x11-libs/libXext 
x11-libs/libX11
x11-libs/libXau x11-libs/libxcb )
bundled-libs? ( app-emulation/emul-linux-x86-xlibs )
bundled-libs? ( app-emulation/emul-linux-x86-baselibs )
bundled-libs? ( app-emulation/emul-linux-x86-qtlibs )
openmotif? ( x11-libs/openmotif ) ) 

MAYADIR=/opt/Autodesk

pkg_nofetch() {
einfo This ebuild expects your files to be placed in ${DISTDIR}:
#   einfo
#   einfo Downloads from Alias's support server:
#   einfo 
htp://usa.autodesk.com/adsk/servlet/ps/dl/item?linkID=9242259id=15113998siteID=123112
}

src_unpack() {

# Unpack downloaded tarall containing RPMss
unpack ${A}
# Begin the mass rpm conversion/unpacking

rpm2cpio adlmapps3-3.0.17-0.x86_64.rpm | cpio -idmvu

assert Failed to unpack adlmapps3-3.0.17-0.x86_64.rpm

rpm2cpio adlmflexnetclient-3.0.17-0.x86_64.rpm | cpio -idmvu

assert Failed to unpack adlmflexnetclient-3.0.17-0.x86_64.rpm

rpm2cpio adlmflexnetserver-3.0.17-0.x86_64.rpm | cpio -idmvu

assert Failed to adlmflexnetserver-3.0.17-0.x86_64.rpm

rpm2cpio Maya2011_0_64-2011.0-419.x86_64.rpm | cpio -idmvu

assert Failed to unpack Maya2011_0_64-2011.0-419.x86_64.rpm

if use doc; then
rpm2cpio Maya2011_0_64-docs_en_US_64-2011-88.x86_64.rpm | cpio 
-idmvu
assert Failed to unpack 
maya2011_0_64-docs_en_US_64-2011-88.x86_64.rpm
fi

# Due to backburner having to be in 32-bit and depending
# On packages such as glibc it is for now (with my current
# knowledge on ebuilds and such, not possible to support
# the install of backburner.
#
if use backburner ; then
rpm2cpio backburner.sw.base-2011-1470.i386.rpm | cpio -idmvu

assert Failed to unpack backburner.sw.base-2011-1470.i386.rpm

rpm2cpio autodesk.backburner.monitor-2011-377.i386.rpm | cpio 
-idmvu

assert Failed to unpack 
autodesk.backburner.monitor-2011-377.i386.rpm
fi

if use backburner-webmonitor ; then
rpm2cpio backburner_webmonitor.sw.base-2011-1470.i386.rpm 

Re: [gentoo-user] Can't update dev-lib/nss

2010-11-09 Thread Mike Edenfield

On 11/9/2010 6:45 PM, Stroller wrote:


On 9/11/2010, at 9:03pm, Fatih Tümen wrote:

On Tue, Nov 9, 2010 at 22:05, Alan McKinnonalan.mckin...@gmail.com  wrote:


The language of this list is English. You might be lucky and find someonewhounderstands 
French and knows the answer to your problem, but the odds arenotgood. I don't speak 
French at all, I can't even make jokes about leBigMacand get it right, so I 
can't help you much :-)

I suggest you find and post to a French speaking list, or translate 
theFrencherror messages to English.


Come on, there was nothing French there except 'Leaving directory' message
preceded by its mnemonic 'make[1]':)


The point is that I don't know that the error message translates to 'Leaving 
directory'. And it's the only error message there is.


I'm pretty sure this is the actual error part (from his 
original post):


/bin/sh: line 3: 10089 Abandon
../../coreconf/nsinstall/Linux2.6_x86_64_x86_64-pc-linux-gnu-gcc_glibc_PTH_ 
64_OPT.OBJ/nsinstall -D ../../dist/public/dbm

make[1]: *** [../../dist/public/dbm] Erreur 134

Even a lowly American such as myself can figure out 
Abandon means aborted and Erreur means error :)


The problem is most likely a directory permissions problem. 
 A quick google for nss Error 134 returns two promising 
results, both of them implicating sandbox as the problem:


http://bugs.gentoo.org/show_bug.cgi?id=300982
http://bugs.gentoo.org/show_bug.cgi?id=292050



[gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant Edwards
On 2010-11-09, Grant emailgr...@gmail.com wrote:

 So is your question really how do I modularize my code?

 I'm most interested in the part about developers not knowing about
 the system as a whole.  I'd like developers to work on my code, but
 prevent them from selling the code or using it themselves.

Have programmers stolen a lot of code from you or somebody you know in
the past?

 I thought a good way to accomplish this might be to modularize
 heavily and change variable names.

I don't understand what changing the variable names accomplishes if
the source code is still readable and understandable by those working
on it.

 It sounds like I'm really going against the grain here.  Is it
 standard practice to hire a developer on the internet from any given
 country, never meet him or her, have them fax a signed NDA, and turn
 over your biggest asset to them?

You've got to do some due diligence.  Mostly to find out if they're
competent.  Also I suppose to find out if they're honest.  Personally,
I think the former is the big problem.

Maybe you should hire local developers whom you've interviewed and
whose references you've checked?

-- 
Grant





[gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant Edwards
On 2010-11-09, Florian Philipp li...@f_philipp.fastmail.net wrote:

 Well, there are two ways to go here:

 1. Modularize what you have. Give every developer only the source he
is supposed to work on and binary interfaces (libs + header files
for C/C++) and documentation for everything else.

Then the devs will be able to run the software but no one will
have all the source code.

 2. Do not give working code to anyone. Define specs, test cases,
prototypes and mock-ups. Then tell your devs to develop against these.

When they have finished their modules (classes, units, whatever),
it is your job to integrate these modules and see whether they
work together as expected. If they don't, improve your specs and
tests and give the code back to the devs for another iteration.

 I favor the second approach, especially as there are tools available
 to help you and it is safer against reverse-engineering.

Both of these approaches are going to involve a lot of overhead (the
second more so that the first).  I would _guess_ than approach 2 will
add at least 50-100% overhead.  IOW, there's a pretty good chance that
writing the whole thing yourself would take less of your time than
designing, specifying, coordinating, integrating, testing and managing
approach 2.

I've seen it happen more than once when somebody decided to outsource
software development.  The in-house hours spent specifying, testing,
coordinating were more than it would have taken to just write the
program in-house.  I've seen than happen even when there were no
language or timezone barriers.  Throw in a 10-hour time difference and
a language barrier, and it's a minor miracle if the project ever gets
finished (even at twice the in-house cost of doing it).

-- 
Grant (the other one)





[gentoo-user] Re: {OT} Deliberately obfuscating my code

2010-11-09 Thread Grant Edwards
On 2010-11-09, Mark Knecht markkne...@gmail.com wrote:

 I don't mind system administration but I don't want to be a programmer
 any more. ??I'd like to hire programmers to work in the manner
 described above. ??They would each work on modules and not know about
 the system as a whole. ??How can something like this be implemented?

 Get ready to pay a lot more for the documentation and testing portions
 of your costs.

A lot more.

 If you write a clear spec

Anybody who thinks they can write a clear spec is deluded.

I've seen a _one_page_spec_ where the requirement was completely
re-stated three different ways (with examples!) -- and the programmers
in eastern Europe still mis-understood it.  Even after several days of
e-mails back and forth where the specification was re-explained in
several more ways, they still didn't understand.  After about a week
of daily e-mails back and forth, the light finally came on.

The implementation of that spec (adding a command to a protocol), took
15 lines on code on my end, and there's no way it could have taken any
more than that on the other end -- except they completely
misunderstood the requirement, and they simply couldn't understand
how what we were telling them was different than what they did.

-- 
Grant





Re: [gentoo-user] 32bit-Executables on a AMD64 system...

2010-11-09 Thread Coert Waagmeester

meino.cra...@gmx.de wrote:

Hi,

it is possible to run a 32-bit binary executable on a 64-bit system
(AMD64).


But: Is it possible to compile source code on a 64-bit system and get
an 32-bit executable a the result ??? And if 'yes'...how???

Thank you very much for any help in advance!

Best regards,
mcc





Hello Meino,

My setup is one 32bit pc with gentoo and another 64bit pc with gentoo

I managed to get this going on the 64bit with a 32-bit chroot, distcc, 
and crosstools


Just make sure you compiled your kernel with IA32 binary support (should 
be default)


Here are some links:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1chap=2
http://www.gentoo.org/doc/en/cross-compiling-distcc.xml
http://www.gentoo.org/doc/en/distcc.xml
http://www.gentoo.org/proj/en/base/embedded/handbook/index.xml?part=1chap=2

Regards,
Coert Waagmeester