Re: [gentoo-user] plasma-desktop crash on boot

2013-08-16 Thread 东方巽雷
2013/8/16 microcai micro...@fedoraproject.org


 在 2013-8-16 上午9:48,东方巽雷 dongfangxun...@gmail.com写道:

 
  gentoo testing,kernel3.10.6,qt4.8.5,kde4.11,32bit system,plasma-desktop
 segmentation fault on every boot time.But when I run it in konsole,it
 didn't crash any more,just show X Error: BadWindow (invalid Window
 parameter) 3.Is there someone having the same problem?



 you should use amd64. i had upgraded, everything work fine

Application: Plasma 桌面外壳 (plasma-desktop), signal: Segmentation fault
Using host libthread_db library /lib/libthread_db.so.1.
[Current thread is 1 (Thread 0xb5414740 (LWP 10856))]

Thread 5 (Thread 0xad8e5b40 (LWP 10876)):
#0  0xe424 in __kernel_vsyscall ()
#1  0xb6b5cdbc in pthread_cond_wait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:187
#2  0xb12f658d in ?? () from /usr/lib/qt4/libQtScript.so.4
#3  0xb12f65cf in ?? () from /usr/lib/qt4/libQtScript.so.4
#4  0xb6b58ef4 in start_thread (arg=0xad8e5b40) at pthread_create.c:308
#5  0xb5ed9fbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 4 (Thread 0xa6454b40 (LWP 10878)):
#0  0xb58ac3d7 in g_mutex_get_impl (mutex=0xa5b004e0) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gthread-posix.c:121
#1  0xb58ac678 in g_mutex_lock (mutex=0xa5b004e0) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gthread-posix.c:210
#2  0xb58684d5 in g_main_context_iterate (context=context@entry=0xa5b004e0, 
block=block@entry=1, dispatch=dispatch@entry=1, self=optimized out) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gmain.c:3668
#3  0xb5868757 in g_main_context_iteration (context=0xa5b004e0, may_block=1) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gmain.c:3762
#4  0xb6d1dfcf in QEventDispatcherGlib::processEvents (this=0xa5b00468, 
flags=...) at kernel/qeventdispatcher_glib.cpp:427
#5  0xb6ceb683 in QEventLoop::processEvents (this=this@entry=0xa6454258, 
flags=...) at kernel/qeventloop.cpp:149
#6  0xb6ceb9a1 in QEventLoop::exec (this=this@entry=0xa6454258, flags=...) at 
kernel/qeventloop.cpp:204
#7  0xb6bd8e8c in QThread::exec (this=this@entry=0x93512b8) at 
thread/qthread.cpp:536
#8  0xb6ccb904 in QInotifyFileSystemWatcherEngine::run (this=0x93512b8) at 
io/qfilesystemwatcher_inotify.cpp:256
#9  0xb6bdb918 in QThreadPrivate::start (arg=0x93512b8) at 
thread/qthread_unix.cpp:338
#10 0xb6b58ef4 in start_thread (arg=0xa6454b40) at pthread_create.c:308
#11 0xb5ed9fbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 3 (Thread 0xa49ffb40 (LWP 10883)):
#0  g_private_get_impl (key=0xb5953618 g_thread_specific_private) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gthread-posix.c:978
#1  0xb58acc98 in g_private_get (key=key@entry=0xb5953618 
g_thread_specific_private) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gthread-posix.c:1007
#2  0xb588ea3e in g_thread_self () at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gthread.c:993
#3  0xb586761a in g_main_context_acquire (context=0xa40004e0) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gmain.c:3110
#4  0xb58684a8 in g_main_context_iterate (context=context@entry=0xa40004e0, 
block=block@entry=1, dispatch=dispatch@entry=1, self=optimized out) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gmain.c:3651
#5  0xb5868757 in g_main_context_iteration (context=0xa40004e0, may_block=1) at 
/var/tmp/portage/dev-libs/glib-2.36.3-r2/work/glib-2.36.3/glib/gmain.c:3762
#6  0xb6d1dfcf in QEventDispatcherGlib::processEvents (this=0xa4000468, 
flags=...) at kernel/qeventdispatcher_glib.cpp:427
#7  0xb6ceb683 in QEventLoop::processEvents (this=this@entry=0xa49ff258, 
flags=...) at kernel/qeventloop.cpp:149
#8  0xb6ceb9a1 in QEventLoop::exec (this=this@entry=0xa49ff258, flags=...) at 
kernel/qeventloop.cpp:204
#9  0xb6bd8e8c in QThread::exec (this=this@entry=0x9559f20) at 
thread/qthread.cpp:536
#10 0xb6ccb904 in QInotifyFileSystemWatcherEngine::run (this=0x9559f20) at 
io/qfilesystemwatcher_inotify.cpp:256
#11 0xb6bdb918 in QThreadPrivate::start (arg=0x9559f20) at 
thread/qthread_unix.cpp:338
#12 0xb6b58ef4 in start_thread (arg=0xa49ffb40) at pthread_create.c:308
#13 0xb5ed9fbe in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:131

