Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Miroslav Rovis
On 161024-22:27+0200, Alarig Le Lay wrote:
> On Mon Oct 24 15:49:09 2016, Rich Freeman wrote:
> > Why not just share everything via bind mounts in this case?  I'd think
> > that would have less overhead than rsync/http and then you're not
> > storing files twice.
> 
> Because I have several host boxes and I build the packages on only one.

I used to have 3 (even 4) same-hardware machines (well same MBO really)
in daily use, and the local mirror is not an overkill long run. And if
you look for security, then also Air-Gapping and cloning is a perfect
solution, because you get a clean clone for online with an Air-Gapped
that does not see online...

Some peple like rather btrfs ...

I had written a lot about Air-Gapped and cloning on the Forums, but
maybe moderators would call it "blogging" if I gave you the link.

btrfs I never used OTOH.

-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr


signature.asc
Description: Digital signature


Re: [gentoo-user] Dirty COW, 4.4.8-hardened-r1 how to fix?

2016-10-24 Thread Miroslav Rovis
On 161021-11:04-0400, Rich Freeman wrote:
> On Fri, Oct 21, 2016 at 10:49 AM, Mick  wrote:
> > https://github.com/dirtycow/dirtycow.github.io/wiki/VulnerabilityDetails
> 
> Not yet:
> https://bugs.gentoo.org/show_bug.cgi?id=597624
> 

We are talking grsecurity-patched (kind of stable[*]) kernel sources,
the =sys-kernel/hardened-sources-4.4.8-r1 package [**].

I read most of the discussion, and I could easily patch the gup.c and
mm.h in question, but those files need to be patched before application
of the grsecurity patch, and that is a little more complex work.

Has anybody done this, as I have limited time available to practice user
patching (which in its simplest form, I was able to do here:
>=dev-libs/nss-3.24 - Add USE flag to enable SSL key 
https://bugs.gentoo.org/show_bug.cgi?id=587116#c2 ), in case it can be
done with user patching, of course.

Anyone?

Regards!
---
[*] kind of stable, because there are, since about 1 yrs ago, only
testing kernel available for the non-paying users ;-(

[**] I have to use 4.4.8.r1 because recent kernel all crash with libirt
and qemu which I am trying to use:
https://bugs.gentoo.org/show_bug.cgi?id=597554
-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr


signature.asc
Description: Digital signature


Re: [gentoo-user] I finally ditched acroread

2016-10-24 Thread Zhu Sha Zang
Hey dude, i have acroread installed but use okular since long time ago. 
In fact my i was in doubt if acroread still installed. I'll uninstall 
acroread, but how to recompile packages without 32-bit ABI? Is there a 
smart way or I need to change e recompile each one?



Best regards.


On 10/22/2016 09:32 PM, Grant Edwards wrote:

For the past several years, I've had to keep acroread installed on one
of my desktop machines because I occasionally need to use the "print
current view" feature to print a portion of a page of a PDF document
(usually a section of a sechematic or a table out of a data sheet).
Acroread is only available as a 32-bit binary and it required that
_89_ packages be built with a 32-bit ABI use flag.  [There are various
other reasons to dislike acroread, but that's the one the really
bugged me...]

When I noticed that the latest versions of Qoppa's PDFStudio has added
the "print current view" feature, I happily coughed up the $36 to
upgrade.

Emerge is now busy rebuilding those 89 packages without the 32-bit ABI
use flags.






Re: [gentoo-user] Networkmanager Auto Connect

2016-10-24 Thread Frank Steinmetzger
On Mon, Oct 24, 2016 at 12:25:14AM +0200, Frank Steinmetzger wrote:
> On Sat, Oct 15, 2016 at 06:18:13PM +0200, Silvio Siefke wrote:
> > On Sat, 15 Oct 2016 12:51:36 +0200
> > Alexander Openkowski  wrote:
> > 
> > > I have the same problem. Unfortunately, I do not know of any fix (did
> > > not have the time to really investigate the problem, yet). I connect
> > 
> > Yeah is not found really information, think will see is there a bug in
> > gnome panel. 
> > 
> > > to wireless networks manually in the meantime, which is getting on my
> > > nerves more and more every day. :-) 
> 
> I also noticed that my laptop didn’t autoconnect anymore. And even after
> connecting manually, I still saw a questionmark on the tray icon and incorrect
> connection information. Ultimately, ~/.xsession-errors tells us more:
> [...]
> Hoping the best, I upgraded to the still keyworded 1.4.2. That fixed it for 
> me.

Well, the question mark is gone once I am connect to a network. But I still
have those messages and no auto-reconnect. I downgraded to 1.0 for now until
I know more about the problem.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me with any social network.

Suicide is the most honest form of self-criticism.


signature.asc
Description: Digital signature


Re: [gentoo-user] emerge --sync

2016-10-24 Thread Dale
Jorge Almeida wrote:
> I want to do emerge --sync on computer A and then update computer B by
> copying /usr/portage. Is this safe? The point is: does emerge --sync
> just updates the contents of /usr/portage or does it also change
> something else ?
>
> TIA
>
> Jorge Almeida
>
>

This may be a solution.

net-proxy/http-replicator 

I've used it here in the past when I had two rigs. 

Dale

:-)  :-) 



