Re: [gentoo-user] keepassxc 2.6.0 strange rendering

2020-07-10 Thread Francesco Turco
On Fri, Jul 10, 2020, at 11:40, Tamer Higazi wrote:
> I wanted to try keepassxc 2.6.0, but the output looks really nonsense 
> and the output looks entirely "broken".

I mostly fixed the problem on my system with the following steps:
1. I installed the Breeze theme (kde-frameworks/breeze-icons)
2. I applied the Breeze theme system-wide with qt5ct
3. I restarted KeePassXC

-- 
https://fturco.net/



Re: [gentoo-user] WARNING: One or more updates/rebuilds have been skipped due to a dependency conflict

2020-07-03 Thread Francesco Turco
On Sat, Jul 4, 2020, at 06:35, Valmor F. de Almeida wrote:
> Is there a problem ignoring the warning below? My understanding here is 
> that dev-python/docutils-0.16 wants a python2_7 target built that is not 
> in the scheduled merge (only python3_7 is). Hopefully this dependency 
> conflict will fix itself as python2 goes away.

Please see: https://bugs.gentoo.org/722762

-- 
https://fturco.net/



Re: [gentoo-user] Encrypted drive setup at login and locking on logout.

2020-07-03 Thread Francesco Turco
On Sat, Jul 4, 2020, at 04:23, Dale wrote:
>  Now that I have a spare drive, I want to encrypt it and have a mount point 
> for it, /home/dale/documents for example. What I'd like to do, when I login 
> in, it asks me for the encryption password and then mounts it. When I log 
> out, it reverses. I'm not doing all of /home because I want to separate some 
> info. I may do it later. 

I would use LUKS (warning: all data on the spare drive will be lost):
0. Partition the spare drive: parted /dev/sdx
1. Format the drive's partition with LUKS: cryptsetup luksFormat /dev/sdxn
2. Decrypt the LUKS partition: cryptsetup luksOpen /dev/sdxn documents
3. Create a filesystem on the decrypted partition: mke2fs -t ext4 -m 0 
/dev/mapper/documents
4. Add the new filesystem to /etc/fstab (use the UUID for easier matching)
5. Mount the filesystem: mount /home/dale/documents

In order to close the filesystem, you need the following steps:
1. Unmount the filesystem: umount /home/dale/documents
2. Lock the LUKS partition: cryptsetup luksClose documents

Since you use KDE you may try Vault instead, but I haven't tested that 
personally.

-- 
https://fturco.net/



Re: [gentoo-user] printing pdfs

2020-05-30 Thread Francesco Turco
On Sat, May 30, 2020, at 14:54, james wrote:
> # qlist -ICv dev-qt/
> dev-qt/designer-5.14.2
> dev-qt/linguist-5.14.2
> dev-qt/linguist-tools-5.14.2
> dev-qt/qt-creator-4.8.2
> dev-qt/qt-docs-5.14.2_p202003291239
> dev-qt/qt3d-5.14.2
> dev-qt/qtchooser-66
> dev-qt/qtconcurrent-5.14.2
> dev-qt/qtcore-5.14.2
> dev-qt/qtdatavis3d-5.14.2
> dev-qt/qtdbus-5.14.2
> dev-qt/qtdeclarative-5.14.2
> dev-qt/qtdiag-5.14.2
> dev-qt/qtgraphicaleffects-5.14.2
> dev-qt/qtgui-5.14.2
> dev-qt/qthelp-5.14.2
> dev-qt/qtimageformats-5.14.2
> dev-qt/qtlockedfile-2.4.1_p20171024
> dev-qt/qtmultimedia-5.14.2
> dev-qt/qtnetwork-5.14.2
> dev-qt/qtopengl-5.14.2
> dev-qt/qtpositioning-5.14.2
> dev-qt/qtprintsupport-5.14.2
> dev-qt/qtquickcontrols-5.14.1
> dev-qt/qtscript-5.14.2
> dev-qt/qtsingleapplication-2.6.1_p20171024
> dev-qt/qtsql-5.14.2
> dev-qt/qtsvg-5.14.1
> dev-qt/qttest-5.14.2
> dev-qt/qtwayland-5.14.2
> dev-qt/qtwebchannel-5.14.2
> dev-qt/qtwebengine-5.14.2
> dev-qt/qtwebkit-5.212.0_pre20200309-r1
> dev-qt/qtwidgets-5.14.2
> dev-qt/qtx11extras-5.14.2

Most of your Qt packages have the 5.14.2 version, except dev-qt/qtquickcontrols 
and dev-qt/qtsvg which are still at 5.14.1. Please try upgrading them:

# emerge -av1 =dev-qt/qtquickcontrols-5.14.2 =dev-qt/qtsvg-5.14.2

-- 
https://fturco.net/



Re: [gentoo-user] printing pdfs

2020-05-29 Thread Francesco Turco
On Fri, May 29, 2020, at 01:04, james wrote:
> (dev-qt/qtcore-5.15.0:5/5.15.0::gentoo, ebuild scheduled for merge) 
> USE="icu -debug -old-kernel (-systemd) -test" ABI_X86="(64)" conflicts with
>  ~dev-qt/qtcore-5.14.2:5/5.14.2= required by 
> (dev-qt/qtnetwork-5.14.2:5/5.14::gentoo, installed) USE="ssl -bindist 
> -connman -debug -gssapi -libproxy -networkmanager -sctp -test" 
> ABI_X86="(64)"
>  ^^^
>  ~dev-qt/qtcore-5.14.2 required by 
> (dev-qt/qtgraphicaleffects-5.14.2:5/5.14::gentoo, installed) USE="-debug 
> -test" ABI_X86="(64)"
>  ^  ^^
>  ~dev-qt/qtcore-5.14.2:5= required by 
> (dev-qt/qtxml-5.14.2:5/5.14::gentoo, installed) USE="-debug -test" 
> ABI_X86="(64)"
>  ^  ^^
>  ~dev-qt/qtcore-5.14.2:5/5.14.2= required by 
> (dev-qt/qtdiag-5.14.2:5/5.14::gentoo, installed) USE="network widgets 
> -debug -test" ABI_X86="(64)"

Please try with:

# emerge -av1 $(eix --category dev-qt --installed --only-names)