Thread 2 (Thread 0xa2eceb40 (LWP 10911)):
#0  0xe424 in __kernel_vsyscall ()
#1  0xb6b5d1a4 in pthread_cond_timedwait@@GLIBC_2.3.2 () at 
../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_timedwait.S:250
#2  0xb6bdbe9c in wait (time=3, this=0x8e5f4f8) at 
thread/qwaitcondition_unix.cpp:84
#3  QWaitCondition::wait (this=0x94e1958, mutex=0x94e1954, time=3) at 
thread/qwaitcondition_unix.cpp:158
#4  0xb6bced7b in QThreadPoolThread::run (this=0x9a81ac8) at 
concurrent/qthreadpool.cpp:141
#5  0xb6bdb918 in QThreadPrivate::start (arg=0x9a81ac8) at 
thread/qthread_unix.cpp:338
#6  0xb6b58ef4 in start_thread 

Re: [gentoo-user] Re: Is it a bug if revdep-rebuild catches something that preserved-rebuild doesn't?

2013-08-16 Thread Alan McKinnon
On 16/08/2013 02:00, »Q« wrote:
 On Thu, 15 Aug 2013 10:16:25 +0200
 Alan McKinnon alan.mckin...@gmail.com wrote:
 
 On 15/08/2013 09:30, Nikos Chantziaras wrote:
 When running:

   emerge @preserved-rebuild

 and nothing is found that needs a rebuild, but:

   revdep-rebuild -i

 does find something, should it be considered a bug with the
 preserved-rebuild mechanism and be reported, or is this expected to
 happen from to time?   

 The latter, it happens from time to time. I see it here about once
 every 2 months or so (i.e. seldom). I suppose this is the best we can
 expect, seeing as how it all works:

 @preserved-rebuild tries to remember everything that uses everything
 and detect changes, this will never be 100%,
 revdep-rebuild actively looks for brokenness and still sometimes gets
 it wrong (dynamic plugin modules anyone?)

 The specifics depend on the exact package. Maybe also file a bug so
 Zac can look it over just in case there in a useful tweak he can make
 
 I thought the use of subslots was supposed to make revdep-rebuild
 obsolete someday.
 
 

I doubt that day will ever arrive.

subslots are a way for devs to tell portage that the condition
revdep-rebuild detects can happen, and to rebuild stuff as part of the
emerge.

So what happens if the subslot is wrong or missing in the ebuild?
Portage can't detect that and humans leave such stuff out all the time.

So I think revdep-rebuild is going to stick around for ever, even if it
is just in a double-check-stuff and I-got-your-back type role

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] ceph and a possible python problem

2013-08-16 Thread Keith Dart
Re , William Kenworthy said:
 olympus ~ # ceph
   File /usr/bin/ceph, line 192
 print '\n', s, '\n', '=' * len(s)
  ^
 SyntaxError: invalid syntax
 olympus ~ #


In Python 3 print is a function, and should be called like this:

   print('\n', s, '\n', '=' * len(s))

This works as-is in Python 2, unless you have this at the top of the
file:

from __future__ import print_function


-- Keith


-- 

-- ~
   Keith Dart ke...@dartworks.biz
   public key: ID: 19017044
   http://www.dartworks.biz/
   =



Re: [gentoo-user] What (free) remote desktop do you use

2013-08-16 Thread Keith Dart
Re , Helmut Jarausch said:
 What remote desktop do you use?


ssh. ;)



-- Keith


-- 

-- ~
   Keith Dart ke...@dartworks.biz
   public key: ID: 19017044
   http://www.dartworks.biz/
   =



Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Alessio Ababilov
2013/8/13 Canek Peláez Valdés can...@gmail.com

 I think it's a great experiment, but perhaps too much work for little
 gain, at least currently.

 Thank you!

 The next council meeting will vote if separated /usr without and
 initramfs is officially supported by Gentoo; I hope this time around
 finally is officially and unequivocally stated by the council that a
 separated /usr without an initramfs is *NOT* supported.

As I see from
http://www.gentoo.org/proj/en/council/meeting-logs/20130813.txt, the
council has stated that it is not supported anymore.

The usr-merge will be a slow, gradual change; it will probably take
 years. The systemd package entered the tree in June 2011, after more
 than a year in an overlay, and then it took more than two years to
 make it an official alternative to OpenRC. The /usr merge will take a
 similar amount of time, if not longer.

 Yes, but systemd is a large important package and it requires changes to
startup files in other packages, so, it took a lot of time.

As the opposite, /usr merge is easier and, IMHO, it doesn't introduce any
_obvious_ problems to Gentoo.

2013/8/16 Daniel Campbell li...@sporkbox.us


 Red Hat is only upstream for GNOME and systemd. What they choose to do
 with their distro should not affect the choices of any other distro. I
 see no reason for a /usr merge unless one is using Fedora or wants to
 turn their Gentoo installation into a makeshift Fedora installation.
 This merge should not be forced on Gentoo whatsoever.