Re: [gentoo-user] emerge --sync

2016-10-24 Thread Håkon Alstadheim
Den 24. okt. 2016 17:21, skrev Jorge Almeida:
> I want to do emerge --sync on computer A and then update computer B by
> copying /usr/portage. Is this safe? The point is: does emerge --sync
> just updates the contents of /usr/portage or does it also change
> something else ?
I have one box that I run emerge --sync on, and then export /usr/portage
with nfs to a few other gentoo boxes. Works well. For eix, you can do
eix-update on the nfs-clients. I have been experimenting with building
once and using the nfs-server as binhost. Small variations between the
boxes have so far made me abandon that, but a single version of
/usr/portage has given me no headaches.




Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Alarig Le Lay
On Mon Oct 24 15:49:09 2016, Rich Freeman wrote:
> Why not just share everything via bind mounts in this case?  I'd think
> that would have less overhead than rsync/http and then you're not
> storing files twice.

Because I have several host boxes and I build the packages on only one.

-- 
alarig


signature.asc
Description: Digital signature


Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Rich Freeman
On Mon, Oct 24, 2016 at 2:02 PM, Alarig Le Lay  wrote:
>
> I use a similar setup for LXC containers running over a gentoo box,
> except that my box is setted up to publish the binary packets on a
> specified directory that is accessible via HTTP. My LXCs take the binary
> packages from this HTTP location and do their normal stuff afterward.
> The host box is also a local rsync mirror.
>

Why not just share everything via bind mounts in this case?  I'd think
that would have less overhead than rsync/http and then you're not
storing files twice.

-- 
Rich



Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Alarig Le Lay
On Mon Oct 24 10:44:24 2016, Jorge Almeida wrote:
> My use case is basic: 2 home computers, I do emerge et. al. on the
> faster one and produce binary packages to be used on the other one,
> which doesn't even need distfiles, just portage tree plus binary
> packages.  I copy stuff between boxes with rsync via ssh. Simple
> enough and it seems to be working fine.

I use a similar setup for LXC containers running over a gentoo box,
except that my box is setted up to publish the binary packets on a
specified directory that is accessible via HTTP. My LXCs take the binary
packages from this HTTP location and do their normal stuff afterward.
The host box is also a local rsync mirror.

-- 
alarig


signature.asc
Description: Digital signature


Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Jorge Almeida
On Mon, Oct 24, 2016 at 9:56 AM, Rich Freeman  wrote:
> On Mon, Oct 24, 2016 at 12:45 PM, Jorge Almeida  wrote:
>> On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez  
>> wrote:
>>>
>>> But a more elegant solution is to emerge app-admin/gentoo-rsync-mirror and
>>> setup your own rsync mirror.
>>>
>>
>> Sure, but it seems kind of overkill.
>>
>
> It really depends on your situation.
>
> I run Gentoo containers and I typically just bind mount /usr/portage
> and distfiles from the host, and that works just fine.  When I was
> running Gentoo VMs I had rsync running on a Gentoo box and just shared
> out /usr/portage and put it at the front of my mirror list (I also
> shared distfiles via http I believe).  If you already have the
> services installed it is pretty trivial to set up either and it will
> speed things up.
>
> People will go even further if they have large number of Gentoo boxes
> and run their own repositories that isn't live-synced with Gentoo's,
> allowing for a testing/release cycle.
>
> In general though portage will figure out if any packages moved in the
> repo no matter how you sync it.
>

