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

2013-08-17 Thread Daniel Campbell
On 08/16/2013 07:29 AM, Alessio Ababilov 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.
 
 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 mailto: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

I'm completely in favor of choice, but only if it doesn't impede on any
other choice(s). If /usr merges are completely optional and only tied to
software that require it (read: systemd), then I'm fine. But requiring
people to have an initramfs to boot a system that doesn't legitimately
require it is silly. I don't even have /usr mounted separately, but
there are many, many different system configurations out there and
Gentoo is famous for supporting a wide variety. That variety is stomped
on if something like a /usr merge is forced. It also makes building your
default environment more complicated due to generating an initramfs.

Arch is following Fedora as they consider them an upstream. They were
one of, if not *the* first non-Fedora distros to ship systemd by
default. They're a poor example. Really, Arch is just Fedora with a
better package manager.

~Daniel



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

2013-08-17 Thread Stroller

On 16 August 2013, at 14:22, Francisco Ares wrote:
 ...
 But (here comes the but), right on the point I was able to build the kernel 
 ... I tried an emerge -e world, and there were so many errors that very few 
 packages were able to be completely built.

Is this during the installation process?

IMO you should exit the chroot and get the system booting before you try 
re-emerging everything.

Stroller.
 

[gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Grant
This is actually a portage question.  How can I install udisks-2 in a
way that will fix this problem?  I'm confused by how to handle the
slotting behavior.

- Grant


On Fri, Aug 16, 2013 at 6:09 AM, Grant emailgr...@gmail.com wrote:
 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



Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Alan McKinnon
On 17/08/2013 09:57, Grant wrote:
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.


emerge udisks:2


A SLOT is treated as two different packages that just happen to have the
same name, so there's a :something appended to differentiate them.

Other packages that use udisks will define which SLOT they DEPEND on in
their ebuild, if it's important to distinguish them that way.







 
 - Grant
 
 
 On Fri, Aug 16, 2013 at 6:09 AM, Grant emailgr...@gmail.com wrote:
 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
 


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




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

2013-08-17 Thread the . guard
 But requiring
 people to have an initramfs to boot a system that doesn't legitimately
 require it is silly. I don't even have /usr mounted separately, but
 there are many, many different system configurations out there and
 Gentoo is famous for supporting a wide variety. That variety is stomped
 on if something like a /usr merge is forced. It also makes building your
 default environment more complicated due to generating an initramfs.

Absolutely agreed.



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

2013-08-17 Thread Dan Johansson
On 16.08.2013 15:57, Canek Peláez Valdés wrote:
 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.


And when we are at it, why not rename '/' to 'C:\' ?

-- 
Dan Johansson, http://www.dmj.nu
***
This message is printed on 100% recycled electrons!
***


0x2FB894AD.asc
Description: application/pgp-keys


signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How to determine 'Least Common Denominator' between Xen(Server) Hosts

2013-08-17 Thread Pandu Poluan
On Aug 16, 2013 12:26 AM, Kerin Millar kerfra...@fastmail.co.uk wrote:

 On 14/08/2013 13:15, Bruce Hill wrote:

 On Wed, Aug 14, 2013 at 12:18:41PM +0700, Pandu Poluan wrote:

 Hello list!

 My company has 2 HP DL585 G5 servers and 5 Dell R... something servers.
All
 using AMD processors. They currently are acting as XenServer hosts.

 How do I determine the 'least common denominator' for Gentoo VMs
(running
 as XenServer guests), especially for gcc flags?

 I know that the (theoretical) best performance is to use -march=native ,
 but since the processors of the HP servers are not exactly the same as
the
 Dell's, I'm concerned that compiling with -march=native will render the
VMs
 unable to migrate between the different hosts.


 A couple of points:

 * The effect of setting -march=native depends on the characteristics of
   the CPU (be it virtual or otherwise)
 * The characteristics of the vCPU are defined by qemu's -cpu parameter
 * qemu can emulate features not implemented by the host CPU (at a cost)

 One way to go about it is to start qemu with a -cpu model that exposes
features that all of your host CPUs have in common (or a subset thereof).
In that case, -march=native is fine because all of the features that it
detects as being available will be supported in hardware on the host side.

 Another way is to expose the host CPU fully with -cpu host and to
define your guest CFLAGS according to the most optimal subset. If you are
looking for a 'perfect' configuration then this this would be the most
effective method, if applied correctly.


AFAIK, that's how XenServer configured its hosts. There's CPU Masking
option when a heterogeneous pool of hosts were created, but I have the
impression that CPU Masking is only being employed by the 'xe toolstack'
(CloudStack) layer to determine to which host a VM can be migrated.

 Irrespective of the method, by examining /proc/cpuinfo and using the diff
technique mentioned by Bruce, you should be able to determine the optimal
configuration.

 Finally, in cases where the host CPUs differ significantly - in that
native would imply a different -march value - you may choose to augment
your CFLAGS with -mtune=generic to even out performance across the board. I
don't think this would apply to you though.


Certainly doesn't apply to me. Based on tech spec I have on the servers,
the processors are very similar... I just want to be doubly sure :-)