I would like to ask you to understand my intension. I believe that Gentoo
is a distro that is famous for providing choises (USE flags and so on).
/usr merge is also a choise, and I look for volunteers and supporters.
BTW, /usr merge is not just a Fedora's caprice: is is done in Arch this
year:
https://mailman.archlinux.org/pipermail/arch-dev-public/2012-March/022625.html


Sincerely,
Alessio Ababilov
Senior Software Engineer
Grid Dynamics


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Tanstaafl

On 2013-08-16 8:29 AM, Alessio Ababilov ilovegnuli...@gmail.com wrote:

2013/8/13 Canek Peláez Valdés can...@gmail.com mailto:can...@gmail.com

I think it's a great experiment, but perhaps too much work for little
gain, at least currently.

Thank you!

The next council meeting will vote if separated /usr without and
initramfs is officially supported by Gentoo; I hope this time around
finally is officially and unequivocally stated by the council that a
separated /usr without an initramfs is *NOT* supported.

As I see from
http://www.gentoo.org/proj/en/council/meeting-logs/20130813.txt, the
council has stated that it is not supported anymore.


sigh

Great. So what does this mean for those of us with older systems with 
separate /usr and don't want initramfs?




[gentoo-user] Advice needed regarding udisks

2013-08-16 Thread Grant
I'm having a problem detaching a USB camera from a desktop.  I found a
Ubuntu bug for the problem which states that it is a bug in udisks-1
which won't be fixed upstream and the solution is to upgrade to Ubuntu
12.10 which uses udisks-2.  Can anyone recommend a good course of
action for me here?

Here is the problem:

# udisks --detach /dev/sdb
Detach failed: Error detaching: helper exited with exit code 1:
Detaching device /dev/sdb
USB device: /sys/devices/pci:00/:00:02.0/usb2/2-6)
SYNCHRONIZE CACHE: FAILED: No such file or directory
(Continuing despite SYNCHRONIZE CACHE failure.)
STOP UNIT: FAILED: No such file or directory

Here is a pretend emerge of udisks:

# emerge -pv udisks
[ebuild  N ] sys-apps/gptfdisk-0.8.6  USE=icu ncurses -static 0 kB
[ebuild  NS] sys-fs/udisks-2.1.0:2 [1.0.4-r5:0] USE=gptfdisk
introspection -cryptsetup -debug (-selinux) -systemd 0 kB

Here is the Ubuntu bug describing the problem (comments 81, 82, 85):

https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/466575

- Grant



[gentoo-user] emerge -e errors right after install

2013-08-16 Thread Francisco Ares
Hello, all.

Gentoo is absolutely great.

This is mainly to make clear I am pretty satisfied on how things are made
to let us have a Linux distro that does not use binary packages, everything
being built almost from the ground up.

But (here comes the but), right on the point I was able to build the
kernel (I'm using the live CD  from 08/01/2013 for x86_64 machine, and a
stage 3 tarballl from the same date for the same machine), I tried an
emerge -e world, and there were so many errors that very few packages
were able to be completely built.

Mainly the errors are at the end of the config stage, and they are like:

...
config.status: creating Makefile
./config.status: line 1091: 26891 Done(141)   eval sed
\\$ac_sed_extra\ $ac_file_inputs
 26892 Illegal instruction | $AWK -f $ac_tmp/subs.awk 
$ac_tmp/out
config.status: error: could not create Makefile
...


or


...
configure: creating ./config.status
config.status: creating install-info/tests/defs
./config.status: line 1218: 31166 Done(141)   eval sed
\\$ac_sed_extra\ $ac_file_inputs
 31167 Illegal instruction | $AWK -f $tmp/subs.awk  $tmp/out
config.status: error: could not create install-info/tests/defs
...

or, like xz-utils, that complained that it was unable to create a
Doxyfile, even having a

I have built binary packages for sed and gawk, created in a machine
with the same characteristics and configuration, and emerged those to the
new machine.  Even so, the errors keep coming.

Am I too anxious?  I did not see anything further in the documentation that
could help this situation, so even not having finished all the installation
procedure, I think it should be possible, at this moment, right before
building a kernel (but after a few pages, right before section 9.
Installing Necessary System Tools).

In fact, it seems like there is one (or some) package(s) missing.

Thanks
Francisco


Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Canek Peláez Valdés
On Fri, Aug 16, 2013 at 7:29 AM, Alessio Ababilov
ilovegnuli...@gmail.com wrote:
 2013/8/13 Canek Peláez Valdés can...@gmail.com

 I think it's a great experiment, but perhaps too much work for little
 gain, at least currently.

 Thank you!

 The next council meeting will vote if separated /usr without and
 initramfs is officially supported by Gentoo; I hope this time around
 finally is officially and unequivocally stated by the council that a
 separated /usr without an initramfs is *NOT* supported.

 As I see from
 http://www.gentoo.org/proj/en/council/meeting-logs/20130813.txt, the council
 has stated that it is not supported anymore.