My use case is basic: 2 home computers, I do emerge et. al. on the
faster one and produce binary packages to be used on the other one,
which doesn't even need distfiles, just portage tree plus binary
packages.  I copy stuff between boxes with rsync via ssh. Simple
enough and it seems to be working fine.

Thanks

Jorge



Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Rich Freeman
On Mon, Oct 24, 2016 at 12:45 PM, Jorge Almeida  wrote:
> On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez  
> wrote:
>>
>> But a more elegant solution is to emerge app-admin/gentoo-rsync-mirror and
>> setup your own rsync mirror.
>>
>
> Sure, but it seems kind of overkill.
>

It really depends on your situation.

I run Gentoo containers and I typically just bind mount /usr/portage
and distfiles from the host, and that works just fine.  When I was
running Gentoo VMs I had rsync running on a Gentoo box and just shared
out /usr/portage and put it at the front of my mirror list (I also
shared distfiles via http I believe).  If you already have the
services installed it is pretty trivial to set up either and it will
speed things up.

People will go even further if they have large number of Gentoo boxes
and run their own repositories that isn't live-synced with Gentoo's,
allowing for a testing/release cycle.

In general though portage will figure out if any packages moved in the
repo no matter how you sync it.

-- 
Rich



Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Jorge Almeida
On Mon, Oct 24, 2016 at 9:36 AM, Fernando Rodriguez  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> On 10/24/2016 11:35 AM, Jorge Almeida wrote:
>> On Mon, Oct 24, 2016 at 8:29 AM, Martin Vaeth  wrote:
>>> Jorge Almeida  wrote:
 I want to do emerge --sync on computer A and then update computer B by
 copying /usr/portage. Is this safe?
>>>
>>> Yes, although ...
>>>
 does emerge --sync just updates the contents of /usr/portage