You may also try adding the -n (--noreplace) emerge option if you want.

-- 
https://fturco.net/



Re: [gentoo-user] printing pdfs

2020-05-28 Thread Francesco Turco
On Thu, May 28, 2020, at 22:11, james wrote:
> So what application/strategy gets me past errors like this:
> 
> "Cannot mix incompatible Qt library (version 0x50e01) with this library 
> (version 0x50e02)"

Which application are you printing from?
I guess it's a Qt application. In that case, please verify that all packages in 
the dev-qt category on your system have the same version number.

You can use eix, for example:

$ eix --category dev-qt --installed --compact

-- 
https://fturco.net/



Re: [gentoo-user] jack vs jack2 USE-flag-wise?

2020-05-15 Thread Francesco Turco
On Fri, May 15, 2020, at 13:51, tu...@posteo.de wrote:
> I want to set 'jack' as a default USE flag - bu my system is a 
> multicore/multithreaded on...so I need not jack aka 
> 
> media-sound/jack-audio-connection-kit
> 
> but I think I need this one:
> 
> * media-sound/jack2
> Description: Jackdmp jack implemention for 
> multi-processor machine
> 
> what USE flag pulls this one instead the first one?

Some packages depend on virtual/jack.
The virtual/jack ebuild depends on either media-sound/jack-audio-connection-kit 
or media-sound/jack2.
So if you prefer the latter, just install it and uninstall the former.
But please note that some other packages depend specifically on 
media-sound/jack-audio-connection-kit when the "jack" USE flag is enabled.
So perhaps you cannot avoid keeping both.

-- 
https://fturco.net/



Re: [gentoo-user] Getting rid of unwanted languages (Was: Re: gimp help not available, even with USE doc)

2020-05-04 Thread Francesco Turco
On Mon, May 4, 2020, at 20:11, Michael Jones wrote:
> I can't find any documentation on the use of "LANG" or "LANGUAGE" in 
> /etc/portage/make.conf.
> 
> I'm looking here: https://wiki.gentoo.org/wiki//etc/portage/make.conf#LINGUAS
> 
> Is there another source that describes these variables and how to use them? 

Please see: https://wiki.gentoo.org/wiki/Localization/Guide

-- 
https://fturco.net/



Re: [gentoo-user] EINVAL

2020-04-28 Thread Francesco Turco
> Unable to unshare: EINVAL (for FEATURES="ipc-sandbox network-sandbox 
> pid-sandbox")

Is the CONFIG_UTS_NS kernel option enabled?

See the following forums threads for details:
https://forums.gentoo.org/viewtopic-t-260.html
https://forums.gentoo.org/viewtopic-t-1094424.html

-- 
https://fturco.net/



Re: [gentoo-user] complete switch from openssl to libressl on gentoo

2020-04-17 Thread Francesco Turco
> However, is there a good reason for opting for libressl instead of the 
> ubiquitous openssl?

I haven't tried libressl yet, but the main reason I'm interested in trying it 
is due to the fact it doesn't have a "bindist" USE flag. In fact some packages 
require openssl to be built with the "-bindist" USE flag, but I don't like 
that. By switching to libressl I hope to work around that problem.

-- 
https://fturco.net/



Re: [gentoo-user] Question about handling filenames with "illegal" characters...

2020-04-16 Thread Francesco Turco
On Thu, Apr 16, 2020, at 17:15, tu...@posteo.de wrote:
> Normally I would replace the asd* with the according
> 
> find . -name 'asd*' -print0 | 
> 
> but I got in trpuble, because "do_something" 
> now misunderstood the whole thing.

What about the following command?

find . -name 'asd*' -print0 | xargs -0 

-- 
https://fturco.net/



Re: [gentoo-user] Desktop-no-multilib profile - possible?

2020-02-20 Thread Francesco Turco
On Wed, Feb 19, 2020, at 22:21, Holger Hoffstätte wrote:
> I will never ever run 32bit software again and would really like to have
> a desktop-no-multilib profile, in sync with the regular desktop but simply
> without the multilib goop. My server is running precisely as I want with
> plain no-multilib, and I know I could just copy my USE flags over and
> maintain my own "self-made-desktop" settings, but that would mean I'd lose
> all the defaults and ongoing updates, which *are* kind of nice.

I think you should try creating a local custom combined profile.

For example I needed to create a systemd + no-multilib profile.
I called this custom profile "fturco" (my username, but of course you can 
choose any name).

I created the /var/db/repos/fturco/profiles/fturco/parent file with the 
following lines:

> ../../../gentoo/profiles/default/linux/amd64/17.1/systemd
> ../../../gentoo/profiles/default/linux/amd64/17.1/no-multilib

/var/db/repos/fturco is the directory with my local custom gentoo repository.
../../../gentoo points to /var/db/repos/gentoo, which is the official gentoo 
repository.

I also needed to create the 
/var/dotfiles/db/repos/fturco/profiles/profiles.desc file with the following 
line:

> amd64 fturco stable

At this point you can set your profile with eselect profile, and then update 
the system with:

emerge -uDNav @world



Re: [gentoo-user] net-nds/rpcbind-1.2.5 build failure

2020-01-11 Thread Francesco Turco
On Sat, Jan 11, 2020, at 11:22, k...@aspodata.se wrote:
>  Soo, why don't I have it???

Did you enable the "rpc" USE flag for sys-fs/quota?

-- 
https://fturco.net/



Re: [gentoo-user] net-nds/rpcbind-1.2.5 build failure

2020-01-11 Thread Francesco Turco
On Sat, Jan 11, 2020, at 09:16, k...@aspodata.se wrote:
>  From net-nds/rpcbind-1.2.5/temp/build.log:
> x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"rpcbind\" [...] -c -o 
> src/security.o src/security.c
> src/security.c:27:10: fatal error: rpcsvc/rquota.h: No such file or 
> directory
>  #include 
> 
>  Where can I find that header file ?

According to the portagefilelist.de website, either in sys-libs/glibc or in 
sys-fs/quota.

-- 
https://fturco.net/



Re: [gentoo-user] Copying files from one encfs directory to another encfs directory

2019-12-21 Thread Francesco Turco
> this seems to work (its still running).
> But for what reasons do cp & friends fail?

I have no idea, unfortunately...

-- 
https://fturco.net/



Re: [gentoo-user] Copying files from one encfs directory to another encfs directory

2019-12-21 Thread Francesco Turco
> When I try to copy files (cp or via two tars piped together) from
> one directory to the other I get "permission denied" -- with
> both directories I am owner and read/write permissions.

For directories, the +x permission is also needed.
 
> How can I copy a large quantity of files between the directories
> without using temprary storage somewhere else?

Have you tried with rsync?

-- 
https://fturco.net/



Re: [gentoo-user] force re-cythonizing in an ebuild

2019-11-19 Thread Francesco Turco
On Tue, Nov 19, 2019, at 01:09, Neil Bothwick wrote:
> On Mon, 18 Nov 2019 14:35:18 +0100, Helmut Jarausch wrote:
> find -xdev / -name '*.pyx' | xarge emerge --oneshot --ask

You probably meant "xargs" instead of "xarge".

-- 
https://fturco.net/



Re: [gentoo-user] where is /usr/portage?

2019-11-11 Thread Francesco Turco
On Mon, Nov 11, 2019, at 14:00, Dale wrote:
> root@fireball / # cat /etc/make.conf | grep var
> PORT_LOGDIR=/var/log/portage/
> source /var/lib/layman/make.conf
> DISTDIR="/var/cache/portage/distfiles/"
> PKGDIR="/var/cache/portage/packages"
> PORTDIR="/var/cache/portage/tree"

I'm sure you already know that, but that's an example of a useless use of cat.

The following command is better:
# grep var /etc/make.conf

:-)