Well, better late than never. It was about time.

 The usr-merge will be a slow, gradual change; it will probably take
 years. The systemd package entered the tree in June 2011, after more
 than a year in an overlay, and then it took more than two years to
 make it an official alternative to OpenRC. The /usr merge will take a
 similar amount of time, if not longer.

 Yes, but systemd is a large important package and it requires changes to
 startup files in other packages, so, it took a lot of time.

 As the opposite, /usr merge is easier and, IMHO, it doesn't introduce any
 _obvious_ problems to Gentoo.

Perhaps; please understand that I'm 100% behind the /usr merge. But
even if it's easier than the introduction of virtual/service-manager,
it's still true that in Gentoo flag days kinda don't work. The /usr
merge will happen as more and more programs move naturally from / to
/usr.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



[gentoo-user] Re: emerge -e errors right after install

2013-08-16 Thread Michael Palimaka

On 16/08/2013 23:22, Francisco Ares wrote:

  26892 Illegal instruction | $AWK -f $ac_tmp/subs.awk 
  31167 Illegal instruction | $AWK -f $tmp/subs.awk  $tmp/out

 [...]

I have built binary packages for sed and gawk, created in a machine
with the same characteristics and configuration, and emerged those to
the new machine.  Even so, the errors keep coming.


It could be an issue with faulty memory, or problem with glibc.

Often though, illegal instruction is the result of a mismatch between 
the host, and the target for which the binary was compiled.

This could be checked by comparing /proc/cpuinfo with your CFLAGs.




Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Canek Peláez Valdés
On Fri, Aug 16, 2013 at 7:35 AM, Tanstaafl tansta...@libertytrek.org wrote:
 On 2013-08-16 8:29 AM, Alessio Ababilov ilovegnuli...@gmail.com wrote:

 2013/8/13 Canek Peláez Valdés can...@gmail.com mailto:can...@gmail.com


 I think it's a great experiment, but perhaps too much work for little
 gain, at least currently.

 Thank you!

 The next council meeting will vote if separated /usr without and
 initramfs is officially supported by Gentoo; I hope this time around
 finally is officially and unequivocally stated by the council that a
 separated /usr without an initramfs is *NOT* supported.

 As I see from
 http://www.gentoo.org/proj/en/council/meeting-logs/20130813.txt, the
 council has stated that it is not supported anymore.


 sigh

 Great. So what does this mean for those of us with older systems with
 separate /usr and don't want initramfs?

It means exactly what the Council voted:

Since that particular setup may already be subtly broken today
depending on the installed software, Council recommends using an early
boot mount mechanism, e.g. initramfs, to mount /usr if /usr is on a
separate partition.

If you don't want an initramfs, you are on your own. Things will start
to break subtly (probably they *are* broken *now*, you just didn't
noticed), and if you file bugs about it they will be closed as WONTFIX
or INVALID.

If you want your system to be supported, you need an initarmfs, or
anything similar that allows the system to mount /usr really early in
the boot process.

https://wiki.gentoo.org/wiki/Early_Userspace_Mounting

http://www.gentoo.org/doc/en/initramfs-guide.xml

By a quick lecture of the Council session, I believe they are even
open to a closer /usr merge than I thought. When that happens (if it
happens), your system (if you keep upgrading) will not be able to boot
for sure if you don't follow the Council suggestion.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] OpenRc-0.12 is coming soon

2013-08-16 Thread Markos Chandras
On 14 August 2013 16:43, Keith Dart ke...@dartworks.biz wrote:
 Re , William Hubbs said:
 All,

 This message is an announcement and a reminder.

 OpenRc-0.12 will be introduced to the portage tree in the next few
 days.

 If you are using ~arch OpenRc, the standard disclaimer applies:
 remember that you might be subject to breakage.

 I just got around to upgrading to it. When I did my /etc/conf.d/net
 file disappeared, and my network interface would not come up. There is
 not even a sample net file any more.  I had to manually add it back,
 using a syntax I found on the wiki site.



The package is now masked (openrc-0.12) because quite a few people
lost their net configs

So yep, ~arch being *this* broken is not so nice

-- 
Regards,
Markos Chandras - Gentoo Linux Developer
http://dev.gentoo.org/~hwoarang



Re: [gentoo-user] ceph and a possible python problem

2013-08-16 Thread William Kenworthy
On 16/08/13 15:34, Keith Dart wrote:
 Re , William Kenworthy said:
 olympus ~ # ceph
   File /usr/bin/ceph, line 192
 print '\n', s, '\n', '=' * len(s)
  ^
 SyntaxError: invalid syntax
 olympus ~ #
 
 
 In Python 3 print is a function, and should be called like this:
 
print('\n', s, '\n', '=' * len(s))
 
 This works as-is in Python 2, unless you have this at the top of the
 file:
 
   from __future__ import print_function
 
 
 -- Keith
 
 
Thanks Keith, that was suggested on the ceph list but grepping doesnt
show it in the source.  With this version of ceph they have replaced the
ceph binary with a python script so its quite different from the older
version which works.  They target mainly centos and ubuntu/debian so I
will have to keep looking.

BillK





Re: [gentoo-user] ceph and a possible python problem