Thanks for the explanation (including the difference between 'march' and
'mtune' in your other email)!

Rgds,
--


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

2013-08-17 Thread Michael Palimaka

On 17/08/2013 08:38, Walter Dnes wrote:


   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.



While -march=native is generally good advice, GCC is not perfect and on 
occasion it can flags to be enabled that are not supported, resulting in 
the invalid instruction error.





[gentoo-user] How to get video output in the same window as the interface

2013-08-17 Thread Andrew Lowe

Hi all,
	I just did an emerge world and now my vlc interface has gone feral. 
Previously a double click on a video would bring up one window with the 
video in the centre and the controls surrounding it, play, stop, 
progress bar etc. Now when it starts up, I get two windows, one that 
contains the controls and a black rectangle with the vlc witch's hat in 
the middle and another with the video playing. I've tried all sorts of 
options but can't seem to find the right combo - I probably can't see 
the wood for the trees after playing around with it so much. Does anyone 
have any idea what the config option is so I can bring things back to 
how they were?


Any thoughts greatly appreciated,
Andrew





Re: [gentoo-user] How to get video output in the same window as the interface

2013-08-17 Thread the
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/17/13 18:14, Andrew Lowe wrote:
 Hi all, I just did an emerge world and now my vlc interface has
 gone feral. Previously a double click on a video would bring up one
 window with the video in the centre and the controls surrounding
 it, play, stop, progress bar etc. Now when it starts up, I get two
 windows, one that contains the controls and a black rectangle with
 the vlc witch's hat in the middle and another with the video
 playing. I've tried all sorts of options but can't seem to find the
 right combo - I probably can't see the wood for the trees after
 playing around with it so much. Does anyone have any idea what the
 config option is so I can bring things back to how they were?

VLC has different display modes.
The availability of these modes is
determined by use flags.
can you please write which video modes are available?
(tools - preferences - video - output )
- -- 
Stop talking and start compiling.
Linux user #557897
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.20 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSD5O1AAoJEK64IL1uI2haE+0IAJmZreIRE88jB/4fQcIW4iB2
hbTQLme9vuwpjlDF9hraP6emiGAn4s7jyfGODlmmDPRa5KuwJgmQFDSNhiDw0xJa
ZsiTtLWGDHrAL7jC8rJU/fRsbJXwNNSt6sIF36ep0XNZzOeDIRcXUuHU2XFEbgI6
VpJqoPQ1ukrSmEC/o8JCEfv6y5Eo5sJYWHx9LooZxZsM7JIp5Cn9l782NOXc/l9k
/gmN776Z7OAxp9iH8PVJFjQ1kDFA18a8ATE51AJePTdAOLOHx89lNHmRkxojLMxf
sfdMJ9m03xXCP3C5ejY3kiDX3qGPU0OutkrqbtJjCPViN8G9iC2xpxJcAk3/STg=
=f9+R
-END PGP SIGNATURE-



Re: [gentoo-user] How to get video output in the same window as the interface

2013-08-17 Thread Andrew Lowe

On 08/17/13 23:16, the wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/17/13 18:14, Andrew Lowe wrote:

Hi all, I just did an emerge world and now my vlc interface has
gone feral. Previously a double click on a video would bring up one
window with the video in the centre and the controls surrounding
it, play, stop, progress bar etc. Now when it starts up, I get two
windows, one that contains the controls and a black rectangle with
the vlc witch's hat in the middle and another with the video
playing. I've tried all sorts of options but can't seem to find the
right combo - I probably can't see the wood for the trees after
playing around with it so much. Does anyone have any idea what the
config option is so I can bring things back to how they were?