-- 
https://fturco.net/



Re: [gentoo-user] does emerge always rebuild

2019-11-10 Thread Francesco Turco
On Sun, Nov 10, 2019, at 12:09, n952162 wrote:
> --new-use isn't on my man page

It's spelled --newuse, or simply -N.

-- 
https://fturco.net/



Re: [gentoo-user] does emerge always rebuild

2019-11-10 Thread Francesco Turco
On Sun, Nov 10, 2019, at 11:18, n952162 wrote:
> even if the package was just emerged?

What are you trying to do exactly?
Please post the emerge commands you are running, along with their output.

-- 
https://fturco.net/



Re: [gentoo-user] Re: problem dropping Python 2.7

2019-09-13 Thread Francesco Turco
On Fri, Sep 13, 2019, at 09:21, Philip Webb wrote:
> Thanks ! -- in  16 years  using Gentoo, I've never come across eclasses.
> I see they are listed in  /usr/portage/eclass .
> Is there a doc which describes what they are & what they do ?

https://wiki.gentoo.org/wiki/Eclass
https://devmanual.gentoo.org/

-- 
https://fturco.net/



Re: [gentoo-user] escape from i3lock

2019-07-10 Thread Francesco Turco
On Wed, Jul 10, 2019, at 19:04, Ian Zimmerman wrote:
> Here is my next "low information" question, haha.
> 
> I use i3lock which is like Xscreensaver but much much simpler; it plays
> no movies or games, just blanks the screen with a configured color or
> image.  To unlock it you have to type your password.
> 
> It bothers me that even when i3lock has locked the X session, I can
> still switch to other Linux virtual consoles with Alt-Control-F ,
> without typing the password.  It so happens that on one of the other
> virtual consoles there is often an interactive root shell :-P
> 
> So, is it possible to prevent virtual console switching while the X
> screen is locked, but still allow it at other times?  Looks like
> something the locker program would have to do, not the X server; but
> again I don't know much about this stuff.

A command such as physlock can be used to lock virtual terminals:
- https://github.com/muennich/physlock
- https://packages.gentoo.org/packages/app-misc/physlock

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] Human configurable boot loader, OR useful grub2 documentation

2019-07-05 Thread Francesco Turco
On Fri, Jul 5, 2019, at 08:05, mad.scientist.at.la...@tutanota.com wrote:
> So, is there either a boot loader that a human can configure manually 
> that can handle LUKS partitions?  No uefi, but GPT would be nice.

I have a LUKS-encrypted system, GPT partitions, no UEFI, systemd, dracut, btrfs.

I always manually create a /boot/grub/grub.cfg configuration file without using 
the grub-mkconfig command:

timeout=-1
menuentry 'Linux-libre 5.1.15' {
  linux /@i3/vmlinuz-5.1.15-gnu 
rd.luks.uuid=luks-e384faa4-d3ad-4171-b38e-8961bddab43f 
root=UUID=90a73cbd-f378-4424-93d9-661cbfec9e5a rootfstype=btrfs 
rootflags=subvol=@i3 init=/lib/systemd/systemd quiet loglevel=3 
rd.vconsole.keymap=it
  initrd /@i3/initramfs-5.1.15-gnu.img
}

It is pretty simple compared to what grub-mkconfig usually generates, and it 
works pretty well.

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] sys-apps/dtc-1.5.0 install failure

2019-05-29 Thread Francesco Turco
On Wed, May 29, 2019, at 13:30, k...@aspodata.se wrote:
> Part of portage_tmpdir/portage/sys-apps/dtc-1.5.0/temp/build.log:
> ...
> x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. 
> -Wl,-O1 -Wl,--as-needed -O2 -pipe -fPIC -Wall -Wpointer-arith 
> -Wcast-qual -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes 
> -Wredundant-decls -Wshadow -I/usr/include/valgrind -fPIC -Wall 
> -Wpointer-arith -Wcast-qual -Wnested-externs -Wstrict-prototypes 
> -Wmissing-prototypes -Wredundant-decls -Wshadow -I/usr/include/valgrind 
> build/temp.linux-x86_64-2.7/libfdt_wrap.o -L../libfdt -L/usr/lib64 
> -lfdt -lpython2.7 -o build/lib.linux-x86_64-2.7/_libfdt.so
> running install_lib
> copying build/lib.linux-x86_64-2.7/libfdt.py -> 
> /usr/lib64/python2.7/site-packages
>  * ACCESS DENIED:  fopen_wr: 
> /usr/lib64/python2.7/site-packages/libfdt.py
> error: [Errno 13] Permission denied: 
> '/usr/lib64/python2.7/site-packages/libfdt.py'
> make[1]: *** [pylibfdt/Makefile.pylibfdt:24: install_pylibfdt] Error 1
> make[1]: Leaving directory 
> '/Net/portage_tmpdir/portage/sys-apps/dtc-1.5.0/work/dtc-1.5.0'
> make: *** [Makefile:231: maybe_install_pylibfdt] Error 2
>  * ERROR: sys-apps/dtc-1.5.0::gentoo failed (install phase):
>  *   emake failed
>  * 
> ...
> 
> Why does the install fail, I have no problem creating that file by hand 
> (as in touch ), why does a simple thing like copy fail ?