2013-08-16 Thread Canek Peláez Valdés
On Fri, Aug 16, 2013 at 9:12 AM, William Kenworthy bi...@iinet.net.au wrote:
 On 16/08/13 15:34, Keith Dart wrote:
 Re , William Kenworthy said:
 olympus ~ # ceph
   File /usr/bin/ceph, line 192
 print '\n', s, '\n', '=' * len(s)
  ^
 SyntaxError: invalid syntax
 olympus ~ #


 In Python 3 print is a function, and should be called like this:

print('\n', s, '\n', '=' * len(s))

 This works as-is in Python 2, unless you have this at the top of the
 file:

   from __future__ import print_function


 -- Keith


 Thanks Keith, that was suggested on the ceph list but grepping doesnt
 show it in the source.  With this version of ceph they have replaced the
 ceph binary with a python script so its quite different from the older
 version which works.  They target mainly centos and ubuntu/debian so I
 will have to keep looking.

Have you tried a simple:

python3 /usr/bin/ceph

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] ceph and a possible python problem

2013-08-16 Thread William Kenworthy
On 16/08/13 22:15, Canek Peláez Valdés wrote:
 On Fri, Aug 16, 2013 at 9:12 AM, William Kenworthy bi...@iinet.net.au wrote:
 On 16/08/13 15:34, Keith Dart wrote:
 Re , William Kenworthy said:
 olympus ~ # ceph
   File /usr/bin/ceph, line 192
 print '\n', s, '\n', '=' * len(s)
  ^
 SyntaxError: invalid syntax
 olympus ~ #


 In Python 3 print is a function, and should be called like this:

print('\n', s, '\n', '=' * len(s))

 This works as-is in Python 2, unless you have this at the top of the
 file:

   from __future__ import print_function


 -- Keith


 Thanks Keith, that was suggested on the ceph list but grepping doesnt
 show it in the source.  With this version of ceph they have replaced the
 ceph binary with a python script so its quite different from the older
 version which works.  They target mainly centos and ubuntu/debian so I
 will have to keep looking.
 
 Have you tried a simple:
 
 python3 /usr/bin/ceph
 
 Regards.
 

No, doesnt work either.  The ceph guys say it works fine for them which
leaves me suspecting something is broken on my system ...

BillK




How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Tanstaafl

So, in order to fix a system I'd rather not reinstall from scratch...

Is this possible? Easy? Recommended?



Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Canek Peláez Valdés
On Fri, Aug 16, 2013 at 9:35 AM, Tanstaafl tansta...@libertytrek.org wrote:
 So, in order to fix a system I'd rather not reinstall from scratch...

 Is this possible? Easy? Recommended?

If you have physical access to the system, and a large enough /, it's
really easy. You boot from a livecd, mount /usr in another directory,
copy all the files from it to /usr (be sure to preserve links,
permissions, attributes, etc.), change /etc/fstab, and off you go.

If you need to resize / then it's a little more difficult, but not so
much. You need again to boot with a livecd, and somewhere (a external
or internal disk with enough free space) to put the contents of / and
/usr while repartitioning an reformatting the drive that contains
them. Afterwards you just change /etc/fstab and you are good to go.

If it's a remote system then it gets hairy; any changes to how /usr is
handled should not be done while the system is running.

And really, maybe you could try an initramfs? It will be much more
easy than any juggle of filesystems.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-dev] Re: [gentoo-user] OpenRc-0.12 is coming soon

2013-08-16 Thread Todd Goodman
* Rich Freeman ri...@gentoo.org [130816 10:43]:
 On Fri, Aug 16, 2013 at 10:09 AM, Markos Chandras hwoar...@gentoo.org wrote:
  The package is now masked (openrc-0.12) because quite a few people
  lost their net configs
 
  So yep, ~arch being *this* broken is not so nice
 
 And hence the value of having a group of volunteer guinea pigs
 (anybody running ~arch) is demonstrated.  That said, masking big
 changes and calling for volunteers among the volunteers doesn't hurt.
 
 Seems like we need to be more careful with code that runs outside the
 sandbox.  Config protection is nice, but it is useless when code runs
 outside the sandbox.
 
 Rich

As one of those volunteer guinea pigs it all worked fine with the four
~x86 and three ~amd64 machines I've upgraded to openrc-0.12:0.

They vary in when they were installed from 2005 up to a couple months
ago and are generally updated daily.