VLC has different display modes.
The availability of these modes is
determined by use flags.
can you please write which video modes are available?
(tools - preferences - video - output )


	According to the above I have Output set to default. The second window, 
the video window, has as its window title:


VLC (hardware YUV SDL output)

My desktop environment is KDE 4. When doing the emerge world, I got a 
segmentation fault during the build. Some googling revealed the 
following forum topic:


http://tinyurl.com/lgo9r7x

I read the comment from alex46 @ 8:36pm, 14/6/2013 and rebuilt VLC with 
those USE flags. That is when the problem appeared. Silly me, I didn't 
notice that this was a two page topic and I had only read the first 
page. I'm now going to follow the steps from the second page and see 
what happens..


Andrew






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

2013-08-17 Thread Francisco Ares
2013/8/16 Walter Dnes waltd...@waltdnes.org

 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


Yes, that is the problem. I got the oldest CPU on witch the same binaries
will run. The newest uses an Intel I3, but the oldest ones run on a Dual
Core (not Core-2, as my first assumption).

Thanks for the other parameters though, I have never tried them. Gonna take
a look.

Francisco


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

2013-08-17 Thread Francisco Ares
2013/8/17 Stroller strol...@stellar.eclipse.co.uk


 On 16 August 2013, at 14:22, Francisco Ares wrote:

 ...
 But (here comes the but), right on the point I was able to build the
 kernel ... I tried an emerge -e world, and there were so many errors that
 very few packages were able to be completely built.


 Is this during the installation process?

 IMO you should exit the chroot and get the system booting before you try
 re-emerging everything.

 Stroller.



Yes, after a bunch of /etc/ settings, including network, locale, keyboard
layout, ..., but before building the kernel.

I think this time the kernel had no effect, since the stage-3 was working
perfectly, and then, during emerge -e, some applications started to
malfunction, and returned to work after a march change.

Thanks to your contribution
Francisco


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

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

 On 17/08/2013 08:38, Walter Dnes wrote:


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.


 While -march=native is generally good advice, GCC is not perfect and on
 occasion it can flags to be enabled that are not supported, resulting in
 the invalid instruction error.



Thanks, that is a good point to be aware of.

Francisco


Re: [gentoo-user] How to get video output in the same window as the interface

2013-08-17 Thread Alan McKinnon
On 17/08/2013 18:04, Andrew Lowe wrote:
 On 08/17/13 23:16, the wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 08/17/13 18:14, Andrew Lowe wrote:
 Hi all, I just did an emerge world and now my vlc interface has
 gone feral. Previously a double click on a video would bring up one
 window with the video in the centre and the controls surrounding
 it, play, stop, progress bar etc. Now when it starts up, I get two
 windows, one that contains the controls and a black rectangle with
 the vlc witch's hat in the middle and another with the video
 playing. I've tried all sorts of options but can't seem to find the
 right combo - I probably can't see the wood for the trees after
 playing around with it so much. Does anyone have any idea what the
 config option is so I can bring things back to how they were?

 VLC has different display modes.
 The availability of these modes is
 determined by use flags.
 can you please write which video modes are available?
 (tools - preferences - video - output )
 
 According to the above I have Output set to default. The second
 window, the video window, has as its window title:
 
 VLC (hardware YUV SDL output)
 
 My desktop environment is KDE 4. When doing the emerge world, I got a
 segmentation fault during the build. Some googling revealed the
 following forum topic:
 
 http://tinyurl.com/lgo9r7x
 
 I read the comment from alex46 @ 8:36pm, 14/6/2013 and rebuilt VLC with
 those USE flags. That is when the problem appeared. Silly me, I didn't
 notice that this was a two page topic and I had only read the first
 page. I'm now going to follow the steps from the second page and see
 what happens..
 
 Andrew

Some users are reporting build and runtime issues with vlc/amarok and a
few other bits and pieces with kde11. It's seemingly related to glib
event loop and plasma in some wonderful way that I haven't bothered
figuring out yet.

i.o.w. with current versions you may still not get it to build.
Try downgrading a few versions.


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




Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Grant
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 emerge udisks:2

 A SLOT is treated as two different packages that just happen to have the
 same name, so there's a :something appended to differentiate them.

 Other packages that use udisks will define which SLOT they DEPEND on in
 their ebuild, if it's important to distinguish them that way.