I don't know how to solve this problem, but it has already been reported:

https://bugs.gentoo.org/686852

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] ...I not allowed to make pdfs from images??????

2018-12-08 Thread Francesco Turco
On Sat, Dec 8, 2018, at 14:23, tu...@posteo.de wrote:
> from some images I want to create a pdf.

I successfully use img2pdf: https://gitlab.mister-muffin.de/josch/img2pdf
It's also in the main Gentoo repository.

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] Software for checking CDs and DVDs for errors?

2018-12-03 Thread Francesco Turco
On Mon, Dec 3, 2018, at 17:27, Pouru Lasse wrote:
> I've got a bunch of scratched disc-based games (PS2, Xbox 360) that I'd
> like to check for errors. Is there any program for Linux that does this?
> I found and tried dvdisaster, but it only works for CDs, not
> DVDs. Everything else seems to be Windows-only.

ddrescue?

-- 
https://fturco.gitlab.io/



Re: [gentoo-user] LibreOffice and openldap

2018-07-24 Thread Francesco Turco
On Tuesday, 24 July 2018 17.15.29 CEST Andrew Lowe wrote:
>   Anyone got any insight?

Upstream bug: https://bugs.documentfoundation.org/show_bug.cgi?id=71538

-- 
https://fturco.gitlab.com/

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


Re: [gentoo-user] Multiboot USB - GRUB2 loop device