>>>
>>> portage also changes the content of /var/cache/edb, and in some
>>> cases even of /var/db or even of binary packages, but it will
>>> repeat the necessary steps automatically if only /usr/portage
>>> has changed.
>>>
>>>
>> Does this mean that the next time portage is used (e.g., as in "emerge
>> -p ...") it will detect that /usr/portage is not consistent with
>> /var/db... and will fix the latter?
>
> Yes. And you will see the same output that your see at the end of emerge
> - --sync (the profile updates phase, whatever it's called) when you run
> emerge. To update the eix database you need to run eix-update.

OK, looks good.

>
> But a more elegant solution is to emerge app-admin/gentoo-rsync-mirror and
> setup your own rsync mirror.
>

Sure, but it seems kind of overkill.

Thanks,

Jorge



Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Fernando Rodriguez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 10/24/2016 11:35 AM, Jorge Almeida wrote:
> On Mon, Oct 24, 2016 at 8:29 AM, Martin Vaeth  wrote:
>> Jorge Almeida  wrote:
>>> I want to do emerge --sync on computer A and then update computer B by
>>> copying /usr/portage. Is this safe?
>>
>> Yes, although ...
>>
>>> does emerge --sync just updates the contents of /usr/portage
>>
>> portage also changes the content of /var/cache/edb, and in some
>> cases even of /var/db or even of binary packages, but it will
>> repeat the necessary steps automatically if only /usr/portage
>> has changed.
>>
>>
> Does this mean that the next time portage is used (e.g., as in "emerge
> -p ...") it will detect that /usr/portage is not consistent with
> /var/db... and will fix the latter?

Yes. And you will see the same output that your see at the end of emerge
- --sync (the profile updates phase, whatever it's called) when you run
emerge. To update the eix database you need to run eix-update.

But a more elegant solution is to emerge app-admin/gentoo-rsync-mirror and
setup your own rsync mirror.


> Jorge
> 


- -- 

Fernando Rodriguez
-BEGIN PGP SIGNATURE-
Version: GnuPG v2

iQIcBAEBCAAGBQJYDjh0AAoJEPbOFX/5UlwckKsP+gJWRUQQvEzI9Zqu/6DXrCvw
tu3BMejUGngXr6ZAyMZZCXAqzNV1a9+4OrGTohwjYdwRMBni26yuapfGdKABw1kS
hVoM4yLwaos0VCET0gXUmQVWu8hnTgpTqOtFLEtCHjhr0NR1ic+xjr/B+edBxZUo
jNKjpARVggrD/IA56KFPUiRFtxnd2C4szmJH4pQuDoxrZg+mrnujGeMb8bIPmJ/f
yFYh/7hqwcFVUnt3YV0HUWv83FozXY+DdLEhZbAZTBtlaK1VhfjVaVPvbOVmVbpa
fFzYB4hz0gurhK/A3ulY5Upe7Gqpa5kimot2Ca70h2x1i7BSZoTUiBsDkvl0xqMT
YayMZ+FBzUZ+A+rv5v7cyXJCsiY7a9kTdzbR/gOl6joPEovna0MTMMK2mJFU8xW9
srsAFD1p1Fac8mkCvwdhTWt7yFJgkTf3kUC5l8/mY7WqzXh3Vki8IB+xI3/Zdohk
yjWRf4rCP3AKgQnbMV7f6R22GKmBvRcSTcO+L4W63UIotNeLb0eEZlWP5yQa+sfE
2nPSQZmR/HFlZ6ubUceFB/74FhgnZll9zHy76oIB53zQgslm9LRgypRX6S76G3CR
i7t26EWxVxK+GoGqan0nEyGKvwHorBfAPW8KC12nnany+7gtNQo3OcU7irJx+EXJ
qljNWt25JuLFwPHUBNxP
=26W6
-END PGP SIGNATURE-



[gentoo-user] Re: I finally ditched acroread

2016-10-24 Thread Grant Edwards
On 2016-10-23, Mick  wrote:
> On Sunday 23 Oct 2016 21:53:56 Grant Edwards wrote:
>> On 2016-10-23, Mick  wrote:
>> > On Sunday 23 Oct 2016 00:32:02 Grant Edwards wrote:
>> >>
>> >> For the past several years, I've had to keep acroread installed on one
>> >> of my desktop machines because I occasionally need to use the "print
>> >> current view" feature to print a portion of a page of a PDF document
>> >> (usually a section of a sechematic or a table out of a data sheet).
>> 
>> [...]
>> 
>> > I haven't used acroread or Qoppa's PDFStudio, but qpdfview and okular will
>> > copy and save selections as images, which you can save and print
>> > thereafter.
>> Does it save them in a vector format so that they scale and print
>> properly, or does it rasterize them?
>
> Ahh!  These apps offer Save As png/jpeg formats only.

That can be useful if there aren't any other options, but it tends to
be a hassle.  You have to crank up the DPI setting pretty high on the
rasterization operation, and then you end up with image files that
some printers seem to choke on. Our (admittedly ancient) LasertJet
8150 seems to be particulary bad handling large, hi-DPI image files.

-- 
Grant Edwards   grant.b.edwardsYow! HOORAY, Ronald!!
  at   Now YOU can marry LINDA
  gmail.comRONSTADT too!!




Re: [gentoo-user] Re: emerge --sync

2016-10-24 Thread Jorge Almeida
On Mon, Oct 24, 2016 at 8:29 AM, Martin Vaeth  wrote:
> Jorge Almeida  wrote:
>> I want to do emerge --sync on computer A and then update computer B by
>> copying /usr/portage. Is this safe?
>
> Yes, although ...
>
>> does emerge --sync just updates the contents of /usr/portage
>
> portage also changes the content of /var/cache/edb, and in some
> cases even of /var/db or even of binary packages, but it will
> repeat the necessary steps automatically if only /usr/portage
> has changed.
>
>
Does this mean that the next time portage is used (e.g., as in "emerge
-p ...") it will detect that /usr/portage is not consistent with
/var/db... and will fix the latter?

Jorge



[gentoo-user] Re: emerge --sync

2016-10-24 Thread Martin Vaeth
Jorge Almeida  wrote:
> I want to do emerge --sync on computer A and then update computer B by
> copying /usr/portage. Is this safe?

Yes, although ...

> does emerge --sync just updates the contents of /usr/portage

portage also changes the content of /var/cache/edb, and in some
cases even of /var/db or even of binary packages, but it will
repeat the necessary steps automatically if only /usr/portage
has changed.




[gentoo-user] emerge --sync

2016-10-24 Thread Jorge Almeida
I want to do emerge --sync on computer A and then update computer B by
copying /usr/portage. Is this safe? The point is: does emerge --sync
just updates the contents of /usr/portage or does it also change
something else ?

TIA

Jorge Almeida



Re: [gentoo-user] perl-cleaner output

2016-10-24 Thread Andrew Savchenko
On Fri, 7 Oct 2016 09:30:01 -0700 Daniel Frey wrote:
> So, I was upgrading several machines, and as a habit I always run
> perl-cleaner. Every machine gave me an output like so with somewhat
> different package lists:
> 
> 
> *
> * It seems like perl-cleaner had to rebuild some packages.
> *
> * If you have just updated your major Perl version (e.g. from 5.20.2 to
> 5.22.0)
>,
> * and have run perl-cleaner _after_ that update, then this means most likely
> * that these packages are buggy. Please file a bug on
> http://bugs.gentoo.org/ and
> * report that perl-cleaner needed to reinstall the following list:
> *sys-apps/texinfo:0
> dev-perl/libintl-perl:0
> dev-perl/Text-Unidecode:0
> dev-perl/Locale-gettext:0
> dev-perl/Unicode-EastAsianWidth:0
> dev-perl/XML-Parser:0
> 
> 
> 
> I'm happy to file a bug but what should I file it against? perl-cleaner?
> perl itself? All of these were triggered after the upgrade to 5.22.0.

No, bugs should be file for each package listed:
dev-perl/libintl-perl:0
dev-perl/Text-Unidecode:0
dev-perl/Locale-gettext:0
dev-perl/Unicode-EastAsianWidth:0
dev-perl/XML-Parser:0
 
Of course, you should check if such bugs already exist or packages
are already fixed.

Best regards,
Andrew Savchenko


pgpVIbg6LeIfK.pgp
Description: PGP signature


Re: [gentoo-user] screen tearing with mpv but not mplayer

2016-10-24 Thread Michael Mol
On Saturday, October 22, 2016 05:28:22 AM David Haller wrote:
> Hello,
> 
> On Fri, 21 Oct 2016, Behrouz Khosravi wrote:
> >> $ mplayer foo.mp4 | grep '^VO: '
> >> VO: [gl] ...
> >> $ mpv  foo.mp4 | grep '^VO: '
> >> VO: [opengl]
> >> 
> >> See 'mplayer -vo help' and 'mpv -vo help'.
> >
> >Thanks. It seems that mplayer is using "xv" and mpv uses "opengl-hq". mpv
> >work ok with "xv" but quality degrades a little, or at least I think that
> >it does.
> 
> Are you sure? Albeit, I'm not familiar with mpv.
> 
> Try 'opengl', 'opengl-old'... But 'xv' should be just as good. Maybe
> there's some filter (deblocking/deringing/denoise) active with one but
> not with 'xv'.
> 
> And I've IIRC used plain 'x11' (or was it 'xv'?) for a very long time.

Unless things have changed massively in the last 3-4 years, you almost 
certainly were using xv without really knowing about it. With just 'x11', 
you're forced into using software scaling instead of hardware scaling, which 
massively slows things down. And hardware scaling has been a feature of 
essentially every video card since, I dunno, 1994 or earlier? And the xv 
extension has been available since 1991...

-- 
:wq

signature.asc
Description: This is a digitally signed message part.