All ~x86 are servers (though most have X, KDE, and Gnome installed,
they're only accessed remotely.)

Two of the ~amd64 machines are desktops (though they both run services
as servers.)

If I can help narrow anything down further I'm happy to help.  Or to
test anything.

Todd



Re: [gentoo-user] Re: emerge -e errors right after install

2013-08-16 Thread Francisco Ares
2013/8/16 Michael Palimaka kensing...@gentoo.org

 On 16/08/2013 23:22, Francisco Ares wrote:

   26892 Illegal instruction | $AWK -f $ac_tmp/subs.awk 
   31167 Illegal instruction | $AWK -f $tmp/subs.awk  $tmp/out

  [...]

  I have built binary packages for sed and gawk, created in a machine
 with the same characteristics and configuration, and emerged those to
 the new machine.  Even so, the errors keep coming.


 It could be an issue with faulty memory, or problem with glibc.

 Often though, illegal instruction is the result of a mismatch between the
 host, and the target for which the binary was compiled.
 This could be checked by comparing /proc/cpuinfo with your CFLAGs.



Thanks, gonna check that.

Francisco


Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Tanstaafl

Thanks for the reply Canek

On 2013-08-16 10:48 AM, Canek Peláez Valdés can...@gmail.com wrote:

If you have physical access to the system,


I do.


and a large enough /,


Well...

/ is 19GB, with 18GB available.

/usr is 20GB, with 13GB used, with 7.9GB available.

I guess I'd be ok with going from 18GB available on / to just 5GB 
available...



it's really easy. You boot from a livecd, mount /usr in another
directory,


Not exactly sure how to do this since /user in on lvm...


copy all the files from it to /usr (be sure to preserve
links, permissions, attributes, etc.),


So, once I have it mounted

cp -rp ... ?


change /etc/fstab, and off you go.


Currently:


# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1   /boot   ext2noauto,noatime  1 2
/dev/sda2   noneswapsw  0 0
/dev/sda3   /   ext3noatime 0 1
/dev/sda4   /backupsext3noatime 0 2
/dev/vg2/home   /home   reiserfsnoatime 0 0
/dev/vg2/usr/usrreiserfsnoatime 0 0
/dev/vg2/var/varreiserfsnoatime 0 0
/dev/cdroms/cdrom0  /mnt/cdrom  iso9660 noauto,ro   0 0
/dev/fd0/mnt/floppy autonoauto  0 0

# NOTE: The next line is critical for boot!
none/proc   procdefaults0 0


So, just remove the line referencing /usr?


And really, maybe you could try an initramfs? It will be much more
easy than any juggle of filesystems.


I always compile my kernels manually, by choice - so, no desire to use 
genkernel or dracut.


How would I then create one? I am *not* a programmer, just a reasonably 
competent general sys admin.


Is there a 'generic' one that I can use? Or is there a separate tool 
that will create one based on my system profile (or whatever)?


Thanks again



Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Alan McKinnon
On 16/08/2013 17:04, Tanstaafl wrote:
 Thanks for the reply Canek
 
 On 2013-08-16 10:48 AM, Canek Peláez Valdés can...@gmail.com wrote:
 If you have physical access to the system,
 
 I do.
 
 and a large enough /,
 
 Well...
 
 / is 19GB, with 18GB available.
 
 /usr is 20GB, with 13GB used, with 7.9GB available.
 
 I guess I'd be ok with going from 18GB available on / to just 5GB
 available...

You should be fine with that. A reasonably sane / is quite static, and
/usr tends not to change all *that* much.

There's some precautions I always take on server:

/var, /usr/local, /opt and /tmp are separate mount points
portage moves to /var, not /usr

With those dealt with, the balance of / shouldn't grow much.


 
 it's really easy. You boot from a livecd, mount /usr in another
 directory,
 
 Not exactly sure how to do this since /user in on lvm...
 
 copy all the files from it to /usr (be sure to preserve
 links, permissions, attributes, etc.),
 
 So, once I have it mounted
 
 cp -rp ... ?
 
 change /etc/fstab, and off you go.
 
 Currently:
 
 # NOTE: If your BOOT partition is ReiserFS, add the notail option to
 opts.
 /dev/sda1   /boot   ext2   
 noauto,noatime  1 2
 /dev/sda2   noneswap   
 sw  0 0
 /dev/sda3   /   ext3   
 noatime 0 1
 /dev/sda4   /backupsext3   
 noatime 0 2
 /dev/vg2/home   /home   reiserfs   
 noatime 0 0
 /dev/vg2/usr/usrreiserfs   
 noatime 0 0
 /dev/vg2/var/varreiserfs   
 noatime 0 0
 /dev/cdroms/cdrom0  /mnt/cdrom  iso9660
 noauto,ro   0 0
 /dev/fd0/mnt/floppy auto   
 noauto  0 0

 # NOTE: The next line is critical for boot!
 none/proc   proc   
 defaults0 0
 
 So, just remove the line referencing /usr?
 
 And really, maybe you could try an initramfs? It will be much more
 easy than any juggle of filesystems.
 
 I always compile my kernels manually, by choice - so, no desire to use
 genkernel or dracut.
 
 How would I then create one? I am *not* a programmer, just a reasonably
 competent general sys admin.
 
 Is there a 'generic' one that I can use? Or is there a separate tool
 that will create one based on my system profile (or whatever)?

NAFC. I'm like you and don't built initramfses. The only ones I have are
ones that RH shipped :-)




 
 Thanks again
 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Canek Peláez Valdés
On Fri, Aug 16, 2013 at 10:04 AM, Tanstaafl tansta...@libertytrek.org wrote:
 Thanks for the reply Canek


 On 2013-08-16 10:48 AM, Canek Peláez Valdés can...@gmail.com wrote:

 If you have physical access to the system,


 I do.


 and a large enough /,


 Well...

 / is 19GB, with 18GB available.

 /usr is 20GB, with 13GB used, with 7.9GB available.

 I guess I'd be ok with going from 18GB available on / to just 5GB
 available...


 it's really easy. You boot from a livecd, mount /usr in another
 directory,


 Not exactly sure how to do this since /user in on lvm...