It looks like installing udisks-2 to SLOT 2 would mean installing into
a new slot.  I don't think that will fix the behavior I described
below.  I think I need to upgrade one of the currently installed
udisks slots to udisks-2.  Is that correct, or am I misunderstanding
and I should just follow your instructions?

- 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



Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Canek Peláez Valdés
On Sat, Aug 17, 2013 at 1:03 PM, Grant emailgr...@gmail.com wrote:
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 emerge udisks:2

 A SLOT is treated as two different packages that just happen to have the
 same name, so there's a :something appended to differentiate them.

 Other packages that use udisks will define which SLOT they DEPEND on in
 their ebuild, if it's important to distinguish them that way.

 It looks like installing udisks-2 to SLOT 2 would mean installing into
 a new slot.  I don't think that will fix the behavior I described
 below.  I think I need to upgrade one of the currently installed
 udisks slots to udisks-2.  Is that correct, or am I misunderstanding
 and I should just follow your instructions?

I think the issue here is that we are not understanding what the
problem is. It happens with an application in particular, or with a
desktop environment? It happens when you try to umount the device, or
when you disconnect it from the computer? Do you loose data in the
camera, or when transferring photos to your computer? Or is only that
you don't like the error reported?

udisks is deprecated and (AFAIK) unmaintained. Do you *really* need
it? Or perhaps is being pulled by a package that actually supports
udisks2, but you have a USE flag that pulls udisks1?

In GNOME, if you have gvfs with the gdu USE flag, it pulls libgdu,
which pulls udisks1. But you don't actually need it; everything is
covered by the udisks USE flag (which pulls udisks2).

Do a equery depends udisks and see what is pulling udisks1.

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] Re: Advice needed regarding udisks

2013-08-17 Thread Alan McKinnon
On 17/08/2013 20:03, Grant wrote:
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 emerge udisks:2

 A SLOT is treated as two different packages that just happen to have the
 same name, so there's a :something appended to differentiate them.

 Other packages that use udisks will define which SLOT they DEPEND on in
 their ebuild, if it's important to distinguish them that way.
 
 It looks like installing udisks-2 to SLOT 2 would mean installing into
 a new slot.  I don't think that will fix the behavior I described
 below.  I think I need to upgrade one of the currently installed
 udisks slots to udisks-2.  Is that correct, or am I misunderstanding
 and I should just follow your instructions?

You can't upgrade a slot, portage sees as if they were two different
packages. You can't upgrade firefox to chrome either for the same
reason. Instead, you unmerge the slot you do not want and fix everything
that remains (@preserved-rebuild, revdep-rebuild etc)

You haven't yet said which app you are using that won't umount the
camera, so it's a bit difficult to give proper advice. We'd need some
info first?

- what is the app in question?
- relevant USE flags it uses?
- what does it link to?
- does that pp support udisks:2?


 
 - 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
 


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




Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Grant
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 I think the issue here is that we are not understanding what the
 problem is. It happens with an application in particular, or with a
 desktop environment? It happens when you try to umount the device, or
 when you disconnect it from the computer? Do you loose data in the
 camera, or when transferring photos to your computer? Or is only that
 you don't like the error reported?

When trying to eject a USB camera in thunar in xfce4, the error
appears and the device does not umount.  Here is a command that also
produces the error:

# 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

 udisks is deprecated and (AFAIK) unmaintained. Do you *really* need
 it? Or perhaps is being pulled by a package that actually supports
 udisks2, but you have a USE flag that pulls udisks1?

 In GNOME, if you have gvfs with the gdu USE flag, it pulls libgdu,
 which pulls udisks1. But you don't actually need it; everything is
 covered by the udisks USE flag (which pulls udisks2).

 Do a equery depends udisks and see what is pulling udisks1.

I get the following:

# equery depends udisks
 * These packages depend on udisks:
gnome-base/gvfs-1.12.3-r1 (udisks ? =sys-fs/udisks-1.90:2)
gnome-base/libgdu-3.0.2 (=sys-fs/udisks-1.0*:0)

# emerge -pv gvfs libgdu
[ebuild   R] gnome-base/libgdu-3.0.2  USE=-avahi -doc -gnome-keyring 0 kB
[ebuild   R] gnome-base/gvfs-1.12.3-r1  USE=cdda gdu http udev
-afp -archive -avahi -bluetooth -bluray -doc -fuse -gnome-keyring
-gphoto2 -ios -samba (-udisks) 0 kB