2018-07-14 Thread Francesco Turco
On Saturday, 14 July 2018 04.14.07 CEST Alex Luehm wrote:
> I've recently taken it upon myself to create a multiboot USB with isos
> that I tend to frequently use. So far I've been successful in adding
> Clonezilla and the Archlinux live ISOs. I've attempted to add the Gentoo
> install ISO in a similar manner (helped with the grub config within the
> iso itself but can't seem to get GRUB to recogonize the image. My
> DuckDuckGo-foo has returned useless results (a near hit, yet useless
> inquiry being found here:
> https://forums.gentoo.org/viewtopic-p-6527390.html).

You may find the following projects interesting:
- https://github.com/aguslr/multibootusb
- https://github.com/thias/glim

The first project contains GRUB configurations for both Gentoo and System 
Rescue CD while the second one only contains GRUB configurations for System 
Rescue CD.

Please note I haven't tried anything yet. It's just on my (long) todo list.

-- 
https://fturco.gitlab.com/

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


Re: [gentoo-user] Using an old kernel .config as the basis for a new .config

2017-12-28 Thread Francesco Turco
On Thu, Dec 28, 2017, at 20:52, Alan Mackenzie wrote:
> There is some way of initialising a new kernel .config from an existing
> one, I am sure, but I can't find it.  I've looked at the Gentoo wiki,
> I've looked at (some of) the kernel's own documentation.  The nearest I
> can find is make oldconfig, which supposedly does what I want, but it
> just seems to start off with a default .config and go through the
> hundreds of questions one at a time.

What about: make olddefconfig
?



Re: [gentoo-user] BINPKG_COMPRESS portage variable

2017-09-01 Thread Francesco Turco
On Fri, Sep 1, 2017, at 11:28, Stroller wrote:
> That doesn't sound right. I'd file a report at bugs.gentoo.org

Done: https://bugs.gentoo.org/show_bug.cgi?id=629538

-- 
https://www.fturco.net/



[gentoo-user] BINPKG_COMPRESS portage variable

2017-08-31 Thread Francesco Turco
Hello.

I just set BINPKG_COMPRESS="xz" in /etc/portage/make.conf in order to
compress binary packages with the xz algorithm. It seems to work, but
binary packages filenames still end with .tbz2 instead of .txz. How can
I change that?

Example:

# file /var/portage/packages/media-sound/pulseaudio-10.0.tbz2 
/var/portage/packages/media-sound/pulseaudio-10.0.tbz2: XZ compressed
data

I'm using sys-apps/portage-2.3.8.

Thanks.

-- 
https://www.fturco.net/



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 20.16.02 CEST, Francesco Turco wrote:
The point is I can't find any reference to the bindist USE flag 
in the bitcoin-qt ebuild:


$ grep bindist $(equery which bitcoin-qt)
$ # returns nothing


I found out that it's probably due to the OPENSSL_DEPEND variable in 
/var/portage/repos/gentoo/eclass/bitcoincore.eclass:


OPENSSL_DEPEND="!libressl? ( dev-libs/openssl:0[-bindist] ) libressl? ( 
dev-libs/libressl )"


So I could fix the problem by switching to libressl instead of openssl. I 
already tried that in the past but I had some problems. I may try again in 
the future.


--
https://www.fturco.net/



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 23.57.09 CEST, Alan McKinnon wrote:

Why on $DEITY's green earth would you even think of doing that?

Dont. Just ... don't. I don;t know what you are trying to accomplish
doing that, but it can't end well.


I'm not quite sure, but as far as I know (binary) packages with the 
-bindist USE flag cannot be freely distributed because of licensing issues 
or patents. Since I prefer for my system to be as free as possible (as in 
freedom) I thought I could achieve that by enabling +bindist globally. Am I 
wrong perhaps?


--
https://www.fturco.net/



Re: [gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-09 Thread Francesco Turco

On Saturday, 8 April 2017 21.15.05 CEST, Mick wrote:
Did you try setting USE="-bindist" and then emerging the three packages 
suggested by portage above?


net-misc/openssh
dev-qt/qtnetwork
dev-libs/openssl


Thanks for the suggestion. I chose to enable +bindist globally in make.conf 
but add the following exceptions in package.use:


dev-libs/openssl -bindist
net-misc/openssh -bindist
dev-qt/qtnetwork -bindist

--
https://www.fturco.net/



[gentoo-user] bitcoin-qt, openssl and the bindist USE flag

2017-04-08 Thread Francesco Turco
I'm trying to globally enable the "bindist" USE flag on my system, but it 
seems net-p2p/bitcoin-qt wants -bindist:


### BEGIN ###

# USE="bindist" emerge -uDNav @world --with-bdeps=y

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R] dev-libs/openssl-1.0.2k::gentoo  USE="asm bindist* 
tls-heartbeat zlib -gmp -kerberos -rfc3779 -sctp -sslv2 -sslv3 -static-libs 
{-test} -vanilla" ABI_X86="(64) -32 (-x32)" CPU_FLAGS_X86="(sse2)" 0 KiB
[ebuild   R] media-libs/freetype-2.7.1-r2:2::gentoo  USE="X adobe-cff 
bindist* bzip2 cleartype_hinting png -debug -doc -fontforge -harfbuzz 
-infinality -static-libs -utils" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R] net-misc/openssh-7.5_p1-r1::gentoo  USE="X bindist* hpn 
pam pie ssl -X509 -audit -debug -kerberos -ldap -ldns -libedit -libressl 
-livecd -sctp (-selinux) -skey -ssh1 -static {-test}" 0 KiB
[ebuild   R] dev-qt/qtnetwork-5.7.1:5/5.7::gentoo  USE="bindist* ssl 
-connman -debug -libproxy -networkmanager {-test}" 0 KiB
[ebuild   R] media-libs/mesa-17.0.3::gentoo  USE="bindist* classic dri3 
egl gallium gbm nptl -d3d9 -debug -gles1 -gles2 -llvm -opencl -openmax 
-osmesa -pax_kernel -pic (-selinux) -vaapi -valgrind -vdpau -vulkan 
-wayland -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="i915 intel 
(-freedreno) -i965 -imx -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi 
(-vc4) (-vivante) -vmware" 0 KiB
[ebuild   R] dev-qt/qtwebengine-5.7.1-r1:5/5.7::gentoo  USE="alsa 
bindist* system-ffmpeg system-icu widgets -debug -geolocation -pax_kernel 
-pulseaudio {-test}" 0 KiB


Total: 6 packages (6 reinstalls), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been 
pulled

!!! into the dependency graph, resulting in a slot conflict:

dev-libs/openssl:0

 (dev-libs/openssl-1.0.2k:0/0::gentoo, ebuild scheduled for merge) pulled 
in by
   dev-libs/openssl:0[bindist=] required by 
(dev-qt/qtnetwork-5.7.1:5/5.7::gentoo, ebuild scheduled for merge)
   
  
   >=dev-libs/openssl-1.0.1:0=[bindist=] required by 
(net-misc/openssh-7.5_p1-r1:0/0::gentoo, ebuild scheduled for merge)
   
   
 


 (dev-libs/openssl-1.0.2k:0/0::gentoo, installed) pulled in by
   dev-libs/openssl:0[-bindist] required by 
(net-p2p/bitcoin-qt-0.14.0:0/0::bitcoin, installed)
   
   



It might be possible to solve this slot collision
by applying all of the following changes:
  - net-misc/openssh-7.5_p1-r1 (Change USE: -bindist)
  - dev-qt/qtnetwork-5.7.1 (Change USE: -bindist)
  - dev-libs/openssl-1.0.2k (Change USE: -bindist)

# USE="bindist" emerge openssl bitcoin-qt
Calculating dependencies... done!
[ebuild   R] dev-libs/openssl-1.0.2k 
[ebuild   R   #] net-p2p/bitcoin-qt-0.14.0 


The following USE changes are necessary to proceed:
(see "package.use" in the portage(5) man page for more details)
# required by net-p2p/bitcoin-qt-0.14.0::bitcoin[-libressl]
# required by bitcoin-qt (argument)

=dev-libs/openssl-1.0.2k -bindist


Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

### END ###

The point is I can't find any reference to the bindist USE flag in the 
bitcoin-qt ebuild:


$ grep bindist $(equery which bitcoin-qt)
$ # returns nothing

Is there any particular reason for bitcoin-qt not accepting a freely 
redistributable openssl package?


Should I switch to libressl instead? I tried to do that some months ago, 
and it didn't end well...


What do you suggest?

Thanks.

--
https://www.fturco.net/



Re: [gentoo-user] Re: Disable Gentoo branding on KDE?

2017-02-01 Thread Francesco Turco
On Wed, 2017-02-01 at 16:58 +0200, Nikos Chantziaras wrote:
> > Do you have the 'branding' USE flag enabled?
> 
> There is no such flag.

On my system:

$ euse -i -g branding
global use flags (searching: branding)

[- cD   ] branding - Enable Gentoo specific branding

So the "branding" USE flags exists as far as I know.

-- 
https://www.fturco.net/

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


[gentoo-user] Installing Gentoo on a VPS with little RAM

2016-12-26 Thread Francesco Turco
Hello.

I have a Vultr VPS instance with Arch Linux but I'd like to replace it
with Gentoo Linux. The last time I tried that I couldn't build some
packages because the kernel killed gcc after a while. Please notice this
VPS instance has only 768 MiB of RAM. What can I try besides removing
-pipe from C(XX)FLAGS and setting MAKEOPTS to -j1? Should I add a swap
partition? Currently there's only a single root btrfs filesystem with @,
@boot and @home subvolumes. Btrfs doesn't support a swap file as far as
I know.

My VPS is currently used for the following things:
- Static personal website
- Shaarli (PHP application with no database)
- Tiny Tiny RSS (PHP application with database)
- ZNC server

Thanks.

-- 
https://www.fturco.net/



Re: [gentoo-user] eclean ... won't

2016-11-20 Thread Francesco Turco
On Sun, Nov 20, 2016, at 14:05, Константин wrote:
> On Sun, Nov 20, 2016 at 09:42:40AM -0300, Zhu Sha Zang wrote:
> 
> > Maybe you need to use 'eclean-dist -d'. But, for your safe, use
> > 'eclean-dist -dp' first.
> 
> BTW what troubles can I get from 'eclean-dist -d' ? As far as I
> understand it, re-download needed tar.gz will be the worst isn't it?

If you use the --deep (or -d) option you won't have distfiles for
uninstalled packages or previous versions of currently installed
packages.

Please see https://wiki.gentoo.org/wiki/Eclean for more details.

-- 
https://www.fturco.net/



Re: [gentoo-user] gnome-keyring-daemon processes running as root

2014-06-29 Thread Francesco Turco
On Sun, Jun 15, 2014, at 11:08, Francesco Turco wrote:
 As you can see I have many gnome-keyring-daemon processes running as
 root. I also noted that on my system /usr/bin/gnome-keyring-daemon has
 the setuid bit set:
 
 $ ls -l /usr/bin/gnome-keyring-daemon 
 -rws--x--x 1 root root 940184 Jun  8 16:18 /usr/bin/gnome-keyring-daemon

My problem is fixed now. It was indeed due to the setuid bit. See Gentoo
bug 513870 (https://bugs.gentoo.org/show_bug.cgi?id=513870) for more
details.



[gentoo-user] gnome-keyring-daemon processes running as root

2014-06-15 Thread Francesco Turco
Hello. I'm a GNOME 3.12 user with a couple of problems that could depend
on GNOME keyring running as root instead of a non-privileged user.

This is the situation before logging in with GDM:

$ ps aux | grep keyring
root   458  0.0  0.0 115220  2808 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --daemonize --login
fturco 474  0.0  0.0  10572  2212 tty1 S+   10:53   0:00 grep
--colour=auto keyring

This is the situation after logging in with GDM:

$ ps aux | grep keyring
root   458  0.0  0.0 115220  2808 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --daemonize --login
root   495  0.0  0.0 115220  2784 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --daemonize --login
root   499  0.0  0.0 115248  3672 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --daemonize --login
root   534  0.0  0.1 294352  8692 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --start --components=ssh
root   550  0.0  0.1 359888  8636 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --start --components=pkcs11
root   558  0.0  0.1 359888  8480 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --start --components=secrets
root   568  0.0  0.1 294356  8560 ?Sl   10:53   0:00
/usr/bin/gnome-keyring-daemon --start --components=gpg
fturco 753  0.0  0.0  10576  2236 pts/0S+   10:54   0:00 grep
--colour=auto keyring

As you can see I have many gnome-keyring-daemon processes running as
root. I also noted that on my system /usr/bin/gnome-keyring-daemon has
the setuid bit set:

$ ls -l /usr/bin/gnome-keyring-daemon 
-rws--x--x 1 root root 940184 Jun  8 16:18 /usr/bin/gnome-keyring-daemon

Some directories are owned by root:

$ ls -ld /run/user/1000/keyring/
drwx-- 2 root fturco 100 Jun 15 10:55 /run/user/1000/keyring/

$ ls -ld /home/fturco/.local/share/keyrings
drwx-- 2 root fturco 4096 Jun  9 18:53
/home/fturco/.local/share/keyrings

Is all of this normal?

P.S. At the beginning I hinted at a couple of problem I'm having: 1) I
cannot access my e-mail account with Evolution; 2) I also cannot connect
to my VPN with Network Manager. In both cases I get the following error
message in journalctl:

 Error calling StartServiceByName for org.freedesktop.secrets: Timeout was 
 reached 

There are two bugs on GNOME bugzilla describing these problems, one for
Evolution and the other one for Network Manager:

- https://bugzilla.gnome.org/show_bug.cgi?id=728469
- https://bugzilla.gnome.org/show_bug.cgi?id=731372

Thank you.



Re: [gentoo-user] Use Flags and Updating

2014-05-21 Thread Francesco Turco
 What would you recommend? Thanks.

I always use emerge -uDNav @world --with-bdeps=y --keep-going=y, as I
want to update *all* packages on my system. What's the point in keeping
on the system some packages that are deliberately not updated?



Re: [gentoo-user] No motherboard beep since kernel upgrade

2014-03-21 Thread Francesco Turco
On Fri, Mar 21, 2014, at 18:51, null_ptr wrote:
 Module for my sound card is running and SND_HDA_INPUT_BEEP is activated
 in kernel config. Am I missing something else?

Perhaps you need CONFIG_INPUT_PCSPKR.



Re: [gentoo-user] MD5SUM

2014-03-12 Thread Francesco Turco

 is the published MD5-hash still valid?

$ md5sum livedvd-amd64-multilib-20121221.iso 
e86da868be423283ec167725390faefc  livedvd-amd64-multilib-20121221.iso

Yes, the published MD5 hash is still valid.

 Further, how big is the resulting file exactly?

$ du -b livedvd-amd64-multilib-20121221.iso 
4198498304  livedvd-amd64-multilib-20121221.iso





Re: [gentoo-user] Re: flickering thunderbird and firefox

2014-03-05 Thread Francesco Turco

On 03/05/2014 08:06 PM, »Q« wrote:

Try setting layers.acceleration.disabled to true in about:config.  (I'm
sorry I don't remember how to get to about:config in Thunderbird;  I
think there's a button somewhere.)


It's Edit  Preferences  Advanced  General  Config editor.



Re: [gentoo-user] Re: Does Acrobat Reader work for anyone?

2013-11-01 Thread Francesco Turco
On Thu, Oct 31, 2013, at 15:16, James wrote:
 Nikos Chantziaras realnc at gmail.com writes:
  Since quite a while ago (months), acroread stopped working. It won't 
  start up at all. No error messages are shown. It just aborts. No window 
  is showing up.
 Perhaps a license issue?
 
 # Modify /etc/portage/make.conf file for your system:
 ACCEPT_LICENSE=AdobeFlash-10.3

He has problems with Adobe Acrobat Reader, not Adobe Flash Player. I
would also edit /etc/portage/package.license for adding licence
exceptions instead of make.conf.



Re: [gentoo-user] Some files in /usr/share/doc are not compressed

2012-12-20 Thread Francesco Turco
On Wed, Dec 19, 2012, at 23:11, Alan McKinnon wrote:
 That stuff is controlled by the ebuild, IIRC ebuilds should call
 function dodoc so they do with docs what you want them to do. The
 function name may well have changed and been superceded since last I
 looked.
 
 The reason you find nothing interesting in the ebuild is because
 something that should be there isn't. ebuilds not following rules wrt
 doc files is a bug and should be filed at bgo as such.

I looked into this problem a little more before submitting any bug.

At http://devmanual.gentoo.org/ebuild-writing/eapi/ it says that, for
EAPI=4, there is a default compression exclusion list:
/usr/share/doc/${PF}/html. udisks-2.0.0 ebuild uses EAPI=4. So this
explains why /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml and
many other such files are not being compressed. I checked, and they all
use EAPI=4 or EAPI=5. So the list of uncompressed files drops to 23
instead of 79.

Then I looked for non-zero size files only, because it makes no sense to
compress empty files. The list dropped to 9 files, belonging to 4
different ebuilds or 3 packages:

 /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz
 /usr/share/doc/libasyncns-0.8-r2/README
 /usr/share/doc/automake-1.11.6/amhello-1.0.tar.gz
 /usr/share/doc/groff-1.21-r1/meref.ps
 /usr/share/doc/groff-1.21-r1/meref.me
 /usr/share/doc/groff-1.21-r1/pic.ps
 /usr/share/doc/groff-1.21-r1/pic.ms
 /usr/share/doc/groff-1.21-r1/meintro.me
 /usr/share/doc/groff-1.21-r1/meintro.ps

Perhaps I may report these ones.



Re: [gentoo-user] Some files in /usr/share/doc are not compressed

2012-12-20 Thread Francesco Turco
On Thu, Dec 20, 2012, at 10:57, Francesco Turco wrote:
 Then I looked for non-zero size files only, because it makes no sense to
 compress empty files. The list dropped to 9 files, belonging to 4
 different ebuilds or 3 packages:
 
  /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz
  /usr/share/doc/libasyncns-0.8-r2/README
  /usr/share/doc/automake-1.11.6/amhello-1.0.tar.gz
  /usr/share/doc/groff-1.21-r1/meref.ps
  /usr/share/doc/groff-1.21-r1/meref.me
  /usr/share/doc/groff-1.21-r1/pic.ps
  /usr/share/doc/groff-1.21-r1/pic.ms
  /usr/share/doc/groff-1.21-r1/meintro.me
  /usr/share/doc/groff-1.21-r1/meintro.ps
 
 Perhaps I may report these ones.

It seems that amhello-1.0.tar.gz is already present in the tarball from
the distfiles directory, so it is not Portage responsible for
compressing in gz format. But it would be a good thing if Portage could
recompress that file in xz format instead. I don't know if this is
possible. So I won't file a bug report for this, as I think it could be
closed as invalid.

groff-1.21-r1 installs postscript files (which are not compressible) and
related files. So I don't think it's a good idea to file a report for
this, too.

So the only bug I decided to report is for libasyncns-0.8-r2:
https://bugs.gentoo.org/show_bug.cgi?id=447936.



[gentoo-user] Some files in /usr/share/doc are not compressed

2012-12-19 Thread Francesco Turco
Hello.

On my system Portage uses the following two variables for compressing
files in /usr/share/doc:

 $ portageq envvar PORTAGE_COMPRESS
 xz

 $ portageq envvar PORTAGE_COMPRESS_EXCLUDE_SUFFIXES
 css gif htm[l]? jp[e]?g js pdf png

It seems anyway that some files are not compressed:

 $ find /usr/share/doc -type f -regextype posix-extended ! -regex 
 .*\.(css|gif|htm[l]?|jp[e]?g|js|pdf|png|xz) | wc -l
 79

I won't list all of them here, just some examples:

 /usr/share/doc/gnome-shell-3.4.2/AUTHORS
 /usr/share/doc/udisks-2.0.0/html/udisks2/index.sgml
 /usr/share/doc/groff-1.21-r1/pic.ps
 /usr/share/doc/automake-1.12.5/amhello-1.0.tar.gz

My goal is to have everything under /usr/share/doc compressed with xz,
or at least to understand why something is being excluded from
compression. Perhaps it is due to some additional rules I'm not aware
of, or because of some bugs.

I checked the ebuilds of the packages the previous files belong to, but
I found nothing interesting.

It would be great if anyone who is interested could check his/her own
system too.

Thank you.



Re: [gentoo-user] Re: OpenRC error message at boot

2012-12-18 Thread Francesco Turco
On Mon, Dec 17, 2012, at 17:59, walt wrote:
 I'm drawing on ancient memories here, but I'd try setting RC_DEBUG=yes
 in /etc/rc.conf

Unfortunately there is no RC_DEBUG variable in my /etc/rc.conf file. The
following command returns nothing: grep -i debug /etc/rc.conf.

Anyway I tried downgrading openrc from 0.11.8 to 0.11.6, and with the
older version there is no error message at boot. So perhaps it's a bug
that has been introduced with 0.11.8.

---

Ok. I finally decided to report it:
https://bugs.gentoo.org/show_bug.cgi?id=447678



Re: [gentoo-user] Re: OpenRC error message at boot

2012-12-18 Thread Francesco Turco
On Tue, Dec 18, 2012, at 9:49, Dale wrote:
 If the RC_DEBUG setting is not there, add it.  There are lots of
 settings that are not in there by default but you can add them if you
 need to.

It's strange because all variables in my /etc/rc.conf file are lowercase
(for example rc_interactive, rc_parallel, ...). Perhaps we are not
discussing the same openrc version.

Also, with equery files --filter=man/doc openrc, I couldn't find a
documentation file where there is a list of all possible variables for
rc.conf. It seems rc.conf itself is such a file, and I already check it
for a debug variable, without success.



Re: [gentoo-user] Re: OpenRC error message at boot

2012-12-18 Thread Francesco Turco
On Tue, Dec 18, 2012, at 9:58, Randolph Maaßen wrote:
 IIRC all possible settings should be documented in man filename.conf

On my system:

$ man rc.conf
No manual entry for rc.conf



[gentoo-user] OpenRC error message at boot

2012-12-17 Thread Francesco Turco
Hello.

I get the following error message at boot time:

 * Mounting /proc...
 rm: cannot remove /run/openrc: Read-only file system

It's the very first script launched by OpenRC, but I cannot determine
which one it is. Anyway I'm quite sure it's a script from the sysinit
runlevel. This is because I tried using the interactive mode to stop the
boot process as soon as possible. When the system stopped there were
just a few sysinit scripts running.

rc-update show sysinit:

 devfs | sysinit
 dmesg | sysinit
 sysfs | sysinit
  udev | sysinit
udev-mount | sysinit

Openrc package version is 0.11.8 (on a ~amd64 system).

This is my /etc/fstab:

 /dev/sda2 none  swap defaults 0 0
 /dev/sda3 / ext4 defaults 0 1
 /dev/sda4 /home ext4 defaults 0 2

I don't really know what other informations I should provide, so please
tell me if needed.

Thanks.



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-14 Thread Francesco Turco
On Wed, Dec 12, 2012, at 19:22, Francesco Turco wrote:
 I'm still not convinced. emerge(1) man page for portage-2.1.11.37
 already contains the following command example:
  emerge --update --newuse --deep @world
 
 And:
  emerge  --update  @world
 
 But not a single example without the at sign.
 
 I also found this (old) blog post from Portage developer Zac Medico:
 http://blogs.gentoo.org/zmedico/2010/09/07/portage_2-1-9_release/. It
 says:
  Package set names in emerge arguments have to be prefixed with @ 
  (exceptions: ‘world’ and ‘system’ can be used without the prefix).
 
 So it seems that since version 2.1.9 @world and world (and @system and
 system) are just treated in the same way, but prefixing them with the at
 symbol is more future-proof.

I contacted Zac Medico and he said me:

 Yes, @world is more future proof. I don't plan to deprecate the old way
any time soon, but it could happen at some point in the future.

It seems pretty clear to me. Plain world is not wrong, but @world is
the way to go.



[gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Francesco Turco
Hello.

A couple of weeks ago I filed a bug because in the Installation Handbook
I found some references of the world set in emerge commands, as
opposed to @world: https://bugs.gentoo.org/show_bug.cgi?id=445184

The bug was closed as invalid, and I was told that:

 sets with the @ prefix are a portage-2.2 feature, which is still hardmasked 
 and thus not documented.

The fact is that I have portage-2.1.11.37, not 2.2, and man emerge says:

 When used  as  arguments to emerge sets have to be prefixed with @ to be 
 recognized.

One possibility is that documentation stick with the stable portage
package, not the testing one (I have a ~amd64 system only). But I
checked portage 2.1.11.31 (the latest stable amd64 portage package
version) and the previous phrase is there, too.

I know it's not a very important issue, but I'd still like to know if
I'm wrong or not, and why.

Thank you.



Re: [gentoo-user] emerge sets syntax (@world vs. world)

2012-12-12 Thread Francesco Turco
On Wed, Dec 12, 2012, at 14:18, Alan McKinnon wrote:
 You are wrong, the docs and the man pages are correct.
 
 The problem is that the word set is used in two different ways, one
 loosely and the other with reference to an exact construct.
 
 portage-2.2 introduced the concept of a defined set under user
 control. It's a list of packages that portage treats as a whole chunk
 of things together and the user can define what he wants in a set and
 give it a name. When used with emerge, sets like this must have an @
 prefix so portage can tell them apart from regular packages. Portage
 also dynamically creates sets internally that work the same way, things
 like @world and @system and @preserved-rebuild. You can use these too,
 you just can't define them or modify them directly.
 
 The portage man page has unfortunately also used the word set for a
 different reason. Portage has always had a concept of world (not
 @world) and system (not @system) which were really just a bunch of
 stuff that happens to pop out of portage because it's hard-coded that
 way. And the docs say things like 
 
 emerge world
 
 and call the world part the world set.
 
 Set here is a homonym - two completely different words with different
 meanings that just happen to be spelled and sound the same.

I'm still not convinced. emerge(1) man page for portage-2.1.11.37
already contains the following command example:
 emerge --update --newuse --deep @world

And:
 emerge  --update  @world

But not a single example without the at sign.

I also found this (old) blog post from Portage developer Zac Medico:
http://blogs.gentoo.org/zmedico/2010/09/07/portage_2-1-9_release/. It
says:
 Package set names in emerge arguments have to be prefixed with @ (exceptions: 
 ‘world’ and ‘system’ can be used without the prefix).

So it seems that since version 2.1.9 @world and world (and @system and
system) are just treated in the same way, but prefixing them with the at
symbol is more future-proof.



Re: [gentoo-user] eclean and the --time-limit option

2012-12-09 Thread Francesco Turco
On Sat, Dec 8, 2012, at 17:05, Neil Bothwick wrote:
 It sounds like you want wget to use --no-use-server-timestamps. I haven't
 tried it, but something like
 
 FETCHCOMMAND=$FETCHCOMMAND --no-use-server-timestamps
 
 in make.conf should do it. If not, get the default settings from
 emerge --info -v and set FETCHCOMMAND to those plus
 --no-use-server-timestamps.

I added the --no-use-server-timestamps option to both FETCHCOMMAND and
RESUMECOMMAND variables in /etc/portage/make.conf, then removed
everything in /usr/portage/{distfiles,packages} and finally did emerge
-e @world. Now timestamps seems to be good and compatible with eclean's
--time-limit option.

Thank you Neil!



[gentoo-user] eclean and the --time-limit option

2012-12-08 Thread Francesco Turco
Hello.

I usually use the following commands to clean distfiles and binary
packages after an upgrade:

# eclean --destructive distfiles
# eclean --destructive packages

Now I'd like to add the --time-limit=1w option, in order to prevent
recent files to be deleted. I think this would be useful for having time
to properly test the system and rapidly reverting any problematic
update. Or when you remove a program but you change idea some days later
and you want it back.

In man eclean it says:
 don't delete files modified since time

So eclean looks for modification time. In /usr/portage/packages files
were last modified when they were last emerged. So this is OK. But in
/usr/portage/distfiles files last modification time does not correspond
to when they were last downloaded. So it could happen that you
downloaded package X today, tried it, didn't like it, unmerged it, but
since its sources may have a modification time more than 1 week ago it
could be deleted by eclean. I have distfiles whose modification time is
years in the past, although my system is just some days old.

I wonder if there's some way to fix this, perhaps by telling Portage to
update modification time for distfiles when they are fetched from
servers. Or using some other option with eclean.

Thank you.