If the Gentoo minimal install CD doesn't allow you to mount /usr in
LVM, for sure SystemRescueCD will:

http://www.sysresccd.org/SystemRescueCd_Homepage


 copy all the files from it to /usr (be sure to preserve
 links, permissions, attributes, etc.),


 So, once I have it mounted

 cp -rp ... ?

I would use rsync:

rsync -PvasHAX /oldusr/ /usr/


 change /etc/fstab, and off you go.


 Currently:

 # NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
 /dev/sda1   /boot   ext2noauto,noatime  1
 2
 /dev/sda2   noneswapsw  0
 0
 /dev/sda3   /   ext3noatime 0
 1
 /dev/sda4   /backupsext3noatime 0
 2
 /dev/vg2/home   /home   reiserfsnoatime 0
 0
 /dev/vg2/usr/usrreiserfsnoatime 0
 0
 /dev/vg2/var/varreiserfsnoatime 0
 0
 /dev/cdroms/cdrom0  /mnt/cdrom  iso9660 noauto,ro   0
 0
 /dev/fd0/mnt/floppy autonoauto  0
 0

 # NOTE: The next line is critical for boot!
 none/proc   procdefaults0
 0


 So, just remove the line referencing /usr?

Yeah, basically.

 And really, maybe you could try an initramfs? It will be much more
 easy than any juggle of filesystems.


 I always compile my kernels manually, by choice - so, no desire to use
 genkernel or dracut.

I compile my kernels manually too. Since ever. Dracut generates an
initramfs from your running system, is orthogonal to compiling your
own kernel.

 How would I then create one? I am *not* a programmer, just a reasonably
 competent general sys admin.

 Is there a 'generic' one that I can use? Or is there a separate tool that
 will create one based on my system profile (or whatever)?

Yeah, dracut. Emerge dracut with LVM support, adding lvm to
DRACUT_MODULES in /etc/portage/make.conf, then edit /etc/dracut.conf,
and add lvmconf=yes, and run dracut like this (for example):

/usr/bin/dracut -f -H  /boot/initrd-3.10.7 3.10.7

Then you add an initrd line to GRUB, or GRUB2 will automatically
detect the initrd with grub2-mkconfig.

You should at least try it before changing partitions; is so much
easier. If it fails, you can still do the integration of /usr  and /.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Paul Hartman
On Fri, Aug 16, 2013 at 10:04 AM, Tanstaafl tansta...@libertytrek.org wrote:
 And really, maybe you could try an initramfs? It will be much more
 easy than any juggle of filesystems.


 I always compile my kernels manually, by choice - so, no desire to use
 genkernel or dracut.

 How would I then create one? I am *not* a programmer, just a reasonably
 competent general sys admin.

 Is there a 'generic' one that I can use? Or is there a separate tool that
 will create one based on my system profile (or whatever)?

I think dracut is actually exactly the tool you are looking for. It
does not have anything to do with building your kernel, its sole job
in life is to generate an initramfs built to your specifications. It
contains sane defaults but you can tweak it to include or exclude
things as you see fit. I build my kernel by hand and then run dracut
afterward to generate the initramfs.img.

I believe mounting /usr is enabled by default in dracut. I would
recommend checking out the documentation and seeing all the different
options and modules that are available so you can customize it to
match your needs. For example you may want to have it import your LVM
configuration, assemble a RAID, use the reiserfs or btrfs filesystem,
etc.

Once it generates the initramfs it's as simple as adding a line to
your grub config and off you go. If it doesn't work right away you can
just comment out that line and boot without it, for now, while your
existing setup is still valid. (It took me a few reboots to find the
right combination of options.) Then someday if separate /usr is no
longer allowed without an initramfs, you'll be prepared for it.

I always regenerate my initramfs using dracut after every time i build
a new kernel, but I'm not sure if that's truly necessary. Honestly
it's all still a bit of a black box to me.



Re: [gentoo-user] Re: emerge -e errors right after install

2013-08-16 Thread Francisco Ares
2013/8/16 Francisco Ares fra...@gmail.com


 2013/8/16 Michael Palimaka kensing...@gentoo.org

 On 16/08/2013 23:22, Francisco Ares wrote:

   26892 Illegal instruction | $AWK -f $ac_tmp/subs.awk 
   31167 Illegal instruction | $AWK -f $tmp/subs.awk  $tmp/out

  [...]

  I have built binary packages for sed and gawk, created in a machine
 with the same characteristics and configuration, and emerged those to
 the new machine.  Even so, the errors keep coming.


 It could be an issue with faulty memory, or problem with glibc.

 Often though, illegal instruction is the result of a mismatch between the
 host, and the target for which the binary was compiled.
 This could be checked by comparing /proc/cpuinfo with your CFLAGs.



 Thanks, gonna check that.

 Francisco