- Grant



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

2013-08-17 Thread Alon Bar-Lev
On Sat, Aug 17, 2013 at 2:49 PM, Dan Johansson dan.johans...@dmj.nu wrote:
 On 16.08.2013 15:57, Canek Peláez Valdés wrote:
 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.


 And when we are at it, why not rename '/' to 'C:\' ?

Good one! :)

I guess this merge happening only because systemd...

Now the council expects people to:

1. maintain initramfs, it can be complex or simple task, depend on the
configuration.

2. place all disk and filesystem recovery utilities within initramfs.

3. or... prepare to use rescue cd every time something is broken.

Unclear why exactly we do have support in separate /usr.

Regards,
Alon



Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Canek Peláez Valdés
On Sat, Aug 17, 2013 at 2:00 PM, Grant emailgr...@gmail.com wrote:
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 I think the issue here is that we are not understanding what the
 problem is. It happens with an application in particular, or with a
 desktop environment? It happens when you try to umount the device, or
 when you disconnect it from the computer? Do you loose data in the
 camera, or when transferring photos to your computer? Or is only that
 you don't like the error reported?

 When trying to eject a USB camera in thunar in xfce4, the error
 appears and the device does not umount.  Here is a command that also
 produces the error:

 # 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

 udisks is deprecated and (AFAIK) unmaintained. Do you *really* need
 it? Or perhaps is being pulled by a package that actually supports
 udisks2, but you have a USE flag that pulls udisks1?

 In GNOME, if you have gvfs with the gdu USE flag, it pulls libgdu,
 which pulls udisks1. But you don't actually need it; everything is
 covered by the udisks USE flag (which pulls udisks2).

 Do a equery depends udisks and see what is pulling udisks1.

 I get the following:

 # equery depends udisks
  * These packages depend on udisks:
 gnome-base/gvfs-1.12.3-r1 (udisks ? =sys-fs/udisks-1.90:2)
 gnome-base/libgdu-3.0.2 (=sys-fs/udisks-1.0*:0)

 # emerge -pv gvfs libgdu
 [ebuild   R] gnome-base/libgdu-3.0.2  USE=-avahi -doc -gnome-keyring 0 
 kB
 [ebuild   R] gnome-base/gvfs-1.12.3-r1  USE=cdda gdu http udev
 -afp -archive -avahi -bluetooth -bluray -doc -fuse -gnome-keyring
 -gphoto2 -ios -samba (-udisks) 0 kB

Why is the udisks USE flag masked for gvfs? Try to emerge -C
sys-fs/udisks:0, and reemerge gvfs with USE=-gdu udisks. If you get
to emerge gvfs with the udisks USE flag and without the gdu one, I
believe your problem will go away.

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: Optional /usr merge in Gentoo

2013-08-17 Thread Andreas Eder
On 17 Aug 2013, the guard wrote:

  But requiring people to have an initramfs to boot a system
  that doesn't legitimately require it is silly. I don't even
  have /usr mounted separately, but there are many, many
  different system configurations out there and Gentoo is famous
  for supporting a wide variety. That variety is stomped on if
  something like a /usr merge is forced. It also makes building
  your default environment more complicated due to generating an
  initramfs.
 
 Absolutely agreed.