You were right.  I have overlooked the type of the new machine's CPU (it is
a Pentium(R) Dual-Core  CPU and the other one, already working, is a
Intel(R) Core(TM)2 Duo CPU). So, a march=nocona instead of a
march=core2 seems to have solved the problem.

Thank you!
Francisco


Re: [gentoo-user] OpenRc-0.12 is coming soon

2013-08-16 Thread Paul Hartman
On Wed, Aug 14, 2013 at 6:12 PM, Neil Bothwick n...@digimed.co.uk wrote:
 On Wed, 14 Aug 2013 15:04:38 -0500, William Hubbs wrote:

 For the folks who lost /etc/conf.d/net, was it the stub file that came
 with OpenRC, or had you modify it?

 I've tried the update on two systems, both with modified config files
 (the second one modified just before the upgrade to see if that made a
 difference). The first one lost it's file, the second one kept it.

 I've got a couple more t update so I'll see if I can see a pattern.

Looks like they've solved the mystery:
https://bugs.gentoo.org/show_bug.cgi?id=481336

Sounds like if you modified the file BEFORE installing the previous
version of openrc, it got removed, but if you modified it AFTER
installing your previous openrc it would be kept.



Re: How hard is it to move separate /usr to / partition? - WAS Re: [gentoo-user] Optional /usr merge in Gentoo

2013-08-16 Thread Neil Bothwick
On Fri, 16 Aug 2013 11:04:35 -0400, Tanstaafl wrote:

  And really, maybe you could try an initramfs? It will be much more
  easy than any juggle of filesystems.  
 
 I always compile my kernels manually, by choice - so, no desire to use 
 genkernel or dracut.
 
 How would I then create one? I am *not* a programmer, just a reasonably 
 competent general sys admin.

Read the initramfs page on the Gentoo wiki and 
/usr/src/linux/Documentation/filesystems/ramfs-rootfs-initramfs.txt

The kernel will build the initramfs for you, all you need to provide is
the init script and a list of files to include.


-- 
Neil Bothwick

Secret hacker rule #11: hackers read manuals.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: emerge -e errors right after install

2013-08-16 Thread Walter Dnes
On Fri, Aug 16, 2013 at 03:18:35PM -0300, Francisco Ares wrote

 You were right.  I have overlooked the type of the new machine's CPU (it is
 a Pentium(R) Dual-Core  CPU and the other one, already working, is a
 Intel(R) Core(TM)2 Duo CPU). So, a march=nocona instead of a
 march=core2 seems to have solved the problem.

  I have the following in make.conf

CFLAGS=-O2 -march=native -fomit-frame-pointer -pipe -fno-unwind-tables 
-fno-asynchronous-unwind-tables
CXXFLAGS=${CFLAGS}

...where -march=native will always work correctly for a local build.
The only possible worry is if you're cross-compiling and or distributing
a binary to multiple machines.  It also saves me the headache of
figuring out the CFLAGS setting whenever I get a new machine.  You still
have to set up the correct processor in the kernel, however.

-- 
Walter Dnes waltd...@waltdnes.org
I don't run desktop environments; I run useful applications



Re: [gentoo-user] ceph and a possible python problem

2013-08-16 Thread William Kenworthy
On 16/08/13 22:31, William Kenworthy wrote:
 On 16/08/13 22:15, Canek Peláez Valdés wrote:
 On Fri, Aug 16, 2013 at 9:12 AM, William Kenworthy bi...@iinet.net.au 
 wrote:
 On 16/08/13 15:34, Keith Dart wrote:
 Re , William Kenworthy said:
 olympus ~ # ceph
   File /usr/bin/ceph, line 192
 print '\n', s, '\n', '=' * len(s)
  ^
 SyntaxError: invalid syntax
 olympus ~ #


 In Python 3 print is a function, and should be called like this:

print('\n', s, '\n', '=' * len(s))

 This works as-is in Python 2, unless you have this at the top of the
 file:

   from __future__ import print_function


 -- Keith


 Thanks Keith, that was suggested on the ceph list but grepping doesnt
 show it in the source.  With this version of ceph they have replaced the
 ceph binary with a python script so its quite different from the older
 version which works.  They target mainly centos and ubuntu/debian so I
 will have to keep looking.

 Have you tried a simple:

 python3 /usr/bin/ceph

 Regards.

 
 No, doesnt work either.  The ceph guys say it works fine for them which
 leaves me suspecting something is broken on my system ...
 
 BillK
 
 

Still not sure if I have a bug or a broken system.

1. If I use eselect to set python 3 and build ceph from the  ebuild
it wont work
2. If I eselect python 2.7 it wont work
3. if I rebuild it with python 2.7 selected it now WORKS - yea!
4. if I eselect python 3.2 it wont work :(

Ok, I am suspecting that something in ceph isnt playing nicely with the
gentoo eselect system and having python2 and python3 on the system  :(

I guess its pulling in something python2 when 3 is active which is where
the __future__ mechanism comes into play.

So next question is ... can I remove python2? - last I heard, portage
needs python2 and wont run properly with python3 - is that still the case?


BillK