Might be a good time to switch to freebsd :-(
-- 
ceterum censeo redmondinem esse delendam.



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

2013-08-17 Thread Alon Bar-Lev
On Sat, Aug 17, 2013 at 10:22 PM, Andreas Eder andreas_e...@gmx.net wrote:
 On 17 Aug 2013, the guard wrote:

  But requiring people to have an initramfs to boot a system
  that doesn't legitimately require it is silly. I don't even
  have /usr mounted separately, but there are many, many
  different system configurations out there and Gentoo is famous
  for supporting a wide variety. That variety is stomped on if
  something like a /usr merge is forced. It also makes building
  your default environment more complicated due to generating an
  initramfs.

 Absolutely agreed.

 Might be a good time to switch to freebsd :-(

I agree. This is the only escape plan against the new wind of
dictation into monolithic approach that comes from systemd sponsors
direction.

Let's see how it turns out... if Linux userspace will become like the
Windows user space, then freebsd suddenly looks very promising
alternative.

Regards,
Alon



Re: [gentoo-user] Re: Advice needed regarding udisks

2013-08-17 Thread Alan McKinnon
On 17/08/2013 21:00, Grant wrote:
 This is actually a portage question.  How can I install udisks-2 in a
 way that will fix this problem?  I'm confused by how to handle the
 slotting behavior.

 I think the issue here is that we are not understanding what the
 problem is. It happens with an application in particular, or with a
 desktop environment? It happens when you try to umount the device, or
 when you disconnect it from the computer? Do you loose data in the
 camera, or when transferring photos to your computer? Or is only that
 you don't like the error reported?
 
 When trying to eject a USB camera in thunar in xfce4, the error
 appears and the device does not umount.  Here is a command that also
 produces the error:
 
 # 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
 
 udisks is deprecated and (AFAIK) unmaintained. Do you *really* need
 it? Or perhaps is being pulled by a package that actually supports
 udisks2, but you have a USE flag that pulls udisks1?

 In GNOME, if you have gvfs with the gdu USE flag, it pulls libgdu,
 which pulls udisks1. But you don't actually need it; everything is
 covered by the udisks USE flag (which pulls udisks2).

 Do a equery depends udisks and see what is pulling udisks1.
 
 I get the following:
 
 # equery depends udisks
  * These packages depend on udisks:
 gnome-base/gvfs-1.12.3-r1 (udisks ? =sys-fs/udisks-1.90:2)
 gnome-base/libgdu-3.0.2 (=sys-fs/udisks-1.0*:0)
 
 # emerge -pv gvfs libgdu
 [ebuild   R] gnome-base/libgdu-3.0.2  USE=-avahi -doc -gnome-keyring 0 
 kB
 [ebuild   R] gnome-base/gvfs-1.12.3-r1  USE=cdda gdu http udev
 -afp -archive -avahi -bluetooth -bluray -doc -fuse -gnome-keyring
 -gphoto2 -ios -samba (-udisks) 0 kB
^^^

There's your problem.

thunar depends on gvfs, which can use udisks, but in your case the USE
flag is forced, masked, or removed.

You need to find out why that happened, it might be a profile thing,
maybe it's a local config. Try

grep -r udisks /etc/portage/



 
 - Grant
 


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




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

2013-08-17 Thread staticsafe
On Sat, Aug 17, 2013 at 10:26:34PM +0300, Alon Bar-Lev wrote:
 On Sat, Aug 17, 2013 at 10:22 PM, Andreas Eder andreas_e...@gmx.net wrote:
  On 17 Aug 2013, the guard wrote:
 
   But requiring people to have an initramfs to boot a system
   that doesn't legitimately require it is silly. I don't even
   have /usr mounted separately, but there are many, many
   different system configurations out there and Gentoo is famous
   for supporting a wide variety. That variety is stomped on if
   something like a /usr merge is forced. It also makes building
   your default environment more complicated due to generating an
   initramfs.
 
  Absolutely agreed.
 
  Might be a good time to switch to freebsd :-(
 
 I agree. This is the only escape plan against the new wind of
 dictation into monolithic approach that comes from systemd sponsors
 direction.
 
 Let's see how it turns out... if Linux userspace will become like the
 Windows user space, then freebsd suddenly looks very promising
 alternative.
 
 Regards,
 Alon
 

Y'all are welcome to switch to Slackware. :)
-- 
staticsafe
O ascii ribbon campaign - stop html mail - www.asciiribbon.org
Please don't top post.
iPlease don't CC! I'm subscribed to whatever list I just posted on.



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

2013-08-17 Thread Alon Bar-Lev
On Sat, Aug 17, 2013 at 10:31 PM, staticsafe m...@staticsafe.ca wrote:
 On Sat, Aug 17, 2013 at 10:26:34PM +0300, Alon Bar-Lev wrote:
 On Sat, Aug 17, 2013 at 10:22 PM, Andreas Eder andreas_e...@gmx.net wrote:
  On 17 Aug 2013, the guard wrote:
 
   But requiring people to have an initramfs to boot a system
   that doesn't legitimately require it is silly. I don't even
   have /usr mounted separately, but there are many, many
   different system configurations out there and Gentoo is famous
   for supporting a wide variety. That variety is stomped on if
   something like a /usr merge is forced. It also makes building
   your default environment more complicated due to generating an
   initramfs.
 
  Absolutely agreed.
 
  Might be a good time to switch to freebsd :-(

 I agree. This is the only escape plan against the new wind of
 dictation into monolithic approach that comes from systemd sponsors
 direction.

 Let's see how it turns out... if Linux userspace will become like the
 Windows user space, then freebsd suddenly looks very promising
 alternative.

 Regards,
 Alon


 Y'all are welcome to switch to Slackware. :)

At 2000-2006 this what I actually used. it was the most configurable
distribution, then switched to Gentoo because it was mature and even
more customizable, easier to extend, while Slackware was on halt for
years.



[gentoo-user] Re: Question re: make.conf/profile location change

2013-08-17 Thread walt
On 08/11/2013 09:16 AM, Alan McKinnon wrote:

 On 11/08/2013 17:58, Tanstaafl wrote:
 I would assume that portage now looks first in /etc/portage and uses
 those if it finds them, and if not, looks in /etc - but the news item is
 incomplete on this question.

 
 
 My question is why do you have files in both locations?
 
 /etc is the old location, /etc/portage is the new location, so simply
 delete the one you do not want.

I love app-portage/ufed, but it was late in recognizing the new location
of make.conf.  I worked around the problem like this:

$ls -l /etc/make.conf
lrwxrwxrwx 1 root root 22 Dec  9  2012 /etc/make.conf - /etc/portage/make.conf

I should check to see if the simlink is still needed, but I'll fetch another
beer instead :)



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

2013-08-17 Thread Daniel Campbell
On 08/17/2013 02:26 PM, Alon Bar-Lev wrote:
 On Sat, Aug 17, 2013 at 10:22 PM, Andreas Eder andreas_e...@gmx.net wrote:
 On 17 Aug 2013, the guard wrote:

 But requiring people to have an initramfs to boot a system
 that doesn't legitimately require it is silly. I don't even
 have /usr mounted separately, but there are many, many
 different system configurations out there and Gentoo is famous
 for supporting a wide variety. That variety is stomped on if
 something like a /usr merge is forced. It also makes building
 your default environment more complicated due to generating an
 initramfs.

 Absolutely agreed.

 Might be a good time to switch to freebsd :-(
 
 I agree. This is the only escape plan against the new wind of
 dictation into monolithic approach that comes from systemd sponsors
 direction.
 
 Let's see how it turns out... if Linux userspace will become like the
 Windows user space, then freebsd suddenly looks very promising
 alternative.
 
 Regards,
 Alon
 

I've considered this as well. It's simply beyond me why so many people
are willing to drink the kool-aid from a *single upstream* and let them
shape the entire GNU/Linux landscape. It's one thing to support an
*option*, but quite another to *force* users to use this option. Systemd
itself doesn't look to be forced yet, but if the requirements for it are
forced onto users, forcing systemd afterwards would be child's play. I
saw this in action when I used Arch. It started with bash functions in
their init scripts calling some systemd tools. Then the /usr merge.
Eventually systemd itself was pushed. I'm beginning to lose confidence
that Gentoo will avoid the same fate as Arch. Even Debian is falling to
the systemd crowd. If this keeps up, it's only a matter of time before
systemd infects every Linux-based distribution and BSD will be the only
major free OS to avoid it. Red Hat may end up digging its claws into the
kernel itself. What will protect the Linux landscape, if not distros
like Gentoo that supposedly support user choice? Will all users who give
a damn be forced to run LFS or Slackware if they wish to use Linux as
their kernel? Maintain their own portage|pacman|deb repos and keep
systems free of systemd? Where does the madness end?



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

2013-08-17 Thread Nikos Chantziaras

On 13/08/13 21:32, Canek Peláez Valdés wrote:

On Tue, Aug 13, 2013 at 4:08 AM, Alessio Ababilov
ilovegnuli...@gmail.com wrote:

Hi!


Hi Alessio.


I wrote a script that allows /usr merge in Gentoo without changes to
ebuilds.

I described it in an article
http://aababilov.wordpress.com/2013/07/17/usr-merge-in-gentoo/

Are there any volunteers to test it? I use it on my computers for two
months.


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


I tend to agree.  And I still wonder why it's called /usr merge if it 
only affects /bin and /sbin.  If it's really a merge, shouldn't /lib 
also be affected?