Re: [gentoo-user] How to synchronise between 2 locations

2024-03-28 Thread tastytea
On 2024-03-28 07:32+0100 "J. Roeleveld"  wrote:

> On Wednesday, 27 March 2024 20:54:14 CET Frank Steinmetzger wrote:
> > Am Wed, Mar 27, 2024 at 03:42:07PM -0400 schrieb Matt Connell:  
> > > On Wed, 2024-03-27 at 19:58 +0100, J. Roeleveld wrote:  
> > > > Hi all,
> > > > 
> > > > I am looking for a way to synchronise a filesystem between 2
> > > > servers. Changes can occur on both sides which means I need to
> > > > have it synchronise in both directions.
> > > > 
> > > > Does anyone have any thoughts on this?
> > > > 
> > > > Also, both servers are connected using a slow VPN link, which
> > > > is why I can't simply access files on the remote server.  
> > > 
> > > I've been using syncthing for years and am extremely pleased with
> > > it. It works so well that I sometimes forget that its there,
> > > truly in the It Just Works category of software.  
> > 
> > Syncthing is also a good idea. The major difference: syncthing is a
> > permanently running daemon, so changes are synced very fast (the
> > interval is configurable, IIRC). OTOH, Unison is run individually
> > by you. That’s why I prefer the latter: in case I broke some file
> > on my machine, I can get it back from another machine without
> > having to break out the backup disk (which may not even have what I
> > need because my backup interval is too big).  
> 
> I had a quick look and it seems to depend on systems running outside
> of my network. Can it be used without any link to a "centralised"
> server?

yes, you can disable the external servers. if the systems are running on
the same LAN (same VPN could work too?) they should find each other
nevertheless. or you could host your own discovery/relay server
somewhere.



Re: [gentoo-user] How to synchronise between 2 locations

2024-03-27 Thread tastytea
On 2024-03-27 20:54+0100 Frank Steinmetzger  wrote:

> Am Wed, Mar 27, 2024 at 03:42:07PM -0400 schrieb Matt Connell:
> > On Wed, 2024-03-27 at 19:58 +0100, J. Roeleveld wrote:  
> > > Hi all,
> > > 
> > > I am looking for a way to synchronise a filesystem between 2
> > > servers. Changes can occur on both sides which means I need to
> > > have it synchronise in both directions.
> > > 
> > > Does anyone have any thoughts on this?
> > > 
> > > Also, both servers are connected using a slow VPN link, which is
> > > why I can't simply access files on the remote server.  
> > 
> > I've been using syncthing for years and am extremely pleased with
> > it. It works so well that I sometimes forget that its there, truly
> > in the It Just Works category of software.  
> 
> Syncthing is also a good idea. The major difference: syncthing is a 
> permanently running daemon, so changes are synced very fast (the
> interval is configurable, IIRC). OTOH, Unison is run individually by
> you. That’s why I prefer the latter: in case I broke some file on my
> machine, I can get it back from another machine without having to
> break out the backup disk (which may not even have what I need
> because my backup interval is too big).

syncthing has inbuilt backups if you enable it 



Re: [gentoo-user] What's happening to dev-cpp/abseil-cpp?

2023-10-20 Thread tastytea
On 2023-10-20 10:51+0100 Peter Humphrey  wrote:

> Hello list,
> 
> This package[1] has see-sawed up and down several times recently,
> causing recompilation of libreoffice each time. What's going on?
> 
> $ genlop libreoffice
>  * acct-group/libreoffice
> 
>  Sat Sep  2 00:35:00 2023 >>> app-office/libreoffice-7.5.5.2
>  Sat Sep  2 12:45:06 2023 >>> app-office/libreoffice-7.5.5.2
>  Sun Sep  3 17:22:11 2023 >>> app-office/libreoffice-7.5.5.2
>  Mon Oct  9 17:30:59 2023 >>> app-office/libreoffice-7.5.5.2
>  Mon Oct 16 13:18:07 2023 >>> app-office/libreoffice-7.5.5.2
>  Wed Oct 18 13:35:13 2023 >>> app-office/libreoffice-7.5.5.2
>  Thu Oct 19 13:21:58 2023 >>> app-office/libreoffice-7.5.5.2
> 
> 1.  dev-cpp/abseil-cpp (20230125.2(0/20230125){xpak:2}): Abseil
> Common Libraries (C++), LTS Branch

are you sure it's all because of dev-cpp/abseil-cpp? according to the
log[1] it was prematurely stabilized a few days ago and reverted
2023-10-17. that could explain 2 of the last 3 app-office/libreoffice
rebuilds. however, i don't see anything matching the other rebuilds. i
haven't checked masks though, maybe some versions of abseil were masked
for a while?

kind regards, tastytea

[1] <https://gitweb.gentoo.org/repo/gentoo.git/log/dev-cpp/abseil-cpp>



Re: [gentoo-user] Feature "split-log" in Portage variable "FEATURES"

2023-05-15 Thread tastytea
On 2023-05-15 15:39+0200 Dr Rainer Woitok 
wrote:

> Greetings,
> 
> skimming through "man make.conf"  looking for something else  I
> stumbled upon
> 
>   split-log
>  Store  build   logs   in   category   subdirectories   of
>  PORTAGE_LOGDIR/build, instead of using PORTAGE_LOGDIR di‐
>  rectly.
> 
> and I decided  to give it a try.   After adding "split-log"  to
> variable "FEATURES" in file "make.conf" I updated a single small
> package, but the build log did not turn up anywhere,  even though
> file  "/var/log/emerge. log" contained a new entry telling me  the
> package has been successfully updated.
> 
> What am I missing?

most likely you didn't define PORTAGE_LOGDIR in your make.conf and it's
empty by default (check with `portageq envvar PORTAGE_LOGDIR`).

kind regards, tastytea



Re: [gentoo-user] file system for new machine

2023-04-27 Thread tastytea
On 2023-04-27 16:52+0100 Neil Bothwick  wrote:

> On Thu, 27 Apr 2023 15:54:34 +0200, tastytea wrote:
> 
> > btrfs and zfs have some useful features for normal use cases. the
> > transparent compression can save a lot of space and even increase
> > speed in some cases, the checksumming guarantees that you will
> > never get a corrupt file  
> 
> That's only true if you use RAID, when there is a good copy to use. If
> you have a single disk, they can only let you know a file is corrupt
> but not restore it.

well, you need to have a backup, of course. with ext4 it can happen that
a file is corrupted in a way that is not immediately obvious but causes
further damage down the line. or you get artifacts in your music and
only notice it after it is too late and all your backups have the
damaged version.



Re: [gentoo-user] file system for new machine

2023-04-27 Thread tastytea
On 2023-04-27 10:14-0400 Matt Connell  wrote:

> On Thu, 2023-04-27 at 15:54 +0200, tastytea wrote:
> > btrfs and zfs have some useful features for normal use cases. the
> > transparent compression can save a lot of space and even increase
> > speed in some cases, the checksumming guarantees that you will
> > never get a corrupt file and snapshots make backups and rollbacks
> > easier.  
> 
> Does the transparent compression incur an overhead cost in processing,
> memory use, or disk writes?  I feel like it certainly has to at least
> use more memory.  Sorry if that's an RTFM question.

it'll use more cpu and memory, but disk writes and reads will be lower,
because it compresses it on the fly. it should detect early if a file
is not compressible and stop. it's also possible (with btrfs at least)
to enable it on a directory basis.




Re: [gentoo-user] file system for new machine

2023-04-27 Thread tastytea
On 2023-04-27 09:34-0400 Matt Connell  wrote:

> On Thu, 2023-04-27 at 08:23 -0400, Philip Webb wrote:
> > Ext4 seems to be used by well-known binary distros.  
> 
> There's a reason for this.  It can fulfill all but the most niche or
> intensive roles, is robustly supported, well-tested both in
> development and through wide use in the field, and generally "just
> works".
> 
> It is a great general purpose file system, for general purpose
> computing.  Standard LAMP stack, desktop, laptop, HTPC, etc. are all
> satisfied by ext4
> 
> Since it is so broadly used and supported, you are guaranteed to find
> documentation for whatever feature or issue you discover.

i agree with all of the above.

> > What would others recommend ?  
> 
> For general purpose computing/serving, in a non-scaling, non-
> performance-critical, non-experimental scenario, ext4 
> 
> Unless[1] you are specifically:
> 
> * learning/exploring/experimenting
> * storing billions of tiny files
> * storing 1TB+ individual files
> * not using any kind of backups[2]

btrfs and zfs have some useful features for normal use cases. the
transparent compression can save a lot of space and even increase speed
in some cases, the checksumming guarantees that you will never get a
corrupt file and snapshots make backups and rollbacks easier.

however, they do need a bit more maintenance (described in their
respective wiki articles).

> --
> 
> [1] I'm certain that there are other use cases for which ext4 is not
> an optimal choice, but I don't have first-hand experience with them.
> 
> [2] I'm aware that zfs and others can do snapshots for recovery and
> "roll back" but there is no replacement for versioned hard copy
> backups

you can send snapshots to other drives or computers, either as full or
incremental backups. i'd say it's pretty much the same. 




Re: [gentoo-user] Mouse and hibernate

2023-04-05 Thread tastytea
On 2023-04-05 08:54+0800 William KENWORTHY  wrote:

> I have suspend/hibernate set up on a desktop ... it's been working
> fine for years. But recently,  it's been occaisionally coming out of
> suspension some time after suspension without any intervention on my
> part.  I am suspecting the mouse - I would prefer not to disable the
> mouse ... Is there an alternative? BillK

Often there are options in the BIOS/UEFI to choose what can cause it to
come out of suspension.



Re: [gentoo-user] Discontinued Package: Copy to local overlay, just leave installed, or install manually?

2023-02-19 Thread tastytea
On 2023-02-19 10:24+0100 Matthias Hanft  wrote:

> Hi,
> 
> according to https://bugs.gentoo.org/718972 (and a posting
> in the dev list), gsutil (and all needed libs) will be removed
> from the tree because "it's broken" (which is not true - works
> like a charm).
> 
> Since I do need gsutil urgently, I have already copied the needed
> ebuilds from /usr/portage to a local overlay in order to "emerge
> -c gsutil::gentoo" and then "emerge gsutil::local".
> 
> But then came to my mind: Is that necessary at all? As far as I
> know, I can just leave discontinued packages installed and continue
> to use them - regardless of whether they are still in portage tree
> or not. True or false?

Yes, you can just continue to use them. The ebuild will be kept in
/var/db/pkg/ in case portage needs to reinstall them or so.
However, it might make sense to copy it to a local overlay to make it
easier to get an overview of self/un -maintained packages. And since
gsutil requires Python, you'll have to modify the ebuild at some point
anyway to add support for newer Python versions.

> Or is it better to get rid of portage/ebuilds at all and do a
> manual installation, as described at
> https://cloud.google.com/storage/docs/gsutil_install?hl=en ?

I'd say use the ebuild since it already exists. Makes breakage less
likely.

Kind regards, tastytea



Re: [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0

2023-02-18 Thread tastytea
On 2023-02-18 14:11-0500 Steven Lembark  wrote:

> On Sat, 18 Feb 2023 17:10:44 +0100
> tastytea  wrote:
> 
> > Do you have the gtk USE-flag on app-emulation/virt-manager?  
> 
> Double-checking the module, I don't see it using gtk:

stable (on amd64) uses “gtk”[1], testing uses “gui”[2].

[1] 
<https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/virt-manager/virt-manager-4.0.0.ebuild>
[2] 
<https://gitweb.gentoo.org/repo/gentoo.git/tree/app-emulation/virt-manager/virt-manager-4.1.0.ebuild>

> 
> https://packages.gentoo.org/packages/app-emulation/virt-manager
> 
> USE flags
> Local Use Flags
> 
> policykit
> sasl
> 
> Global Use Flags
> 
> gui
> test
> 
> python_single_target (Use Expand)
> 
> python3_9
> python3_10
> python3_11
> 
> 
> 
> 
> 




Re: [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0

2023-02-18 Thread tastytea
On 2023-02-18 13:58-0500 Steven Lembark  wrote:

> On Sat, 18 Feb 2023 17:10:44 +0100
> tastytea  wrote:
> 
> > Do you have the gtk USE-flag on app-emulation/virt-manager? Does
> > `qlist app-emulation/virt-manager` show installed files?  
> 
> No, but the previous version was working without it. 

I don't know if it changed recently, but the current ebuild removes
"${ED}/usr/bin/virt-manager" (in pkg_preinst()) if the gtk USE-flag is
not enabled.

> > […]  
> > > >>> Completed installing app-emulation/virt-manager-4.0.0 into
> > > >>> /tmp/portage/app-emulation/virt-manager-4.0.0/image  
> > >  
> > > * Final size of build directory: 22080 KiB (21.5 MiB)
> > > * Final size of installed tree:   7420 KiB ( 7.2 MiB)
> > 
> > That is normal. it is installed into ${PORTAGE_TMPDIR} and then
> > merged into ${EROOT}/ to make it less likely that the filesystem is
> > getting messed up.  
> 
> The other packages on the system get installed in the root after
> being collected in the temp dir. I cannot find this package
> getting installed anywhere further:
> 
> >>> Completed installing app-emulation/virt-manager-4.0.0  
> into /tmp/portage/app-emulation/virt-manager-4.0.0/image
> 
> qlist shows some files in /usr/share, look left over from the 
> previous install. The only remaining executables are:
> 
> /usr/bin/virt-xml
> /usr/bin/virt-install
> /usr/bin/virt-clone
> 
> notice the lack of virt-manager.
> 
> Full qlist output:
> 
> https://pastebin.com/LNqczQnc

Looks like it is installed?

> Build info:
> 
> app-emulation/virt-manager-4.0.0::gentoo was built with the following:
> 
> USE="-gtk -policykit -sasl -test"
> PYTHON_SINGLE_TARGET="python3_10 -python3_9"
> FEATURES="distlocks assume-digests userfetch binpkg-docompress
> qa-unresolved-soname-deps usersandbox network-sandbox ipc-sandbox
> preserve-libs merge-sync config-protect-if-modified multilib-strict
> binpkg-logs sfperms binpkg-dostrip protect-owned usersync
> parallel-install fixlafiles xattr pid-sandbox buildpkg-live userpriv
> unmerge-logs unmerge-orphans parallel-fetch binpkg-multi-instance
> sandbox unknown-features-warn strict clean-logs news ebuild-locks"
> 




Re: [gentoo-user] Completed installing ... into /tmp/portage/app-emulation/virt-manager-4.0.0

2023-02-18 Thread tastytea
On 2023-02-18 10:45-0500 Steven Lembark  wrote:

> First time I've ever seen a package install into PORTAGE_TMPDIR...
> 
> Q: What am I missing? 
> 
> The rest of last nights "emerge --update" went into places like
> /usr/bin... where you'd expect. After the upgrade I noticed that
> virt-manager wasn't there. Tried emerging it alone to see what
> had happened. 
> 
> # emerge ... app-emulation/virt-manager;
> 
> 
> # which virt-manager;
> which: no virt-manager in
> (/opt/bin:/opt/sbin:/bin:/usr/bin:/sbin:/usr/sbin)
> 

Do you have the gtk USE-flag on app-emulation/virt-manager? Does
`qlist app-emulation/virt-manager` show installed files?

[…]
> >>> Completed installing app-emulation/virt-manager-4.0.0 into
> >>> /tmp/portage/app-emulation/virt-manager-4.0.0/image  
>  
> * Final size of build directory: 22080 KiB (21.5 MiB)
> * Final size of installed tree:   7420 KiB ( 7.2 MiB)

That is normal. it is installed into ${PORTAGE_TMPDIR} and then merged
into ${EROOT}/ to make it less likely that the filesystem is getting
messed up.

Kind regards, tastytea



Re: [gentoo-user] Looking for simple GUI MUA that works with ssmtp

2022-12-29 Thread tastytea
On 2022-12-29 08:38-0500 "Walter Dnes"  wrote:

>   One more thing... can Claws spit out email to port 25 so that ssmtp
> can pass it on to my ISP's mailserver?

Yes, it can talk SMTP on whatever port you want and you can configure
the sending server individually from the receiving server.



Re: [gentoo-user] Looking for simple GUI MUA that works with ssmtp

2022-12-29 Thread tastytea
On 2022-12-29 07:54-0500 "Walter Dnes"  wrote:

> On Tue, Dec 27, 2022 at 08:17:42PM +, Neil Bothwick wrote
> > 
> > Another vote for Claws here, although i use the liteHTML plugin,
> > which seems to handle more than Dillo, but without the overhead of
> > webkit.
> > 
> > It can also open HTML emails in your preferred browser.  
> 
>   Does Claws work with Maildir directories?

Yes and no. There is an unmaintained plugin that supposedly kinda works.




Re: [gentoo-user] Looking for simple GUI MUA that works with ssmtp

2022-12-26 Thread tastytea
On 2022-12-26 20:43-0500 "Walter Dnes"  wrote:

>   mutt has served me well over the years, but thanks to *BRAINDEAD
> CORPORATE IDIOTS* I need a GUI client to parse 100 K of HTML that
> replaces 1 page of text.  These aren't just plain spammers, but
> businesses that I deal with regularly.  It seems that plaintext email
> is going the way of cursive writing.  Any suggestions for an MUA that
> can spit out rmail to port 25?
> 

I use mail-client/claws-mail, with the dillo plugin to view the
occasional HTML only email. It apparently also has a webkit plugin, in
case you get “extra fancy” mails.

claws-mail is pretty lightweight, very configurable, can spawn an
external editor to write emails but can't send HTML emails itself AFAIK.

Kind regards, tastytea



Re: [gentoo-user] Change History of linux commands

2022-10-07 Thread tastytea
On 2022-10-07 17:25+0200 n952162  wrote:

> Am 07.10.22 um 16:56 schrieb Grant Taylor:
> > On 10/7/22 8:25 AM, n952162 wrote:  
> >> Can anybody tell me how I can look at the official change history
> >> of linux commands?  
> >
> > Some man pages have history of commands in them.
> >
> > Admittedly, it seems as if man pages on Solaris and *BSD (I have
> > access to FreeBSD) tend to be better than Linux man page at this
> > aspect.
> >
> >
> >  
> 
> Well, the man page, yes, would be a good indicator, but the commands
> themselves?
> 
> Where does gentoo get the source to build  test(1) or expr(1) or
> date(1)?    That's in some package, but where is the upstream source? 
> Is it something in github?  Or a linux portal?  Or Torvalds private
> server?  Or the gnu server?
> 
> 

/usr/bin/test[1] was installed by sys-apps/coreutils[2], it's homepage
is <https://www.gnu.org/software/coreutils/>[3], that links to the
source code repository.

Other ways to find out:
  - `equery meta sys-apps/coreutils`
  - `less $(portageq get_repo_path / 
gentoo)/sys-apps/coreutils/coreutils-8.32-r1.ebuild`

Kind regards, tastytea

[1] `whereis test`
[2] `qfile /usr/bin/test` or `equery belongs /usr/bin/test`
[3] `eix sys-apps/coreutils` or emerge -s sys-apps/coreutils`



[gentoo-user] Remove codepoints from fonts with fontconfig

2022-09-23 Thread tastytea
Hi,
i added a colour emoji font as my last preferred font to fontconfig and
want to get all emojis from it. The problem is, that my first preferred
font contains some mono coloured emojis that override the colour emoji
font. This is my config:

  
monospace

  Source Code Pro
  Source Han Mono
  Noto Color Emoji

  

and the same for serif and sans-serif[1].

I tried to “remove” the offending codepoints from all fonts matching
*Source* like this:

  

  Source


  
charset

  0x2764 
  0x1f916 

  

  

but that only works partially. After running `fc-cache -f` the emojis
are shown correctly in xfce4-terminal and GTK 2/3 programs but not in
alacritty and Qt5 programs. Firefox gets only some of them right.
Rebooting didn't help.

Is there a way to make it work everywhere?

[1] full config:

<https://schlomp.space/tastytea/dotfiles/src/branch/main/.config/fontconfig/fonts.conf>



Re: [gentoo-user] git command within an ebuild fails - why?

2022-09-23 Thread tastytea
On 2022-09-23 18:17+0200 Helmut Jarausch  wrote:

> Hi,
> I'd like to write an ebuild for installing nim-.
> Within  "src_compile"
> a shell script is executed which tries to invoke
> 
> git clone -q --depth 1 -b master  
> https://github.com/nim-lang/csources_v1.git csources_v1
> 
> This fails with "Could not resolve host: github.com"
> 
> When I excute the git command above within the source directory it
> just works.
> So, what's different when executing it within the ebuild.
> Does "inherit git-r3" redefine something.
> 
> Many thanks for hint,
> Helmut
> 

Network access is disabled in ebuild phase functions by
FEATURES="network-sandbox". You can disable that by adding
RESTRICT="network-sandbox"
to your ebuild, but it's better to fix the build script instead.

I see stefantalpalaru has a solution for this:
<https://github.com/stefantalpalaru/gentoo-overlay/blob/master/dev-lang/nim/nim--r13.ebuild#L29>

Kind regards, tastytea



Re: [gentoo-user] gentoo-sources-5.15.59 un-keyworded?

2022-09-23 Thread tastytea
On 2022-09-23 10:28+0200 "J. Roeleveld"  wrote:

> Hi,
> 
> Is there a specific reason why the keywords (apart from hppa) have
> been removed from gentoo-sources-5.15.59?
> 
> I am seeing some issues with systems running this version, but not
> all. And as this is recent, I don't have an older kernel to quickly
> fall back to. Currently working on testing different versions to see
> if it is the kernel.
> 
> If anyone knows why this was done, please let me know. I couldn't
> find anything in b.g.o and my google-fu is failing me on this.

Judging by the git log[1] and `eshowkw sys-kernel/gentoo-sources`[2], it
looks like it was part of a cleanup, a lot of old kernels were dropped.
5.15.59 presumably wasn't dropped because it's the latest stable on
hppa. I guess the other arches were unkeyworded to keep the list of
supported kernels somewhat reasonable.

Kind regards, tastytea

[1] <https://cgit.gentoo.org/repo/gentoo.git/log/sys-kernel/gentoo-sources>
[2] from app-portage/gentoolkit



Re: [gentoo-user] Cannot shutdown or reboot because of logind disconnection

2022-09-17 Thread tastytea
On 2022-09-17 17:37+0800 johnstrass   wrote:

> At 2022-09-17 14:15:51, "Walter Dnes"  wrote:
> 
> >On Sat, Sep 17, 2022 at 10:40:53AM +0800, johnstrass wrote
> >  
> >> Compiling gcc uses alot of memory, sometimes only less then 10MB
> >> left free ( I am doing this on a small yeeloong netbook with only
> >> 1GB memory).  
> >
> >  Ouch, I'm surprised it compiles at all.  The Gentoo install
> > handbook
> >https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation#MAKEOPTS
> >has a dire warning about memory usage...  
> 
> >  
> 
> 
> 
> Yep, I've got the gcc-12.2.0 natively compiled on this netbook using
> gcc-11.3.0, after 5+ days + a crash + 5more days.
> 
> I set up a large swap and I've also set up the ccache which may
> speedup a little after the crash.
> 
> 
> >>  Warning
> >> Using a large number of jobs can significantly impact memory
> >> consumption. A good recommendation is to have at least 2 GiB of RAM
> >> for every job specified (so, e.g. -j6 requires at least 12 GiB). To
> >> avoid running out of memory, lower the number of jobs to fit the
> >> available memory.  
> >
> >  You simply don't have enough ram.  You might reduce the pain and
> > the
> >swapping by trying something like the following in make.conf
> >(assuming you haven't already done it)
> >  
> 
> >MAKEOPTS="-j1"  
> 
> 
> I will try next time. Thanks.
> 
> 
> >  
> >> If this happens, what is the best way to reboot or shutdown?  
> >  
> 
> >  Try ye olde {CTRL}{ALT}{DEL}  
> 
> 
> 
> 
> I remember that I did try "CTRL+ALT+DEL" in such situations before,
> and most times it did not work but for one or two times it worked
> occasionally. I will try it again next time.

You could also use “Magic SysRQ”s[1] to reboot the system forcefully
but somewhat controlled. The traditional sequence is:
 r e i s u b(raising elephants is so utterly boring)[2]

[1] 
[2] 




Re: [gentoo-user] Encrypted hard drives on LVM and urgent power shutdowns.

2022-09-11 Thread tastytea
On 2022-09-11 20:56-0500 Dale  wrote:

> Howdy,
> 
> Last night we had some bad weather where I live and we ended up with
> some power problems.  Ironically they went out a few hours after the
> storm was gone.  Anyway.  I had all sorts of encrypted drives open.
> My usual drives inside my puter plus the large 14TB external backup
> drive that is still copying files over.  Glad my UPS held up while I
> closed all those drives and did a proper shutdown.  Doing all that
> tho, it made me think about if I wasn't here to do all that.  Being
> Linux, I'd suspect that upsmon would tell the puter to do a proper
> shutdown which includes unmounting the file system, closing the
> encrypted drives, like I do with cryptsetup close  etc and then
> shutting down.  However, one has to ask, is it set up to do so by
> default?  I manage the encrypted drives manually.  I don't use the
> crypt services for that like people do when all of the system
> drive(s) is encrypted or when just /home is encrypted.  My encrypted
> stuff is mounted within /home or for the external backups, in /mnt.
> Thing is, some aren't open unless I'm using them or are external.
> Since I do it manually, is there a tool that sees they need
> unmounting and closing and does it or do I need to do something to
> make sure it is done before a shutdown? 
> 
> I suspect this would happen on its own but I'd like to make sure.  I'd
> hate to mess up the file system badly on any of my drives or in a
> worst case scenario, brick a hard drive with some 1 in a million
> chance problem.
> 
> I thought about having a drive connected, open and mounted that I
> don't really need and just do a shutdown, see what happens.  Then
> again, why not ask and see if anyone else has had this happen and if
> things turned out OK or if there was problems.  I'm lucky, most of
> the time I'm either home or very close by.  Still, it can happen when
> I'm not here.  I already wonder if upsmon will kick in correctly and
> do a proper shutdown.  After all, it has never had to before.  I'm
> running on faith that it will.  I hope I'm right. 
> 
> Thoughts?  Default will take care of things?  I need to take steps to
> be sure in case I'm not here?  Personal experience?  A good theory?
> ;-)

Yes, /etc/init.d/mount-ro will take care of that. It first calls `sync`
and then calls `umount -r` on everything. It's set up to ruin on
shutdown by default. I'm sure systemd does something similar.

I don't think `cryptsetup luksClose` is necessary on shutdown, since it
only sets up the mapping(?).

Kind regards, tastytea



Re: [gentoo-user] Getting printer working, the road of Pain.

2022-09-08 Thread tastytea
On 2022-09-08 12:52-0400 Alan Grimes  wrote:

> […]
> 
> Right now linux is so broken that the CUPS web interface will deny
> all attempts to administer the printer and reject any password. The
> config file is written in moonspeak, I just need the motherfucking
> thing to say yes when I tell it to do a thing. I expect it to take
> 2-3 days just to get over this hurdle.

I solved this problem by replacing the contents of every 
block with:

  Order allow,deny
  Allow localhost
  Allow from fd69:0:0:0:*
  Allow from 192.168.69.*
 
> How can people actually go around installing linux on people's
> computers as if they were doing them a favor when it really is this
> bad?

It's not bad at all if you use a distribution with a better default
configuration, pre-installed drivers and a pre-installed GUI for setting
up the automatically detected printer in less than 5 clicks.
Unless you have a printer from a shitty company, of course.



Re: [gentoo-user] --sync

2022-08-01 Thread tastytea
On 2022-08-01 07:58+0100 Michael  wrote:

> […]
> 
> 2. These days rsync uses hashes and gpg to check the integrity of
> portage and will flag up a warning in case of file tampering, or
> corrupt data.  As far as I know such a solution doesn't exist with
> git.

Verification can be turned on with
  sync-git-verify-commit-signature = yes
in repos.conf.[1] This does not seem to be enabled by default.[2]

[1] 
[2] 



Re: [gentoo-user] Boot has no space left.

2022-07-14 Thread tastytea
On 2022-07-15 00:21+0100 Wol  wrote:

> On 15/07/2022 00:01, Dale wrote:
> > Guillermo García wrote:  
> >>
> >> Hello again guys, how are you? I hope you're fine.
> >>
> >> I remember someone told me a program to use to remove old kernels
> >> in order to get more space on /boot, i tried to search the
> >> original message that the guy sent me trough this list, but i
> >> cannot find it.
> >>
> >> Here's a screenshot of my /boot folder:
> >>
> >> I guess the kernel version i use is this one:
> >>
> >> Could someone tell me a method to remove the old kernels in order
> >> to get more space in /boot?
> >>
> >> Thank you, and regards,
> >>
> >> Guillermo.
> >>  
> > 
> > 
> > I found it for you.  The package is app-admin/eclean-kernel.  I
> > think there is a wiki page on the Gentoo website for that.  I
> > recall it being pretty easy to use.
> >   
> Bear in mind, if the OP is running 5.15.10, that's the second oldest 
> kernel in the list. If he's got five newer kernels there, is 
> eclean-kernel going to assume the live kernel is out-of-date and
> delete it? NOT a good idea.
> 
> The OP needs to make sure that both 5.15.41 and 5.15.48 are in his
> boot menu, AND that they both work, before risking clearing out the
> rest ...

The current kernel is never removed by eclean-kernel.

> The kernel choice algorithm is quite simple:
> 
> 1. If the kernel is currently used, don't remove it;
> 2. If the kernel is referenced by a bootloader, don't remove it
>(unless ``--destructive``);
> 3. If auxiliary files do not map to existing kernel, remove them;
> 4. If ``--all`` is used, remove the kernel;
> 5. If kernel is not within *N* newest kernels (where *N* is the
> argument to ``-n``), remove it.

<https://github.com/mgorny/eclean-kernel/blob/master/README.rst>

Since the grub boot menu includes all kernels in /boot by default as
far as i know, it is probably necessary to run eclean-kernel with
--destructive and re-generate the boot menu afterwards.

Kind regards, tastytea



Re: [gentoo-user] net-libs/nodejs

2022-07-06 Thread tastytea
On 2022-07-07 00:19+0200 k...@aspodata.se wrote:

> Unfortunately it seems I cannon emerge nodejs due
> to this error:
> 
> /usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../
> x86_64-pc-linux-gnu/bin/ld:
>  failed to set dynamic section sizes: memory exhausted
> 
> I tried to stop every process except gettys and the login,
> still the same, no MAKEOPTS (i.e. no paralell builds) and
> EMERGE_DEFAULT_OPTS="--jobs 1 ...
> 
> The emerge line is:
> 
> [ebuild U ] net-libs/nodejs-18.3.0 [14.19.0]
>  USE="debug icu npm snapshot ssl system-icu system-ssl
>  -doc* -inspector -lto -pax-kernel -systemtap -test"
>  CPU_FLAGS_X86="sse2" 
> 
> Would dropping some use flags help ?
> I'm generally not interested in nodejs as such,
> it's just that firefox depends on it.

I'm not familiar with nodejs in particular, but dropping the debug
USE-flag will probably reduce the amount of memory it needs somewhat.
You could also add more swap, or look into zswap¹ or zram².

> When emergings with --skipfirst (i.e. skip nodejs),
> I get:
> emerge: It seems we have nothing to resume...
> 
> Checking dependancies:
> # emerge -vc net-libs/nodejs
> 
> Calculating dependencies   done!
>   net-libs/nodejs-14.19.0 pulled in by:
> www-client/firefox-91.9.0 requires >=net-libs/nodejs-10.23.1
> 
> So, why don't emerge build the other 100'ish packages ?
> Last time I did emerge nodejs, must I run emerge @world
> and let that fail first ?

Yes, --resume will always try to resume the last command that failed,
as far as i know.

> Regards,
> /Karl Hammar

Regards, tastytea

¹ <https://wiki.gentoo.org/wiki/Zswap>
² <https://wiki.gentoo.org/wiki/Zram>



Re: [gentoo-user] Boot has no space left.

2022-06-27 Thread tastytea
On 2022-06-27 05:03-0500 Dale  wrote:

> Guillermo García wrote:
> > Hello,
> >
> > I was updating my gentoo install, and now it says that /boot has 0
> > bytes, however i don't know why since i never save anything in that
> > folder.
> >
> > Any idea on what can i do?
> >
> > Thanks.
> >
> >
> >  
> 
> 
> I'd start by doing this:
> 
> du -shc /boot/* | sort -h
> 
> That will show the size of files in /boot and sort them from smallest
> to largest. It could be that you have a large number of kernels and
> maybe init thingys in there.  If so, some house cleaning may be
> required. 

app-admin/eclean-kernel can help with automating the house cleaning. 



Re: [gentoo-user] Re: Searching the list archives

2022-06-12 Thread tastytea
On 2022-06-12 10:17+0100 Peter Humphrey  wrote:

> On Sunday, 12 June 2022 09:04:30 BST Nuno Silva wrote:
> > On 2022-06-12, Peter Humphrey wrote:  
> > > Hello list,
> > > 
> > > Does any site out there offer a search function over its whole
> > > archive? Going through one month at a time is going to take for
> > > ever.  
> > 
> > I think the search feature at marc.info goes through the entire
> > archive at once:
> > 
> > https://marc.info/?l=gentoo-user  
> 
> Certainly does - thanks Nuno.
> 

Many search engines (like duckduckgo and qwant) allow limiting the
search to a specific site, for example: 
  site:https://archives.gentoo.org/gentoo-user/ whole archive



Re: [gentoo-user] emerge with another PATH

2022-05-20 Thread tastytea
On 2022-05-20 17:22+0200 k...@aspodata.se wrote:

> Neil Bothwick:
> > On Fri, 20 May 2022 15:55:22 +0200 (CEST), k...@aspodata.se wrote:  
> > > How do I run emerge so that when buildin/emerging the package
> > > another PATH is used ?  
> > 
> > PATH is just an environment variable, so
> > 
> > PATH="/path1:/path2" emerge blah
> > 
> > should do that.  
> 
> Doesn't seems to work...
> 
> # echo $PATH
> /usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2022/bin/x86_64-linux
> # emerge -aqvu  app-text/dblatex 
> ...
> # grep ^Err
> /Net/gentoo/tmpdir/portage/app-text/dblatex-0.3.11-r1/temp/build.log
> Error: not found: latex, makeindex, pdflatex, kpsewhich # which latex
> /usr/local/texlive/2022/bin/x86_64-linux/latex
> #
> 
> Something seems to set its own PATH.
> 
> Regards,
> /Karl Hammar

It probably reinitialises PATH when dropping to the portage user? Try
modifying PATH in /etc/portage/bashrc — note that this file is sourced
multiple times during the build, see
<https://wiki.gentoo.org/wiki//etc/portage/bashrc>.

Kind regards, tastytea



Re: [gentoo-user] gcolor2...

2022-04-16 Thread tastytea
On 2022-04-16 09:10+0100 Jorge Almeida  wrote:

> On Sat, Apr 16, 2022 at 8:14 AM Neil Bothwick 
> wrote:
> >
> > On Fri, 15 Apr 2022 22:47:26 +0100, Jorge Almeida wrote:
> >  
> > > ... is gone, essentially. Any suggestion regarding some
> > > alternative?  
> >
> > It's masked i portage and dead upstream, but that doesn't
> > necessarily mean it is no longer usable. If it still does what you
> > want, copy the ebuild to your overlay and unmask it by adding it to
> > /etc/portage/profile/package.unmask.
> >  
> Will try that. But the masking message says "Dead package upstream.
> Uses GTK+ 2". Does this mean that GTK+ 2 is on its way out as well?

It is on its way out, but there are still some packages blocking its
removal: <https://bugs.gentoo.org/768993>. I can't say for sure, but I
guess GTK+ 2 will stay at least another few months.

> (I suppose someone will make an ebuild for gcolor3 sooner or later...)

I just packaged it for ::guru.  It should become available in the
next days. If you can't wait, you can grab it from here:
<https://gitweb.gentoo.org/repo/proj/guru.git/tree/gui-apps/gcolor3?h=dev>.

Kind regards, tastytea




Re: [gentoo-user] Brother HL-L6200DW

2022-04-06 Thread tastytea
On 2022-04-06 19:05-0600 the...@sys-concept.com wrote:

> On 4/6/22 16:43, P Levine wrote:
> > On Wed, Apr 6, 2022 at 3:40 PM  > > wrote:
> > 
> > Does anybody have this printer?
> > 
> > Is there a driver in overlay to setup this printer?
> > 
> > Installing those drivers from rpm and cupswrapper is tiring.
> > 
> > I have a different brother printer but I used an ebuild from
> > brother-overlay
> >  as a
> > template. The closest to your printer would likely be
> > brother-hll8350cdw-bin-1.1.2-r1.ebuild
> > .
> > Rename to brother-hl6200dw-bin-1.1.2-r1.ebuild. Change the parts of
> > SRC_URI to match the download URI used to download the driver(s)
> > from the Brother website. Change instances of "hll8350cdw" to
> > "hll6200dw".  
> 
> This is a good idea. I've the files (modified them):
> brother-hl6200dw-bin-1.1.2-r1.ebuild and metadata.xml
> 
> My only question is which directory to put them in? I think:
> /usr/local/portage/(something)

That's described in
. In short:
eselect repository create 



Re: [gentoo-user] Firefox to LOCalc characterset translation

2022-03-27 Thread tastytea
On 2022-03-27 23:13+0100 Michael  wrote:

> On Sunday, 27 March 2022 23:04:21 BST tastytea wrote:
> > On 2022-03-27 22:35+0100 Michael  wrote:  
> > > I can't explain why the following cut 'n paste problem happens
> > > when I select some symbols within text in Firefox and then try to
> > > insert by middle-click in LibreOffice Calc.
> > > 
> > > If I select the symbols for £ (GBP), or € (Euro) and middle click
> > > upon a cell in LOCalc, a window pops up asking "Select the
> > > Language to Use for Import".  I leave it to "Automatic" which is
> > > the default setting and the symbol plus any text is pasted with
> > > the same format as the webpage.  The symbols are then displayed
> > > correctly in LOCalc.
> > > 
> > > However, if I enter a cell by double clicking on it, or by
> > > clicking in the edit bar, then middle click to enter the
> > > selection, both £ and € symbols are entered in some strange code
> > > - e.g. \u20ac  
> > 
> > I don't know why it is doing that or how to fix it, but the strange
> > code is a unicode code point. You can enter it in many terminal
> > emulators by pressing Control + Shift + u and then 20ac + Enter or
> > display it with echo "\u20ac".
> > 
> > Kind regards, tastytea  
> 
> Hmm ... I wonder if my setup is wrong?  This is what I get in UXterm
> and Konsole:
> 
> $ echo "\u20ac"
> \u20ac

Ah sorry, in bash that's echo -e "\u20ac". I was testing with zsh,
where -e is enabled by default.

> My locale.gen contains "en_GB.UTF-8 UTF-8" so I naively assumed
> applications would be able to translate code into characters.  Well,
> other applications do with LOCalc, but Firefox won't.  :-/




Re: [gentoo-user] Firefox to LOCalc characterset translation

2022-03-27 Thread tastytea
On 2022-03-27 22:35+0100 Michael  wrote:

> I can't explain why the following cut 'n paste problem happens when I
> select some symbols within text in Firefox and then try to insert by
> middle-click in LibreOffice Calc.
> 
> If I select the symbols for £ (GBP), or € (Euro) and middle click
> upon a cell in LOCalc, a window pops up asking "Select the Language
> to Use for Import".  I leave it to "Automatic" which is the default
> setting and the symbol plus any text is pasted with the same format
> as the webpage.  The symbols are then displayed correctly in LOCalc.
> 
> However, if I enter a cell by double clicking on it, or by clicking
> in the edit bar, then middle click to enter the selection, both £ and
> € symbols are entered in some strange code - e.g. \u20ac

I don't know why it is doing that or how to fix it, but the strange code
is a unicode code point. You can enter it in many terminal emulators by
pressing Control + Shift + u and then 20ac + Enter or display it with
echo "\u20ac".

Kind regards, tastytea



Re: [gentoo-user] gentoo for a virtual server in the cloud?

2022-03-18 Thread tastytea
On 2022-03-18 20:53+0100 n952162  wrote:

> On 3/18/22 20:40, Matthias Hanft wrote:
> > n952162 schrieb:  
> >> I rent a low-cost virtual server in the cloud.  The platform
> >> offers me some choices in linux distributions, but I'm wondering
> >> if I can compile gentoo to run on it.  Anybody have experience
> >> doing this?  
> > Yes.  I have a Remote Console using a Java Applet (via VPN) where I
> > can select an ISO image on my local disk (also for boot).  So the
> > Gentoo installation was just as straight forward as at home - no
> > problem.
> >
> > The prerequisite is, of course, that the provider does offer a
> > Remote Console and the ISO option.  I was lucky enough :-)
> >
> > -Matt
> >  
> 
> You booted the minimal install ISO and went through the steps of
> partitioning the disk, network, etc?
> 
> I was thinking that there were special drivers necessary for the
> virtual devices offered by the platform.  Maybe even proprietary
> 
> Maybe I don't understand it correctly.

Most providers just use the virtualization that is built into the Linux
kernel, the same QEMU/KVM that you can setup yourself with libvirt. You
need to select some VIRTIO drivers but that's about the only difference
to a “normal” system. As far as I know sys-kernel/gentoo-kernel{,-bin}
has everything needed built in.

See also .



Re: [gentoo-user] gentoo for a virtual server in the cloud?

2022-03-18 Thread tastytea
On 2022-03-18 20:03+0100 n952162  wrote:

> I rent a low-cost virtual server in the cloud.  The platform offers me
> some choices in linux distributions, but I'm wondering if I can
> compile gentoo to run on it.  Anybody have experience doing this?

If the platform offers you access to the VGA output via VNC or whatever
and lets you mount an ISO in a virtual DVD drive, it pretty much works
like any other Gentoo install.

Another option is to shrink your filesystem and partition, make a new
partition and install Gentoo from the old install.

You could also try to make Grub boot into an ISO in your /boot
partition. If you don't have access to the VGA output, you could try to
find a ISO that starts an SSH server automatically and lets you set the
password via the kernel cmdline.

Kind regards, tastytea



Re: [gentoo-user] Dlang questions, problem emerging gtkd and how to emerge gdc_11_ 2 ?

2022-03-02 Thread tastytea
On 2022-03-02 09:27-0500 Chris Phillips  wrote:

> !!! The ebuild selected to satisfy "dev-libs/gtkd" has unmet
> requirements.
> - dev-libs/gtkd-3.9.0::dlang USE="opengl -dmd-2_074 -dmd-2_075
> -dmd-2_076 -dmd-2_077 -dmd-2_078 -dmd-2_079 -dmd-2_080 -dmd-2_081
> -dmd-2_082 -dmd-2_083 -dmd-2_084 -dmd-2_085 -dmd-2_086 -dmd-2_087
> -dmd-2_088 -dmd-2_089 -dmd-2_090 -dmd-2_091 -dmd-2_092 -dmd-2_093
> -dmd-2_094 -dmd-2_095 -gdc-11_2_0 -gstreamer -ldc2-1_25 -peas
> -sourceview -static-libs -vte" ABI_X86="(64) -32 (-x32)"
> 
>   The following REQUIRED_USE flag constraints are unsatisfied:
> any-of ( dmd-2_076 dmd-2_077 dmd-2_074 dmd-2_075 dmd-2_078
> dmd-2_079 dmd-2_089 dmd-2_088 dmd-2_083 dmd-2_082 dmd-2_081 dmd-2_080
> dmd-2_087 dmd-2_086 dmd-2_085 dmd-2_084 dmd-2_090 dmd-2_091 dmd-2_092
> dmd-2_093 dmd-2_094 dmd-2_095 gdc-11_2_0 ldc2-1_25 )

This tells you that dev-libs/gtkd needs at least one of (any-of) the
listed USE flags. You can enable USE flags in
/etc/portage/package.use¹. For example, to enable gdc-11_2_0:

echo 'dev-libs/gtkd gdc-11_2_0' >> /etc/portage/package.use/dlang

Kind regards, tastytea


¹ <https://wiki.gentoo.org/wiki//etc/portage/package.use>



Re: [gentoo-user] Reproducible Installation Lists?

2022-02-26 Thread tastytea
On 2022-02-26 14:12+ Wols Lists  wrote:

> On 26/02/2022 13:20, Ramces Tampo-og Red wrote:
> >> This is the page which explains how to build binary packages on
> >> one host and then install them on other PCs, without having to
> >> re-complile/rebuild them from source:
> >>
> >> https://wiki.gentoo.org/wiki/Binary_package_guide
> >>
> >> It saves a lot of time, especially if you want to update slower
> >> machines.  
> > Thanks! I've been thinking of doing something like this too or
> > probably distcc. But yeah, I'll check this out.  
> 
> Ummm ...
> 
> I notice it requires portage 3.0.31.
> 
> My system (updated last week) is on 3.0.30. So it's VERY new, I
> presume ...

3.0.31 is only required for the new format (GPKG). Binary packages are
supported since at least 2011 (the first version of the linked article
is from 2011-10-12).



Re: [gentoo-user] Reproducible Installation Lists?

2022-02-26 Thread tastytea
On 2022-02-26 05:07-0600 Dale  wrote:

> Ramces Tampo-og Red wrote:
> > Hello list,
> >
> > I'm a sort-of  newbie gentoo user and  I just wanted to ask  if
> > what I'm thinking is possible or if I'm just  being stupid. But
> > either way, I was wondering if it  is possible to export a list  of
> > all installed software in emerge and use that to recreate on
> > another gentoo install.
> >
> > I have  a bunch of PCs  that are all  similarly specced and I
> > wanted to create a minimal install "template" for all of them. If
> > not, would it be possible to pipe-in to emerge from stdin an output
> > of all of the package names that I wanted it to emerge?
> >
> > I'm really sorry if this might  be a stupid question. I'd
> > appreciate any guidance in the matter.
> >
> > Cheers!
> >  
> 
> 
> There is a file that contains all the packages you have installed.  It
> is located here:
> 
> /var/lib/portage/world
> 
> One could copy that file to another system and do a emerge @world to
> install the same list of packages.  Depending on what all you have
> installed, it could confuse emerge and not be doable.  In the past, I
> had a copy of the file and I emerged them a few at a time.  It's worth
> trying by just coping the file tho.  It just might work. 

It is safer to copy the world file to /etc/portage/sets/¹ and then
emerge the set. This way portage won't think that the packages are
already installed. So you could copy it to
/etc/portage/sets/minimal-install and install it with emerge -a
@minimal-install.

Kind regards, tastytea

¹ <https://wiki.gentoo.org/wiki//etc/portage/sets>



Re: [gentoo-user] Kernel config thingy, "make menuconfig"

2022-01-15 Thread tastytea
On 2022-01-15 23:13-0600 Dale  wrote:

> tastytea wrote:
> > On 2022-01-15 21:04-0600 Dale  wrote:
> >  
> >> Grant Taylor wrote:  
> >>> On 1/15/22 7:47 AM, tastytea wrote:
> >>>> Did you know you can search with / and then jump to the results
> >>>> with the number keys?
> >>> I've been using the search for decades*.  But I didn't know about
> >>> the number keys to jump until reading this message and trying it.
> >>> #TIL
> >>>
> >>> *Yes, I've been using Linux for more than two decades.  It's been
> >>> my primary desktop for almost all of that time too.  
> >> You are not alone Grant.  I started with my first puter back in
> >> 2003 and I had no idea about the number thing.  I gave it a test
> >> run and gosh darn it, it worked.  That's a lot better than trying
> >> to hunt the thing down.   
> > I only learned about it a few years ago, after more than 10 years of
> > compiling kernels. Maybe someone s
> >
> >
> >  
> 
> 
> I think you got cut off up there.  O_o

Oops! I meant to say: Maybe someone should add a help text to the
interface. 

> This is one thing about this list.  I'm always finding some tidbit of
> info that makes something easier.  My problem, remembering it. 

Yeah, I'm pretty sure I learned this trick from this list (or was it
one of the IRC channels? 樂).

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpzN_K5k6Z5w.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Kernel config thingy, "make menuconfig"

2022-01-15 Thread tastytea
On 2022-01-15 21:04-0600 Dale  wrote:

> Grant Taylor wrote:
> > On 1/15/22 7:47 AM, tastytea wrote:  
> >> Did you know you can search with / and then jump to the results
> >> with the number keys?  
> >
> > I've been using the search for decades*.  But I didn't know about
> > the number keys to jump until reading this message and trying it.
> > #TIL
> >
> > *Yes, I've been using Linux for more than two decades.  It's been my
> > primary desktop for almost all of that time too.
> 
> You are not alone Grant.  I started with my first puter back in 2003
> and I had no idea about the number thing.  I gave it a test run and
> gosh darn it, it worked.  That's a lot better than trying to hunt the
> thing down. 

I only learned about it a few years ago, after more than 10 years of
compiling kernels. Maybe someone s



-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpuVFLcX9WTx.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Kernel config thingy, "make menuconfig"

2022-01-15 Thread tastytea
On 2022-01-15 22:38+0800 Andrew Lowe  wrote:

> Dear all,
>   I'm in the process of fiddling around with the config of my
> kernel. This means using the "menu config thingy" that "make
> menuconfig" builds. It is very frustrating. Does anyone know why
> stuff is not in alphabetical order? It's a pain in the clacka trying
> to find some of the entries. For example "Device Drivers -> Android".
> You would expect it to be near the top of the device drivers, but no,
> it's near the bottom.
> 
>   No, I'm not expecting anyone to "fix" it, just basically a
> whinge.
> 
>   Andrew
> 

Yeah, someone should clean that thing up… But I guess a lot of people
would complain because they are used to the current structure. 

Did you know you can search with / and then jump to the results with
the number keys?

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpMzB1Jj7xF8.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] TLD for home LAN?

2022-01-15 Thread tastytea
On 2022-01-15 10:33+ Peter Humphrey  wrote:

> Hello list,
> 
> Rich F said recently, "I'd avoid using the .local TLD due to RFC
> 6762."
> 
> That brings me back to a thorny problem: what should I call my local
> network? It used to be .prhnet, but then a program I tried a few
> years ago insisted on a two-component name, so I changed it to
> .prhnet.local.
> 
> Now I've read that RFC - well, Appendix G to it - and I'm scratching
> my head. I suppose it's possible that someone may want to connect an
> Apple device to my network, so perhaps I should clear the way for
> that eventuality.
> 
> So, what TLD should I use? Should I use .home, or just go back to
> .prhnet? It isn't going to be visible to the Big Bad World, so does
> it even matter?
> 

ICANN rejected .home as a TLD¹ because of name collision issues in
private networks, so that should be fine.

Another solution would be to register an inexpensive domain name and use
that. 

Kind regards, tastytea

¹ <https://en.wikipedia.org/wiki/.home>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpE3iuWSCudC.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How do I get a core dump from seg-faulting software?

2021-12-16 Thread tastytea
On 2021-12-16 15:55+ Alan Mackenzie  wrote:

> Hello, Gentoo.
> 
> I'm developing software, and it crashes in its build process.  I want
> a core dump, to help find out where and why it's crashing.
> 
> I've got CONFIG_ELF_CORE and CONFIG_COREDUMP both configured to yes in
> my kernel.
> 
> When I do
> 
> $ uclimit -H -c
> 
> , it tells me "unlimited".
> 
> But still, no dump.  :-(
> 
> What am I missing?
> 

You need to enable them explicitly. If you're using PAM:
echo '* soft core unlimited' > /etc/security/limits.conf

It only has an effect after your next login. For more information, see
<https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces#Core_dumps>.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp7XfGoxib5P.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Local mail delivery agent (MDA) wanted

2021-12-13 Thread tastytea
On 2021-12-13 23:12+0100 Frank Steinmetzger  wrote:

> Am Mon, Dec 13, 2021 at 10:34:08PM +0100 schrieb Frank Steinmetzger:
> 
> > Using strace, I found out that mail from mailx puts those mail into
> > /var/spool/clientmqueue/, one file per mail, but not in a maildir
> > structure.  
> 
> OK, I found out that this is the usual outgoing queue which needs to
> be processed by sendmail, probably through another cronjob or a
> process that itself checks that directory periodically.

Hmm, I'm pretty sure this worked a few years ago. I just tested it on a
system on which I didn't configure mail before. My mails ended up in
/var/spool/nullmailer/queue. :-(

> > In many places I read that system mail—by default—goes into
> > /var/spool/mail/, but until now I’ve yet to observe this
> > behavior.  
> 
> It’s really not easy to find a description of the default setup of
> olden days (or I’m simply using the wrong search terms). Because when
> you search for something like unix local mail setup, most results are
> about setting up an SMTP server. In hindsight—perhaps that is simply
> the way to go. :-/

A lot of packages depend on virtual/mta, including mailx. It seems you
have no choice but to configure one of the MTAs virtual/mta depends on.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp5j9YxUaexa.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Local mail delivery agent (MDA) wanted

2021-12-13 Thread tastytea
On 2021-12-12 14:25+0100 Frank Steinmetzger  wrote:

> Hey list,
> 
> I am looking for an as-simple-as-possible setup for local mail
> delivery. What I mean by that is: the mail shall go into
> /var/spool/mail locally, which is why I deem it overkill to set up
> and run a complicated smtpd daemon with its own config file language.

mail-client/mailx provides /usr/bin/mail which can be used for looking
at mail in /var/spool/mail/ and for sending it to local users. No
configuration necessary. cron and other software will automatically use
it.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpLDDiu5qCL4.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] "Broken soname dependencies found" after portage upgrade

2021-12-12 Thread tastytea
On 2021-12-12 18:11+0200 Nikos Chantziaras  wrote:

> After upgrading from portage 3.0.28 to 3.0.30, I get this when doing 
> emerge --depclean:
> 
> Calculating dependencies... done!
>   * Broken soname dependencies found:
>   *
>   *   x86_64: libexpat.so required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm_compat.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: liblttng-ust.so.0 required by:
>   * dev-dotnet/dotnet-sdk-bin-6.0.100
>   *
>   *   x86_64: libreadline.so.6 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libgdbm.so.3 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>   *   x86_64: libbz2.so.1.0 required by:
>   * app-emulation/vmware-workstation-16.2.1.18811642-r1
>   *
>  >>> No packages selected for removal by depclean  
> 
> What does it even mean?

It means the binary wants to load some libraries (like libexpat.so)
portage can't find.

> (And before anyone asks, the software works just fine, and neither 
> revdep-rebuild nor revdep-rebuild.sh find anything wrong.)

But vmware (or rather, the linker) seems to find them. Maybe they are in
the same directory as the binary and portage doesn't search there? You
can check which libraries exactly the binary wants to load with ldd.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpcpA4f0qLHX.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Bash prompt colours

2021-12-03 Thread tastytea
On 2021-12-03 11:17+ Peter Humphrey  wrote:

> Hello list,
> 
> Is there a way to set the colour of a bash prompt according to
> whether the user has SSH'd in?
> 
> This machine is a compile host for some others on the LAN, and it
> would be helpful if it were more obvious that I'm connected to
> another machine. Of course, the standard prompt tells me the machine
> name, but something more conspicuous would help.

When you are connected via SSH, the environment variable SSH_CONNECTION
is set. I store the color in a variable and set it to yellow if 
`[[ -n "${SSH_CONNECTION}" ]]`. I can't give you the exact snippet
since I use Zsh, but it should be possible to use a variable as color
in bash's prompt?

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpPmG8W_1HhU.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Switching from eudev to udev, disaster.

2021-11-29 Thread tastytea
On 2021-11-29 23:19-0600 Dale  wrote:

> Matt Connell wrote:
> > On Mon, 2021-11-29 at 22:47 -0600, Dale wrote:  
> >> Now if I can figure out how to reset the list of /dev/sd* names
> >> that are lurking about and inconsistent, that would be like
> >> striking gold.  Every time I hook up my external drive, it gets a
> >> different sd* name.  It does the same on the SD cards from my
> >> trail cameras too but I can auto mount those.   
> > I'd suggest using the UUIDs for the disks (acquired via the blkid
> > command) and adding them to your /etc/fstab ... That's always been
> > my solution to commonly-connected-but-never-permanently external
> > disks.
> >
> > It won't ensure the same sd* name, but it will ensure that they get
> > mounted consistently where you expect them to be.
> >
> >
> >  
> 
> 
> Thanks to both for the idea.  My problem isn't mounting, it's
> decrypting the drive.  I use cryptsetup and I have to give the sd*
> name for both my external drives.  The way I do now, I type in the
> command to the sd point and hit tab twice.  Once the drive gets spun
> up, I hit tab again. Whichever one adds a 1 on the end is the one
> picked.  Thing is, it's rarely the same one so I have to test to see
> which one it picks.  I wish it would either reset itself or pick the
> same one each time.  I already know to ignore sda, sdb, sdc, sdd and
> sde. 
> 
> If it wasn't encrypted, it would be a good idea.  I sometimes wish
> there was a GUI way to do it that allows me to set my own mount
> point.  There are GUI crypt programs but they set their own mount
> points.  Plus, the command line is fairly easy.  The password is the
> hard part.  Good luck NSA.  ROFL 

If the partition table is GPT (instead of msdos compatible), you can
set a label to the partition itself with gparted (right click →
name partition) and then access it via /dev/disk/by-partlabel/. That
works for encrypted partitions too, since the name is stored in the
partition table and not the file system.

Kind regards, tastytea


-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpvHFgnrSW0v.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Switching from eudev to udev, disaster.

2021-11-29 Thread tastytea
On 2021-11-29 22:47-0600 Dale  wrote:

> Now if I can figure out how to reset the list of /dev/sd* names that
> are lurking about and inconsistent, that would be like striking gold.
>  Every time I hook up my external drive, it gets a different sd*
> name.  It does the same on the SD cards from my trail cameras too but
> I can auto mount those. 

I don't think it is possible to get consistent sd* names for removable
media. But you could use volume labels with `tune2fs -L` or `tune.exfat
-L` or `fatlabel` and then mount them via /dev/disk/by-label/*.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpwc3q7qeVz5.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Git change logs

2021-11-29 Thread tastytea
On 2021-11-29 10:26+ Peter Humphrey  wrote:

> Hello list,
> 
> Today's update includes sys-devel/gcc-11.2.1_p20211127, up from
> 11.2.1. I wanted to find out what changes had been introduced, so I
> went searching for the change log. I sync gentoo with git, so it
> should be easy to find the log. Google found references to git log,
> but when I tried it I got this:
> 
> /var/db/repos/gentoo # git log sys-devel/gcc-11.2.1_p20211127
> fatal: ambiguous argument 'sys-devel/gcc-11.2.1_p20211127': unknown
> revision or path not in the working tree.
> Use '--' to separate paths from revisions, like this:
> 'git  [...] -- [...]'
> 
> So I did that, but whatever I tried returned 'bad revision'. What's
> the proper syntax?

If you want the history for a file, you need to specify the full path:

git log sys-devel/gcc/gcc-11.2.1_p20211127.ebuild

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpeGvLWoh8Fd.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Switching from eudev to udev, disaster.

2021-11-28 Thread tastytea
On 2021-11-28 11:50-0500 Jack  wrote:

> This switch is NOT bringing in systemd.  It is just switching which 
> package is now providing udev as extracted from systemd. The news
> item actually gives a bit more detail.
> 
> The network name switch (which I had thought was mentioned in the new 
> item, but apparently is not, so I don't remember where I read it) is
> not directly due to eudev vs. udev, but to the "new" (years old at
> this point) switch to consistent naming (or something like that) so
> your network is probably something like enp20s2, reflecting which
> slot your network card is physically in.  I'm pretty sure there is a
> kernel boot parameter which forces the old way, but can't find it
> now, as I switched to the new naming with eudev, so switching to udev
> didn't break anything for me.

The name switch is announced via a warning message when you emerge udev:

WARN: postinst

udev-249 defaults to predictable interface renaming, as described in
the URL below:
https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames

If you wish to disable this, please see the above documentation, or set
net.ifnames=0 on the kernel command line.

You can change settings for log messages in make.conf, see
/usr/share/portage/config/make.conf.example for documentation (search
for PORTAGE_ELOG). I have
PORTAGE_ELOG_SYSTEM="save echo:error,warn,log" in my make.conf. echo
means the messages are displayed again when emerge exits.

> […]

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpjFa3IJ8OoN.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] youtube-dl has been very slow

2021-11-15 Thread tastytea
On 2021-11-15 11:42-0700 Skippy  wrote:

> On 11/15/21 09:14, tastytea wrote:
> 
> snip
> 
> >>
> >> When in gPodder i enable use of Youtube-dl I get the message
> >>
> >> Extension cannot be activated.
> >> Python module not found: youtube_dl  
> > 
> > That looks like it does not use the program, but the python module
> > directly. You could try if symlinking
> > /usr/lib/python3.9/site-packages/yt_dlp to
> > /usr/lib/python3.9/site-packages/youtube_dl helps. Replace python3.9
> > with your version of course.
> > If that works, please file a bug on bugs.gentoo.org.
> >   
> >> Anyone know how to make gPodder use yt-dlp?
> >>
> >> Do I simply need a link that sends youtube_dl to yt-dlp?  
> > 
> > yt-dlp already installs a wrapper script in /usr/bin/youtube-dl.
> > 
> > Kind regards, tastytea
> >   
> 
> I created the symlink as you instructed and it appears to be working. 
> When I enable use of youtube-dl in gPodder I get no error messages.
> I just added a youtube feed and am downloading some videos.
> 
> Thanks for the assistance.
> 
> In regards to filing a bug - I'm unclear exactly what the bug is.  Is 
> the bug the fact that gPodder will not use yt-dlp in place of
> youtube-dl without your work-around?

It's not really a bug, more a workaround for projects that haven't
switched yet. I thought it makes sense to let the ebuild add the
symlink since yt-dlp and youtube-dl can't be installed at the same time.

But ionen mentioned in the other reply¹, that

> While the "youtube-dl" command from the yt-dlp ebuild is mostly
> compatible, the python module can need small workarounds so opted
> not to symlink the module in the ebuild.

So it seems to be not such a good idea. 

¹ 
<https://archives.gentoo.org/gentoo-user/message/c76c383b9ff73e7c9cd48f76bad4f752>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpiG6UhGwEvK.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] youtube-dl has been very slow

2021-11-15 Thread tastytea
On 2021-11-15 08:33-0700 Skippy  wrote:

> On 11/6/21 14:51, tastytea wrote:
> snip
> 
> > 
> > The fork everyone is using now is yt-dlp (net-misc/yt-dlp). It
> > downloads with normal speeds. The newest version of the ebuild
> > installs a compatibility-wrapper so programs calling youtube-dl will
> > automatically use yt-dlp instead.
> > 
> > Kind regards, tastytea
> >   
> 
> I didn't know abouot yt-dlp either. Thanks for the info.  I installed
> it but it will not work with gPodder.
> 
> When in gPodder i enable use of Youtube-dl I get the message
> 
> Extension cannot be activated.
> Python module not found: youtube_dl

That looks like it does not use the program, but the python module
directly. You could try if symlinking
/usr/lib/python3.9/site-packages/yt_dlp to
/usr/lib/python3.9/site-packages/youtube_dl helps. Replace python3.9
with your version of course.
If that works, please file a bug on bugs.gentoo.org.

> Anyone know how to make gPodder use yt-dlp?
> 
> Do I simply need a link that sends youtube_dl to yt-dlp?

yt-dlp already installs a wrapper script in /usr/bin/youtube-dl.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp3lRqRCXNS5.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] sudo-1.9.8_p2 produces Segmentation Fault on any use

2021-11-09 Thread tastytea
On 2021-11-09 22:36+0200 Anton  wrote:

> On a recent update, `sudo` got upgraded from sudo-1.9.6_p1-r2 to 
> sudo-1.9.8_p2. Since then, any call to `sudo` other than `sudo
> --help` resulted in a Segmentation Fault. I have tried remerging sudo
> again or remerging the PAM-related dependencies, but it did not help.
> Switching back to 1.9.6, however, resulted in a working sudo.
> 
> Is it just me, or has anybody else seen a similar problem?

I'm using it for about a week without problems. Compiled with 
USE="nls pam secure-path sendmail ssl -gcrypt -ldap -offensive -sasl
(-selinux) -skey -sssd"

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpilgAHgtvBw.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] youtube-dl has been very slow

2021-11-06 Thread tastytea
On 2021-11-06 16:32-0400 John Covici  wrote:

> Hi.  If I try to play a youtube video using a console app like mpv, or
> if I try to download a youtube video directly by using youtube-dl, the
> speed is about dialup speed.  Now, I have a Winblows box in the same
> network and I don't get the slowdown.  I have a program there which
> downloads the same exact youtube video quite rapidly.  Is youtube-dl
> doing something wrong maybe by having a wrong user agent, or is there
> something else to be done?  My version is 2021.06.06.  This seems
> quite old to me for this program.
> 
> Thanks in advance for any suggestions.
> 

Google changed something to make youtube-dl slow and its development
seems to have stopped.

The fork everyone is using now is yt-dlp (net-misc/yt-dlp). It
downloads with normal speeds. The newest version of the ebuild installs
a compatibility-wrapper so programs calling youtube-dl will
automatically use yt-dlp instead.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpPDHK4xJseT.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] acrobat reader

2021-09-22 Thread tastytea
On 2021-09-22 13:29-0600 the...@sys-concept.com wrote:

> On 9/22/21 1:19 PM, Jack wrote:
> > On 2021.09.22 15:06, the...@sys-concept.com wrote:  
> >> I have a pdf fillable form which I can only open in acrobat reader
> >> on Windows.
> >>
> >> Which package do I use to read these form on Gentoo?  
> > You should be able to read them with any PDF reader.  Not all
> > readers will allow you to fill in the forms and save with the
> > inserted data.  I use Okular for that, but the dependencies may be
> > a lot if you don't already run KDE.  I wouldn't be surprised if the
> > Gnome PDF reader (evince?) can also do it.
> > 
> > Jack  
> 
> I have evince, it will not open it.
> 
> This is the form I'm trying to open:
> 
> https://cfr.forms.gov.ab.ca/Form/AHC0102.pdf
> 

Okular 21.04.3 won't work either, I got a message box claiming I need
a newer version of Acrobat Reader and the content of the PDF is a
placeholder that reads “[…] your PDF viewer may not be able to display
this type of document […]”.

A warning above the document says that the document contains XFA forms
that are not supported.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp7fb5qm1BIK.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] pm-suspend replacement?

2021-09-19 Thread tastytea
On 2021-09-19 20:24+ Alan Mackenzie  wrote:

> […]
> > Or maybe I'll try and find pm-suspend again on the web.  Maybe it
> > had some feature (or bug workaround) which the more modern packages
> > are lacking.  
> 
> That's just what I did.  A web search for pm-utils found it easily
> enough.  pm-suspend works again, and I'm a happy chappy - almost.  Why
> was pm-utils taken off of portage in the first place?  Was there some
> sort of security problem, or was it just because it hadn't been
> updated in a fair while (since 2013, I think)?

It was removed because upstream abandoned it. It was announced in

which references .

> That's another feature missing from portage - a systematic way of
> discovering why a package has been removed.

`eselect news read all | less` is sometimes helpful. 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgptJiqjKlwlq.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How to create a local overlay?

2021-09-19 Thread tastytea
On 2021-09-19 16:23+0200 Dr Rainer Woitok 
wrote:

> Greetings,
> 
> recently I received an "*.ebuild" file  for a little piece of
> software I need.  However, trying to find instructions in the Gentoo
> wiki regarding the creation of a local overlay utilizing this ebuild
> file up to now on- ly revealed confusing and/or outdated information.
> 
> Could anybody point me to some up-to-date guide explaining how to
> create a local overlay  which just utilizes  this ebuild file  and
> the external Git repository specified within it?

`eselect repository create localrepo` will create an overlay (now
officially called repository) in /var/db/repos/localrepo.

<https://wiki.gentoo.org/wiki/Custom_ebuild_repository>

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpIHx33sY9C9.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] revisit bouncing messages from this list

2021-09-19 Thread tastytea
On 2021-09-18 18:00-0400 Jack  wrote:

> I reread most of two threads about this from 2018 and 2019, and there
> was a post that seemed to imply there was a way to translate the  
> message number (196927 was the latest from this list for me) to a URL
> to see the message in the list archives at gentoo.org.  Does such a  
> translation actually exist, and can someone point me to it?

You can search the message with marc.info, the syntax is
<https://marc.info/?i=[Message-Id]>, for your e-mail it would be
<https://marc.info/?i=RNSQBYSM.LJDOAC3M.UQQ2ORSM@3SFUADZQ.IVSRWZWW.352VGHH4>.

Or you could use a web search machine and search for
site:archives.gentoo.org "RNSQBYSM.LJDOAC3M.UQQ2ORSM@3SFUADZQ.IVSRWZWW.352VGHH4"

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp9P9dTWKAyk.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] pm-suspend replacement?

2021-09-18 Thread tastytea
On 2021-09-18 18:39+ Alan Mackenzie  wrote:

> Hello, Gentoo.
> 
> I used to have a utility pm-suspend which would suspend the current
> state of the machine to RAM (or, maybe to the swap partition) and shut
> the machine down to a resting state.  A keypress or mouse movement
> would restore full functionality in a few seconds.
> 
> I think I lost this program in the emerge --depclean I did a couple of
> months ago (the one that wanted to make my machine unbootable).
> 
> Is there anything to take its place?  In particular I want actively to
> put the machine into resting state (as opposed to it happening after a
> period of inactivity), and I would prefer to do this without having to
> start a GUI session.
> 
> I feel there must be something like this in portage, I just don't know
> how to find it.
> 
> Thanks for the help!
> 

`loginctl suspend`[1] if you use sys-auth/elogind. `echo mem >
/sys/power/state`[2] if not.

[1] 
[2] 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp8XLdUQN6XG.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Updating old Gentoo on notebook

2021-09-13 Thread tastytea
On 2021-09-13 15:59-0400 "Walter Dnes"  wrote:

>   I have a notebook that I haven't updated for a while.  After emerge
> sync, it said to "emerge -1 portage".  Trying to do so got me the
> following as listed in the gzipped attachment.  I'd really rather not
> re-install.  Is there a way to get out of this?
> 

Looks like some packages want python 3.8 and some python 3.9. If you
emerge portage with USE="PYTHON_TARGETS: python3_8 -python3_9" first
and then again normally it might work.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpaLcsiGRaWy.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] how to run freerdp

2021-08-30 Thread tastytea
On 2021-08-30 21:10+0200 n952162  wrote:

> I just emerged freerdp-2.3.2 without issue, but there's no executable
> except /usr/bin/winpr-*, which I think just serve to set up an
> authentication system.
> 
> There's no freerdp, xfreerdp, xfreerdp-server, or anything.
> 
> What am I not thinking about?

I have the same version and it installed /usr/bin/xfreerdp. I guess
you are missing a useflag? I have X alsa cups ffmpeg gstreamer jpeg
pulseaudio usb xinerama xv enabled.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpfI_wZRETGS.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How to cmake?

2021-08-26 Thread tastytea
On 2021-08-26 15:59+0100 Peter Humphrey  wrote:

> On Thursday, 26 August 2021 15:39:53 BST tastytea wrote:
> 
> > Don't run cmake in src/, run it in the directory src is in.  
> 
> I have been doing so.
> 
> --->8  
> 
> > # This configures the build (checks for dependencies and so on)
> > cmake -S . -B build
> > # This compiles the sources
> > cmake --build build
> > 
> > The binary is in ./build/src/kdfm – you can install it globally with
> > sudo cmake --install build  
> 
> Excellent! Many thanks, kind Sir!

You're welcome. 

> Aside: how much training and experience would be needed to reach that 
> level of competence?

It's really easy… if you're a programmer who uses cmake every day. 
I would expect projects to put this info into the readme file (and most
do), but apparently they didn't think that users might want to compile
it? 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpjZe8lKgGkN.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How to cmake?

2021-08-26 Thread tastytea
On 2021-08-26 15:24+0100 Peter Humphrey  wrote:

> On Thursday, 26 August 2021 10:49:38 BST tastytea wrote:
> 
> > You need to run cmake in the directory that has the top-level
> > CMakeLists.txt. Use cmake -S . -B build from the top-level
> > directory. This whill use . as source directory and build as build
> > directory. You will need kde-frameworks/extra-cmake-modules.¹  
> 
> Okay, I did that. It ran for much longer, and threw no errors, and
> once again it ended with 'Build files have been written to:
> /usr/local/src/kdfm-code/src'. Then:

Don't run cmake in src/, run it in the directory src is in.

> -- Could not set up the appstream test. appstreamcli is missing.

appstreamcli is in dev-libs/appstream.

> Have the build files been written or not? What do I do with them?

# This configures the build (checks for dependencies and so on)
cmake -S . -B build 
# This compiles the sources
cmake --build build

The binary is in ./build/src/kdfm – you can install it globally with 
sudo cmake --install build

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgps3vbz9I8Pk.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] How to cmake?

2021-08-26 Thread tastytea
On 2021-08-26 03:49+0100 Peter Humphrey  wrote:

> Hello list,
> 
> I wanted to try KDFM, which I read about in Linux Format. It's a file
> manager with some interesting features. So I went to
> sourceforge.net/projects/kdfm, downloaded the source and extracted it
> to /usr/local/src/kdfm-code.
> 
> What do I do next? I tried 'cmake ./src' and similar and got Unknown
> CMake command "qt5_wrap_ui". Googling for that found a few helpful
> pages, but I think I'd need to be a Qt5 developer to understand them.
> 
> Can anyone point me in the direction to find out what to do?
> 

You need to run cmake in the directory that has the top-level
CMakeLists.txt. Use cmake -S . -B build from the top-level directory.
This whill use . as source directory and build as build directory.
You will need kde-frameworks/extra-cmake-modules.¹

Kind regards, tastytea

¹ <https://sourceforge.net/p/kdfm/code/ci/master/tree/CMakeLists.txt#l8>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp4x8afrs6Mt.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] VirtualBox UI

2021-08-21 Thread tastytea
On 2021-08-21 20:42+0200 p...@xvalheru.org wrote:

> Hi,
> 
> I didn't use VirtualBox for a while and I find out that
> virtualbox-bin package has dissapeard. So I've installed virtualbox
> 6.1.22 but there's missing VurtualBox command to tun graphical
> management. Is there other UI for VirutalBox?

You need to make sure the headless use-flag is disabled and the qt5
useflag is enabled if you want the GUI.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpUfh1zlAYeX.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] --depclean wants to remove openrc. Yikes!

2021-07-25 Thread tastytea
On 2021-07-25 13:26+0100 Wols Lists  wrote:

> On 25/07/21 12:47, Alan Mackenzie wrote:
> >> They are, @system is a set of packages and nothing it it will be  
> >> > depcleaned. However, openrc is not part of @system, the virtual
> >> > is.  
> 
> > Ah, that's it.  So we have critical system packages which aren't
> > part of @system.  I think openrc is a critical system package.
> >   
> Well, it's not installed on my new system. I doubt it's installed on
> any new-ish gentoo-gnome systems. So openrc itself can't be critical.
> 
> It may be critical for *your* system ... :-)
> 
> Let's rephrase it - "openrc is one of the (optional) packages that
> satisfied a critical dependency". Your problem is caused because you
> have explicitly installed an alternate package that satisfies the same
> critical dependency.

Maybe OpenRC should come pre-recorded into @world on profiles that
default to it. If I switch to another init system I can explicitly
uninstall OpenRC. Forgetting to uninstall it is no big deal.
Accidentally uninstalling it makes my system unbootable.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpkXNEeQ2rTz.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] --depclean wants to remove openrc. Yikes!

2021-07-21 Thread tastytea
On 2021-07-21 20:06+ Alan Mackenzie  wrote:

> Hello, Gentoo.
> 
> As prompted after the recent perl update, I did # emerge --depclean
> -va.
> 
> emerge included openrc (the only version of it on my system) in the
> packages it planned to remove.  It was kind enough to give me a
> warning that this "might" do bad things, but I was somewhat shocked
> to see it there at all.  I might have accidentally typed 'y' instead
> of 'n'.
> 
> Maybe the program wants revenge at me executing so seldomly.  Or
> something like that.
> 
> But now, my question is how can I trust --depclean even a little bit
> after that?  Do I have to go through all the package versions,
> manually removing the obsolete ones?  There are several hundred.  :-(

I'm not sure why it would want to remove openrc, as far as I know it
should be part of the @system set unless you're on a systemd profile.

You can record it in your @world set with `emerge --select --noreplace
sys-apps/openrc`. That should prevent accidental removals.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpwm5jgbCOgs.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] dev-lang/php-7.4.21-r1::gentoo failed (compile phase)

2021-07-17 Thread tastytea
On 2021-07-17 15:13-0600 the...@sys-concept.com wrote:

> On of my system is giving me an error when compiling php
> 
> In file included from /usr/include/libxml2/libxml/parser.h:812,
>  from
> /var/tmp/portage/dev-lang/php-7.4.21-r1/work/sapis-build/cli/ext/libxml/libxml.c:34:
> /usr/include/libxml2/libxml/encoding.h:31:10: fatal error:
> unicode/ucnv.h: No such file or directory 31 | #include
>  |  ^~~~ compilation terminated.
> make: *** [Makefile:461: ext/libxml/libxml.lo] Error 1
> make: *** Waiting for unfinished jobs
>  * ERROR: dev-lang/php-7.4.21-r1::gentoo failed (compile phase):

/usr/include/unicode/ucnv.h belongs to dev-libs/icu. It looks like
dev-libs/libxml2 needs it even if it is installed with USE="-icu". Could
you report the bug on <https://bugs.gentoo.org/>?

As a workaround, re-install dev-libs/libxml2 with USE="icu".

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp1aDvT4lpaM.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-16 Thread tastytea
On 2021-07-15 09:58+0200 tastytea  wrote:

> www-apps/gitea often used all 4 of my CPU cores and slowed everything
> else down. So I attempted to limit CPU usage with cgroups:
> 
> I have set this in /etc/rc.conf:
> 
> rc_cgroup_mode="unified"
> rc_cgroup_controllers="cpu memory io pids"
> 
> And this in /etc/conf.d/gitea:
> 
> rc_cgroup_settings="
> cpu.shares 128
> cpu.cfs_period_us 100
> cpu.cfs_quota_us  100
> memory.limit_in_bytes 8G
> "

The error was that I used documentation for cgroups v1 instead of v2¹.
臘The right values are:

rc_cgroup_settings="
cpu.max 100 100
memory.high 7G
memory.max 8G
"

¹ <https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpRHV5KnZVpQ.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-16 Thread tastytea
On 2021-07-15 09:58+0200 tastytea  wrote:

> […] did I do someting wrong? How can I check if my settings are
> applied?

I've tried to set the nice value of my emacs daemon with 

rc_cgroup_settings="
cpu.weight.nice -10
"

/sys/fs/cgroup/emacs.tastytea/cpu.weight.nice shows -10 but htop says
that the nice value is 0.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpt2i5zJfWCh.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] cgroups and OpenRC: Am I doing it wrong?

2021-07-15 Thread tastytea
www-apps/gitea often used all 4 of my CPU cores and slowed everything
else down. So I attempted to limit CPU usage with cgroups:

I have set this in /etc/rc.conf:

rc_cgroup_mode="unified"
rc_cgroup_controllers="cpu memory io pids"

And this in /etc/conf.d/gitea:

rc_cgroup_settings="
cpu.shares 128
cpu.cfs_period_us 100
cpu.cfs_quota_us  100
memory.limit_in_bytes 8G
"

According to my research, setting cpu.cfs_period_us and
cpu.cfs_quota_us to the same value should ensure that only the power of
one core is used, and “cpu.shares 128” should only use 12.5% (half a
core in my case) of the CPU if the system is under load. The CPU usage
in htop should be at most 100%, right?. However, I often see 110%,
sometimes up to 180% and rarely 230%. Are that all accounting errors or
did I do someting wrong? How can I check if my settings are applied?

/sys/fs/cgroup/gitea/cgroup.threads contains all the gitea-pids and the
pids of its child processes.

$ zgrep CGROUP /proc/config.gz
CONFIG_CGROUPS=y
CONFIG_BLK_CGROUP=y
CONFIG_CGROUP_WRITEBACK=y
CONFIG_CGROUP_SCHED=y
CONFIG_CGROUP_PIDS=y
# CONFIG_CGROUP_RDMA is not set
CONFIG_CGROUP_FREEZER=y
CONFIG_CGROUP_HUGETLB=y
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_SOCK_CGROUP_DATA=y
CONFIG_BLK_CGROUP_RWSTAT=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set
# CONFIG_NETFILTER_XT_MATCH_CGROUP is not set
CONFIG_NET_CLS_CGROUP=y
CONFIG_CGROUP_NET_PRIO=y
CONFIG_CGROUP_NET_CLASSID=y

$ mount | grep cgroup
none on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime)

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp22u1wy0oXj.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address

2021-07-03 Thread tastytea
On 2021-07-03 13:59+0200 Tamer Higazi  wrote:

> Hi
> 
> The problem is that the bluetooth circuit seems to be damaged, as I
> have recently the same result on Windows (not only on linux.
> 
> At Windows, I can deactivate the hardware at the "device manager", I 
> want this the same to be done on Linux.
> 
> Not the driver, just to ignore the hardware.
> Why do I ask this ?
> 
> I ordered now a new bluetooth 5 stick, what if it uses the same
> driver ? So loading the driver should not be suppressed more the
> hardware should be ignored

If the broken bluetooth device is attached via USB (turns up in
`lsusb`), you can disable it via udev:
<https://projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/>.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpJmGObHRcCV.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] system.map file in /boot. How to manage?

2021-07-01 Thread tastytea
On 2021-07-01 13:16+0200 Dr Rainer Woitok 
wrote:

> Dale,
> 
> On Thursday, 2021-07-01 01:59:57 -0500, you wrote:
> 
> > ...
> >  Should I version the
> > system.map file the same as kernels?  
> 
> Not sure about that.   Mine ARE versioned.   That's probably what
> "grub- mkconfig" is doing by default.

I compile kernels with `genkernel`, and it produces versioned files:
  System.map-5.4.97-gentoo-x86_64
  System.map-5.10.27-gentoo-x86_64
  initramfs-5.4.97-gentoo-x86_64.img
  initramfs-5.10.27-gentoo-x86_64.img
  vmlinuz-5.4.97-gentoo-x86_64
  vmlinuz-5.10.27-gentoo-x86_64

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpoUJvhtvwyz.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] New install - root is mounted read-only

2021-06-18 Thread tastytea
On 2021-06-18 10:55+0100 Wols Lists  wrote:

> I've started tackling my new build again, and when it boots root is
> read-only. Hopefully I've just missed something stupid, but how to I
> get it to transition read-write?
> 
> System is grub, systemd, and root is an lv ...
> 
> Do I need to do anything special with the initrd? Manually remounting
> fixes it fine as far as I can tell.

Do you use a custom initrd? The kernel usually mounts / ro at first and
the initrd remounts it with `mount -o remount,rw /` later.
You can also mount / rw from the beginning by specifying “rw” instead of
“ro” on the kernel commandline¹. The current kernel commandline is
visible in /proc/cmdline.

Kind regards, tastytea

¹ <https://www.kernel.org/doc/html/v5.10/admin-guide/kernel-parameters.html>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpViPptvdmV1.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Would constant max CPU speed cause lockups?

2021-06-05 Thread tastytea
On 2021-06-05 13:18-0400 "Walter Dnes"  wrote:

>   A few years ago, I cheaped out and bought a low-powered Atom desktop
> with 8 gigs of RAM.  Looking back, that was a mistake.  It would
> default to 480p or at best 720p on Youtube.  But I wrote a nifty bash
> script that manually put the CPU into "userspace" mode, and selected
> the maximum available CPU speed.  I finally got Youtube with steady
> playback at 1080p... YAY!  I'd leave it at max speed during my waking
> hours, and drop it to min speed at night before going to bed.
> 
>   I saw the occasional mysterious lockups as I mentioned in recent
> threads.  I wonder if pushing the CPU to max speed most of the day
> would cause overheating and lockups.  I'm leaving my current, more
> powerfull, machine in "conservative" mode.

The CPU will automatically throttle when a certain temperature is
reached. This may be the cause of the lockups.

>   Should I stay in conservative mode?  Or forget about speed control
> entirely, and let "Intel Speed Step" handle things for me?  Also, is
> there a way to enable CPU throttling based on temperature?

Have you tried ondemand mode? It ramps up the speed faster than
conservative mode and drops equally fast if there is not much to do. I
have it enabled everywhere and didn't notice any problems.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp_NDW0oSRef.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] nice-to-have: time stamp when each package starts emerging

2021-06-05 Thread tastytea
On 2021-06-05 09:35+0200 n952162  wrote:

>   Just sayin'

/etc/portage/bashrc is sourced for every package.[1][2]

Try something like 
  [[ "${EBUILD_PHASE}" == "setup" ]] && date

[1] 
[2] 


-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp40eGkoNM83.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] IPv4 broken beyond repair

2021-05-20 Thread tastytea
On 2021-05-20 11:20-0600 the...@sys-concept.com wrote:

> It seems to me IPv4 is broken beyond repair.
> I'm trying to block spammers but buy rewrite source IP (that is not
> checked) so it is impossible to block them. Example below is from a
> single source:
> 
> 189.142.216.209 - - [20/May/2021:09:49:29 -0600] "GET /contact_us.php
> HTTP/1.0" 200 25552 82.79.97.137 - - [20/May/2021:09:49:31 -0600]
> "GET /vvc_display.php?vvc= HTTP/1.0" 200 4149 202.138.252.59 - -
> [20/May/2021:09:49:33 -0600] "POST /contact_us.php?action=send
> HTTP/1.0" 302 13 91.235.177.140 - - [20/May/2021:09:49:35 -0600] "GET
> /contact_us.php?action=success HTTP/1.0" 200 24031 41.82.36.214 - -
> [20/May/2021:09:49:37 -0600] "GET /contact_us.php HTTP/1.0" 200 25725

As long as the website is find-able by search engines, it doesn't
matter if it is IPv4 or IPv6.
A good measure against non-targeted spam is a hidden input field with
the name “url”. If the bot put anything in that field, throw it out.
Simple math captchas (like “what is 2 + 3?”) work well too.
If the spam is targeted, you'll probably need a more advanced captcha
solution.

See also:
  <https://nearcyan.com/you-probably-dont-need-recaptcha/>
  
<https://www.nfriedly.com/techblog/2009/11/how-to-build-a-spam-free-contact-forms-without-captchas/>

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpCsdtr9FCix.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] [OT] tar exclude syntax tip

2021-05-05 Thread tastytea
On 2021-05-05 11:28-0400 "Walter Dnes"  wrote:

> On Wed, May 05, 2021 at 04:03:03PM +0200, tastytea wrote
> > 
> > This works fine here with ???tar (GNU tar) 1.34???:
> > 
> > $ mkdir -p a/b
> > $ touch a/file a/b/file
> > $ touch a/file.xz a/b/file.xz
> > $ tree a
> > a
> > ? b
> > ???   ? file
> > ???   ? file.xz
> > ? file
> > ? file.xz
> > 
> > 1 directory, 4 files
> > $ tar -cvzf test.tar.gz --exclude="a/file" --exclude="a/b/*.xz" a  
> 
>   That's files.  What happens with directories, e.g.
> tar -cvzf test.tar.gz --exclude="a/b/" a

With the trailing slash it doesn't work, but
`tar -cvzf test.tar.gz --exclude="a/b" a` works.

>   I know I followed the manual.  Actually, my problem seems to be with
> directories.  See
> https://serverfault.com/questions/742514/running-the-tar-command-with-the-exclude-functionality-does-not-work-for-direc
> where someone finds that...
> 
> tar hczf t.tar.gz * --exclude="./test1"
> 
> ...doesn't work, but...
> 
> tar --exclude="./test1" -hczf t.tar.gz *
> 
> ...does work!?!?!?
> 

That's because the files come last, the poster of the question has put
--exclude after the files.

When I'm in a, --exclude="./b" doesn't work, but --exclude="b" works.
tar doesn't seem to understand “./”.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpJTQLNrUaYR.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Re: [OT] tar exclude syntax tip

2021-05-05 Thread tastytea
On 2021-05-05 15:10+0100  (Nuno Silva) wrote:

> On 2021-05-05, tastytea wrote:
> 
> > On 2021-05-05 09:33-0400 "Walter Dnes" 
> > wrote: 
> >>   tar version
> >> 
> >> 
> >> tar (GNU tar) 1.34
> >> Copyright (C) 2021 Free Software Foundation, Inc.
> >> License GPLv3+: GNU GPL version 3 or later
> >> <https://gnu.org/licenses/gpl.html>. This is free software: you are
> >> free to change and redistribute it. There is NO WARRANTY, to the
> >> extent permitted by law.
> >> 
> >> Written by John Gilmore and Jay Fenlason.
> >> 
> >> 
> >>   I'm passing on this solution to help others avoid my frustration
> >> and wasted time.  If you've done "RTFM" on tar, you'll find out
> >> that "TFM" is broken or out-of-date or whatever, re:
> >> "--exclude=PATTERN".  I'm fighting the urge to turn this into a
> >> rant.  Here's my situation...
> >> 
> >>   I either log in as root or "su -" and then "cd /home".  I want to
> >> tar up /home/waltdnes, and transfer it to another machine.  While
> >> I'm at it, I want to exlude directory /home/waltdnes/.cache/ and
> >> all *.xz files in directory /home/waltdnes/pm/  The "--exclude="
> >> never worked. After much hair pulling, I was ready to give up on
> >> the exclude, and simply transfer all the unnecessary garbage.
> >> 
> >>   Then "I asked Mr. Google".  It seems that I wasn't the only
> >> person running into problems.  After some searching, I finally
> >> found a syntax that works...
> >> 
> >> 
> >> #!/bin/bash
> >> export GZIP=-9
> >> tar cvzf wd.tgz --exclude ".cache/*" --exclude "pm/*.xz" waltdnes
> >> 
> >> 
> >> Notes...
> >> 
> >> 1) This is obviously not in line with the man page.  Specifically,
> >> "--exclude" is followed by one space, not an equals sign.
> >> 
> >> 2) ***THERE MUST BE EXACTLY ONE SPACE BETWEEN EACH WORD***
> >> 
> >> 3) All directories and/or files to exclude must be listed as
> >> relative paths to the directory being tarred, i.e. last parameter
> >> on the command line.
> >> 
> >> 4) I don't know the maximum line-length, which would limit the
> >> number of --exclude entries.  In those cases, I wonder if
> >> "--exclude-from=FILE" works as "--exclude-from FILE".
> >>   
> >
> > This works fine here with “tar (GNU tar) 1.34”:
> >
> > $ mkdir -p a/b
> > $ touch a/file a/b/file
> > $ touch a/file.xz a/b/file.xz
> > $ tree a
> > a
> > ├── b
> > │   ├── file
> > │   └── file.xz
> > ├── file
> > └── file.xz
> >
> > 1 directory, 4 files
> > $ tar -cvzf test.tar.gz --exclude="a/file" --exclude="a/b/*.xz" a
> > a/
> > a/file.xz
> > a/b/
> > a/b/file
> > $ tar -tf test.tar.gz
> > a/
> > a/file.xz
> > a/b/
> > a/b/file
> >
> > You can find out the maximum length of the command-line with 
> > `getconf ARG_MAX`.  
> 
> 
> But does it work with a space instead of = as well? According to the
> online manual page, it should work both ways.
> 

Yes. It also works with 10 spaces.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpQ2D6noRZny.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] [OT] tar exclude syntax tip

2021-05-05 Thread tastytea
On 2021-05-05 09:33-0400 "Walter Dnes"  wrote:

>   tar version
> 
> 
> tar (GNU tar) 1.34
> Copyright (C) 2021 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later
> . This is free software: you are
> free to change and redistribute it. There is NO WARRANTY, to the
> extent permitted by law.
> 
> Written by John Gilmore and Jay Fenlason.
> 
> 
>   I'm passing on this solution to help others avoid my frustration and
> wasted time.  If you've done "RTFM" on tar, you'll find out that "TFM"
> is broken or out-of-date or whatever, re: "--exclude=PATTERN".  I'm
> fighting the urge to turn this into a rant.  Here's my situation...
> 
>   I either log in as root or "su -" and then "cd /home".  I want to
> tar up /home/waltdnes, and transfer it to another machine.  While I'm
> at it, I want to exlude directory /home/waltdnes/.cache/ and all *.xz
> files in directory /home/waltdnes/pm/  The "--exclude=" never worked.
>  After much hair pulling, I was ready to give up on the exclude, and
> simply transfer all the unnecessary garbage.
> 
>   Then "I asked Mr. Google".  It seems that I wasn't the only person
> running into problems.  After some searching, I finally found a syntax
> that works...
> 
> 
> #!/bin/bash
> export GZIP=-9
> tar cvzf wd.tgz --exclude ".cache/*" --exclude "pm/*.xz" waltdnes
> 
> 
> Notes...
> 
> 1) This is obviously not in line with the man page.  Specifically,
> "--exclude" is followed by one space, not an equals sign.
> 
> 2) ***THERE MUST BE EXACTLY ONE SPACE BETWEEN EACH WORD***
> 
> 3) All directories and/or files to exclude must be listed as relative
> paths to the directory being tarred, i.e. last parameter on the
> command line.
> 
> 4) I don't know the maximum line-length, which would limit the number
> of --exclude entries.  In those cases, I wonder if
> "--exclude-from=FILE" works as "--exclude-from FILE".
> 

This works fine here with “tar (GNU tar) 1.34”:

$ mkdir -p a/b
$ touch a/file a/b/file
$ touch a/file.xz a/b/file.xz
$ tree a
a
├── b
│   ├── file
│   └── file.xz
├── file
└── file.xz

1 directory, 4 files
$ tar -cvzf test.tar.gz --exclude="a/file" --exclude="a/b/*.xz" a
a/
a/file.xz
a/b/
a/b/file
$ tar -tf test.tar.gz
a/
a/file.xz
a/b/
a/b/file

You can find out the maximum length of the command-line with 
`getconf ARG_MAX`.
-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp5z0UTIcGOh.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Rusty problems

2021-04-27 Thread tastytea
On 2021-04-27 20:53+ Alan Mackenzie  wrote:

> Hello, Gentoo.
> 
> I'm having problems building rust.
> 
> I build everything in a ram disk, and last night my 13 Gb ram disk
> proved too small to build rust in.  So I increased its size to 14 Gb,
> and tried again this evening.  Same result.  The pre-check on the disk
> size gave an OK both times, and both runs lasted about 45 minutes
> before running out of space.
> 
> Help!  What am I supposed to do?  I've got 16 Gb RAM (I'm _not_ going
> to use the word "only" here), and wondering just how big a chunk a
> ram disk can take out of that before the machine siezes up
> altogether.  But if I increase the ram disk to 15 Gb, even assuming
> it'd work, it's only going to be a small number of releases before
> the clever people at rust increase their bloat even more.

You could use zram[1], it's like a ramdisk but compressed. Source code
compresses very good, binary files compress to ~50% in my tests.

> I know I could plump for the -bin package.  Maybe I should.  But
> before I do that, is it possible to redirect this one ebuild away from
> /var/tmp/portage (my ram disk) without disturbing the other builds?
> If so, how would I do this (or where should I look for documentation)?

You could create /var/tmp/portage/dev-lang/rust after creating the
ramdisk and then bind-mount another directory to it. But then you'd
have to tell portage to not delete it with FEATURES="keepwork"[2]
(see`man 5 make.conf`) … I wouldn't recommend it.

[1] <https://wiki.gentoo.org/wiki/Zram>
[2] <https://wiki.gentoo.org/wiki//etc/portage/package.env>

kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpFctQqNaO8Y.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] File transfer via USB?

2021-04-22 Thread tastytea
On 2021-04-22 14:27- Grant Edwards 
wrote:

> I'm trying to figure out a convenient way to transfer files between a
> Linux machine (running Gentoo) and a Windows 10 machine (which has no
> internet access). IP connection between the machines is not allowed.

The easiest solution would be to connect both machines with an ethernet
cable and run samba on Linux. The interfaces will be configured with a
link-local address¹ automatically.

> Yes, I can shuffle a USB flash drive back and forth, but that's
> really annoying.
> 
> Can I run an MTP server on a Linux host and connect a USB-C port on
> the Linux machine to the USB-C port on the Windows machine (assuming
> the Linux port is dual-role, which I need to confirm).

If USB connections between the 2 machines are allowed then “IP
connection between the machines is not allowed” surely does not apply
to direct ethernet connections between the 2 machines?

¹ 

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpUz4R86tbox.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Ruby problems

2021-04-20 Thread tastytea
On 2021-04-20 15:40+0100 Peter Humphrey  wrote:

> Hello list,
> 
> Has anyone here succeeded in building a new system since the recent
> Ruby language upgrade? I keep being thwarted by failure such as this
> typical one:
> 
> >>> Install dev-ruby/rake-13.0.3-r1 into /var/tmp/portage/dev-ruby/  
> rake-13.0.3-r1/image
>  * Running install phase for ruby26 ...
>  * Running install phase for ruby27 ...
> Traceback (most recent call last):
> 3: from :1:in `'
> 2: from :1:in `require'
> 1: from /usr/lib64/ruby/2.7.0/rubygems.rb:16:in ` (required)>' /usr/lib64/ruby/2.7.0/rubygems.rb:16:in `require':
> cannot load such file -- rubygems/compatibility (LoadError)
>  * ERROR: dev-ruby/rake-13.0.3-r1::gentoo failed (install phase):
>  *   Unable to generate gemspec file.
> 
> Similar failures occur whatever profile I use (of the suitable ones),
> and no matter whether I set amd64 or ~amd64 in make.conf.
> 
> It's possible that I had some unhelpful USE flags set, I suppose, but
> I did try to minimise them.
> 
> In the end I went back to a month-old backup and updated that instead.
> 

That looks like you need to select the new ruby version with eselect.
It doesn't figure out the right version automatically, like python.
See also:
.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpNPktoXhXis.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Running old RHEL as a VM on Ryzen

2021-04-14 Thread tastytea
On 2021-04-14 15:24+1000 Adam Carter  wrote:

> I tried running an old version of RHEL with an old 3.x kernel in
> VirtualBox, however, it won't run due to my hosts Ryzen CPU so I
> guess I need something that does CPU emulation.
> 
> Is this likely to be achievable with qemu ?

Yes. Look up the release date of your kernel[1] and pick a slightly
older CPU[2]. 

[1] 
[2] .

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpIOU__IqnxA.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Cannot open virtual console 7 (Permission denied)

2021-04-08 Thread tastytea
On 2021-04-07 22:41-0600 the...@sys-concept.com wrote:

> On 4/7/21 8:18 PM, tastytea wrote:
> > On 2021-04-07 18:24-0600 the...@sys-concept.com wrote:
> >   
> >> This is a new installation and I'm getting an error on starting X
> >>
> >> Fatal server error:
> >> (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission
> >> denied)  
> > […]  
> >> [  1876.135] (EE) dbus-core: error connecting to system bus:
> >> org.freedesktop.DBus.Error.FileNotFound (Failed to connect to
> >> socket /run/dbus/system_bus_socket: No such file or directory) [
> >> 1876.135]  
> > 
> > It seems you didn't start elogind[1][2] and dbus. Both are required
> > for non-root Xorg.
> > 
> > [1] https://wiki.gentoo.org/wiki/Elogind
> > [2]
> > https://wiki.gentoo.org/wiki/Non_root_Xorg#Cannot_start_Xorg_as_regular_user
> >  
> 
> Thank you for the pointer.  I started "dbus" and "elogind"  but in
> the log file I still get: 
> 
> [   121.166] (II) systemd-logind: logind integration requires
> -keeptty and -keeptty was not provided, disabling logind integration

I get that too and it still works. Seems to be not important. 

> "ps -fC X" - does not show any user.

It doesn't show anything here, too.

> loginctl user-status
> fd (1000)
>Since: Thu 2021-04-08 21:12:51 MDT; 37min ago
>State: active
> Sessions: 3 2 *1
>   Linger: no
> Unit: user-1000.slice

That does seem alright.

I can't help with the graphics card stuff, sorry.

> I'm not sure if the driver is correctly installed.
> My AMD CPU is integrated with Graphic: "AMD Ryzen 5 3400G with Radeon
> Vega Graphics"
> 
> lspci | grep -i VGA
> 09:00.0 VGA compatible controller: Advanced Micro Devices, Inc.
> [AMD/ATI] Picasso (rev c8)
> 
> In the kernel I compiled0-in, "< * > ATI Radeon" (option)
> without "<  > AMD GPU"
> 
> When I tried to change it: 
> <   > ATI Radeon" 
> < * > AMD GPU"
> 
> and load: "-*- Firmware loading facility"
> (amdgpu/picasso_ce.bin amdgpu/picasso_k_smc.bin amdgpu/picasso_mc.bin
> amdgpu/picasso_me.bin amdgpu/picasso_mec2.bin amdgpu/picasso_mec.bin
> amdgpu/picasso_pfp.bin amdgpu/picasso_rlc.bin
> amdgpu/picasso_sdma1.bin amdgpu/picasso_sdma.bin
> amdgpu/picasso_smc.bin amdgpu/picasso_uvd.bin amdgpu/picasso_vce.bin)
> 
> I'm getting kernel error when compiling:
> ...
> CC  drivers/base/firmware_loader/main.o
>   UPD
> drivers/base/firmware_loader/builtin/amdgpu/picasso_ce.bin.gen.S AS
>drivers/base/firmware_loader/builtin/amdgpu/picasso_ce.bin.gen.o
> UPD
> drivers/base/firmware_loader/builtin/amdgpu/picasso_k_smc.bin.gen.S
> make[4]: *** No rule to make target
> '/lib/firmware/amdgpu/picasso_k_smc.bin', needed by
> 'drivers/base/firmware_loader/builtin/amdgpu/picasso_k_smc.bin.gen.o'.
>  Stop. make[3]: *** [scripts/Makefile.build:496:
> drivers/base/firmware_loader/builtin] Error 2 make[2]: ***
> [scripts/Makefile.build:496: drivers/base/firmware_loader] Error 2
> make[1]: *** [scripts/Makefile.build:496: drivers/base] Error 2 make:
> *** [Makefile:1726: drivers] Error 2
> 
> 
> 



-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp2u_Yn_y0uO.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Cannot open virtual console 7 (Permission denied)

2021-04-07 Thread tastytea
On 2021-04-07 18:24-0600 the...@sys-concept.com wrote:

> This is a new installation and I'm getting an error on starting X
> 
> Fatal server error:
> (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission
> denied)
[…]
> [  1876.135] (EE) dbus-core: error connecting to system bus:
> org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket
> /run/dbus/system_bus_socket: No such file or directory) [  1876.135]

It seems you didn't start elogind[1][2] and dbus. Both are required for
non-root Xorg.

[1] https://wiki.gentoo.org/wiki/Elogind
[2] https://wiki.gentoo.org/wiki/Non_root_Xorg#Cannot_start_Xorg_as_regular_user

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpFLGPpLeR5r.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Is the "Messages for package ..." output from emerge logged somewhere?

2021-02-28 Thread tastytea
On 2021-02-28 14:35-0700 Grant Taylor
 wrote:

> Hi,
> 
> Is the "Messages for package ..." output from emerge logged somewhere?
> 
> I'd like to re-read the "Messages for package ..." output from emerge 
> after the fact.  Is there a concise collection of that somewhere?  Or
> do I have to pilfer through logs of each and every package to find it?
> 
> I'm hoping that the "Messages for package ..." output that shows up
> at the end of an emerge (e.g. @system or @world) is conveniently
> available.

I'm not sure if the logs are stored by default, but if you set
PORTAGE_ELOG_SYSTEM="save" in make.conf, portage saves one log per
package in $PORTAGE_LOGDIR/elog. You can also have portage mail them to
you. See /usr/share/portage/config/make.conf.example for details.

There are also tools available to view these logs more comfortably:
app-portage/elogv and app-portage/elogviewer.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp5ZKZIWJjw7.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] pinentry doesn't work with Emacs anymore

2021-02-20 Thread tastytea
On 2021-02-20 15:52+ Michael  wrote:

> On Saturday, 20 February 2021 15:22:45 GMT tastytea wrote:
> > Hi!
> > A short while ago, pinentry-gtk2 was removed from
> > app-crypt/pinentry. Around the same time, app-crypt/gnupg was
> > updated. Since then, I can not use the gpg-agent from whithin Emacs
> > (--deamon) anymore. When I commit something with Magit, I get no
> > password dialog but this error message instead:
> > 
> >   error: gpg failed to sign the data
> > 
> > After I add the key to the agent in another way (with `echo "test"
> > | gpg --clearsign` for example), it works in Emacs again. So it
> > seems that there is something wrong with my pinentry setup.
> > 
> > I tried pinentry-gnome3 and pinentry-qt5, it makes no
> > difference. GPG_AGENT_INFO is known to Emacs.
> > 
> > This is my ~/.gnupg/gpg-agent.conf:
> > 
> > default-cache-ttl 43200
> > max-cache-ttl 86400
> > default-cache-ttl-ssh 21600
> > max-cache-ttl-ssh 86400
> > pinentry-program /usr/bin/pinentry  
> 
> I have the same entry in my gpg-agent.conf and it works fine, but I
> do not use emacs.
> 
> 
> > Does anybody know what the problem might be?
> > 
> > Kind regards, tastytea  
> 
> My /usr/bin/pinentry is linked to pinentry-qt:
> 
> $ ls -la /usr/bin/pinentry
> lrwxrwxrwx 1 root root 11 Jun 21  2019 /usr/bin/pinentry ->
> pinentry-qt
> 
> You could set this manually, or with eselect, or I think your desktop 
> environment will set it for you.

I did set it with eselect. pinentry works fine when I use gpg in the
terminal. It seems to be a problem with gpg inside Emacs.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpLFmedhOtsB.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] pinentry doesn't work with Emacs anymore

2021-02-20 Thread tastytea
Hi!
A short while ago, pinentry-gtk2 was removed from
app-crypt/pinentry. Around the same time, app-crypt/gnupg was
updated. Since then, I can not use the gpg-agent from whithin Emacs
(--deamon) anymore. When I commit something with Magit, I get no
password dialog but this error message instead:

  error: gpg failed to sign the data

After I add the key to the agent in another way (with `echo "test" | gpg
--clearsign` for example), it works in Emacs again. So it seems that
there is something wrong with my pinentry setup.

I tried pinentry-gnome3 and pinentry-qt5, it makes no
difference. GPG_AGENT_INFO is known to Emacs.

This is my ~/.gnupg/gpg-agent.conf:

default-cache-ttl 43200
max-cache-ttl 86400
default-cache-ttl-ssh 21600
max-cache-ttl-ssh 86400
pinentry-program /usr/bin/pinentry

Does anybody know what the problem might be?

Kind regards, tastytea

--
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpYHRcMtVTOJ.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Minimal world file.

2021-02-03 Thread tastytea
On 2021-02-03 14:29-0600 Dale  wrote:

> Grant Taylor wrote:
> > This may be a silly question, but I don't know, so I'm going to ask.
> >
> > What is the minimal world file to be somewhat conceptually similar
> > to a debootstrap install of Debian / Ubuntu?
> >
> > Is the world file that ships with stage3 the smallest it can be?  Or
> > are there things that can safely be removed?
> 
> If I recall correctly, the world file from a stage3 tarball is empty. 
> It only has the packages you want installed added there.  Are you
> thinking about the system packages instead of the world file?  If so,
> I think it is as small as it can be already.  After all, a stage3
> tarball can't even boot as it has no kernel, boot loader mechanism or
> anything. It's only enough that you can build from to suite your
> needs. 
> 
> Dale

You could install Gentoo into a directory without the build tools, but
you would have to install packages and update them from a full Gentoo
installation outside that directory. I've used that technique in my
Docker experiments.[1]

emerge --root=/workdir sys-apps/busybox will install busybox and all
build-time dependencies into /workdir.

Kind regards, tastytea

[1] 
<https://schlomp.space/tastytea/docker-images/src/branch/main/gentoo-base.Dockerfile>

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpvtZsc1q0Dl.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Failed to load vboxpci

2021-01-18 Thread tastytea
On 2021-01-18 14:04-0700 the...@sys-concept.com wrote:

> emerge --info
> Portage 3.0.13 (python 3.8.6-final-0,
> default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r5,
> 5.4.80-gentoo-r1 x86_64)
> 
> This is new installation.  
> cat /etc/modules-load.d/virtualbox.conf 
> vboxdrv
> vboxnetadp
> vboxnetflt
> vboxpci
> 
> All modules are loading OK except "vboxpci"
> 
> modprobe vboxpci
> modprobe: FATAL: Module vboxpci not found in directory
> /lib/modules/5.4.80-gentoo-r1

app-emulation/virtualbox-modules does not install vboxpci.ko here. I
guess the information in the wiki is outdated.

$ equery files app-emulation/virtualbox-modules | grep '\.ko$'
/lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxdrv.ko
/lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetadp.ko
/lib/modules/5.4.80-gentoo-r1-x86_64/misc/vboxnetflt.ko

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpEgxNsgQZXw.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Portage: emerge(1) ebuild(1) ebuild.sh

2021-01-07 Thread tastytea
On 2021-01-07 10:26+ Neil Bothwick  wrote:

> On Thu, 7 Jan 2021 17:07:36 +0800, Kevin Shell wrote:
> 
> > > emerge is the high level command normally used by users to manage
> > > packages. ebuild is only used for installing and removing
> > > packages, emerge does a lot more besides, and is a more low level
> > > command. ebuild.sh is for use by portage, bit by users.
> > >
> > Is ebuild(1) meant for standalone use and not used by emerge(1)?
> > I know ebuild.sh is used by emerge(1).  
> 
> Yes it is, I guess that's why it has a man page and ebuild.sh doesn't.
> 
> However, in normal use of a Gentoo system, it shouldn't be needed.
> However, it can come in handy if you have to abort a lengthy ebuild
> and don't want to start over.

In that case I'd recommend:
sudo FEATURES="keepwork keeptemp" emerge --resume
keepwork disables most of the clean phase.

ebuild(1) is useful for package maintainers to check if a package is
installing correctly and if the tests run successfully before pushing
it to a repository.

You could also use it to install packages that are not in a repository,
but I wouldn't recommend it.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpunhY5nYKA4.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] moving /var/tmp/portage

2021-01-05 Thread tastytea
On 2021-01-05 23:17+0100 n952162  wrote:

> I'm thinking about putting the stuff in /var/tmp/portage on another
> drive and linking with a symlink.  Is there a better way?

Set PORTAGE_TMPDIR in your make.conf. See `man 5 make.conf`.

Kind regards, tastytea.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpRUoxJee6pa.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] ncurses; I think I wrecked my fresh install

2020-12-28 Thread tastytea
On 2020-12-28 16:36-0500 "Walter Dnes"  wrote:

>   The previous couple of attempts, the install on my XPS 8940 died on
> rebuilding ncurses when I copied over my full USE string from my
> current desktop and updated world.  This time around, I did it in
> pieces.  I added some variables, and emerged update,
> rinse-lather-repeat..  This time the problem happened when I added...
> 
> "-pch -roaming -sendmail -spell -tcpd -udev -udisks -unicode -upower
> -xinerama"
> 
> to the USE string.  The ncurses build died, followed immediately by
> bash.
> 
> […]
> 
> livecd /mnt/gentoo # chroot /mnt/gentoo /bin/bash
> /bin/bash: error while loading shared libraries: libtinfow.so.6:
> cannot open shared object file: No such file or directory

Both the tinfo and the unicode use-flags are necessary if you need
libtinfow.so. From the ebuild:

if multilib_is_native_abi ; then
gen_usr_ldscript -a \
"${NCURSES_TARGETS[@]}" \
$(use tinfo && usex unicode 'tinfow' '') \
$(usev tinfo)
fi


Bash depends on readline. If readline was built with USE="unicode" it
depends on ncurses[unicode]. Try `chroot /mnt/gentoo /bin/busybox sh`.
Busybox doesn't depend on readline so that should work. However,
portage uses bash for ebuilds if I'm not mistaken. If you have a
computer with a compatible CPU and unicode disabled you could quickpkg
bash there and try to install it on the new computer. Or maybe copying
/bin/bash over is enough.

unicode is one of the useflags that are a real pain to disable after
install. :-(

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpgwmFTsRPN0.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] WKD 'if SKIP_HEADER not in values'

2020-12-28 Thread tastytea
On 2020-12-28 11:28+ Michael  wrote:

> I noticed this error coming up today, on different rsync mirrors:
> 
> ~ # eix-sync && emerge -uaNDv world
> 
>  * Running emerge --sync
> >>> Syncing repository 'gentoo' into '/usr/portage'...  
>  * Using keys from /usr/share/openpgp-keys/gentoo-release.asc
>  * Refreshing keys via WKD
> .../usr/lib/python3.8/site-packages/urllib3/ connection.py:218:
> BytesWarning: Comparison between bytes and string if SKIP_HEADER not
> in values:  [ ok ]
> >>> Starting rsync with rsync://46.101.221.22/gentoo-portage/...
> >>> Checking server timestamp ...  
> rsync8.de.gentoo.org
> 
>   IPv4:46.101.221.22
>   IPv6:2a03:b0c0:3:d0::c3:f001 
>   Contact: rs...@moonitor.org
> 
> The sync'ing completed, on the second attempt.
> 
> What is causing the above error?  Can I trust the mirror(s)?

It seems to be a bug in >=dev-python/urllib3-1.26.0.

<https://bugs.gentoo.org/755083>
<https://github.com/urllib3/urllib3/issues/2071>

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgphGX0UD0Mvh.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread tastytea
On 2020-12-10 23:56-0700 Grant Taylor
 wrote:

> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
> > How to prevent PC from shutdown when running when power button is
> > pressed? Is it a function in a BIOS or OS?  
> 
> Press and release, in less than four seconds, is the OS.  Four
> seconds or longer is the BIOS.
> 
> Try stopping acpid and seeing if that gets you the desired results.

Nowadays (e)logind handles that. Setting 
  HandlePowerKey=ignore
in /etc/elogind/logind.conf should disable that (haven't tested).

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpv5yVdr_7b1.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] unable to do world update --problem may be caused by mailman

2020-12-07 Thread tastytea
On 2020-12-07 08:11+0100 Arve Barsnes  wrote:

> On Mon, 7 Dec 2020 at 00:11, John Covici 
> wrote:
> > hmmm, I am running a ~ setup, but I do need to keep mailman, so how
> > to tell which packages to keep, exactly?  
> 
> Then you should be able to update to the latest version in the tree?
> Maybe you have masked newer versions somewhere? Maybe there's a manual
> upgrade job that you've put off until you had time.

The upgrade is not gonna be easy: <https://bugs.gentoo.org/710134#c2>.

There is a repo with mailman2 + dependencies, but that is only intended
for a short timeframe: <https://github.com/hannob/mailman2-overlay>.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgpUcZoKmaeHV.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Re: What replaced python-updater?

2020-12-04 Thread tastytea
On 2020-12-05 01:04- Grant Edwards 
wrote:

> On 2020-12-04, tastytea  wrote:
> > On 2020-12-04 17:39- Grant Edwards 
> > wrote:  
> >> [...]
> >>
> >> I used to use 'python-updater' to take care of that, but it's
> >> gone. What are we supposed to use in its place?
> >> 
> >> Are we just supposed to manually re-emerge various python modules
> >> over the next few weeks as we stumble across failures?  
> >
> > emerge --changed-use --deep @world should take care of that.  
> 
> I always update with -ND (--newuse --deep) which I thought was
> supposed to include what would be built by --changed-use, but maybe
> I'm misunderstanding:

--newuse and --changed-use are almost the same. The only difference is,
as far as I know:

--changed-use, -U
  […] Unlike --newuse, the --changed-use option does not trigger
  reinstallation when flags that the user has not enabled are added or
  removed.

I don't know why that didn't catch all python modules.


pgpHacxKHGvIY.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] What replaced python-updater?

2020-12-04 Thread tastytea
On 2020-12-04 17:39- Grant Edwards 
wrote:

> Yesterday when I did my usual update/clean, Python 3.7 was removed and
> a bunch of stuff was re-installed for Python 3.8. However, there are
> still things (e.g. markdown) that I've had to manually re-emerge to
> get them rebuilt for 3.8.
> 
> I used to use 'python-updater' to take care of that, but it's
> gone. What are we supposed to use in its place?
> 
> Are we just supposed to manually re-emerge various python modules over
> the next few weeks as we stumble across failures?

emerge --changed-use --deep @world should take care of that.

--changed-use updates packages where USE flags have changed since
installation and --deep makes emerge consider the entire dependency
tree of packages.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp_OBDowKt4l.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Switching default tmpfiles and faster internet coming my way.

2020-12-04 Thread tastytea
On 2020-12-03 19:40-0600 Dale  wrote:

> Howdy,
> 
> I've mentioned I follow -dev to see what is coming around the corner. 
> There is a thread on there about switching tmpfiles packages for
> security reasons.  I currently have sys-apps/opentmpfiles installed.
> I guess that is the default for openrc.  Someone mentioned
> systemd-tmpfiles as a alternative that doesn't have the same security
> problems.  My question is, is this big enough a problem to switch or
> is it safe enough for us to use the same we have been?  It sounds
> like a rather rare problem.  Maybe even only during boot up.  I'm not
> 100% sure what it does or anything really.  I guess that's why I
> con't make sense of switching or not since I'm not sure what the
> package does or how serious the security problem is.

From what I could gather, opentmpfiles is only vulnerable when an
attacker is able to put a config file into /etc/tmpfiles.d/, so they
have to be already root.
Nevertheless I switched to systemd-tmpfiles and it just works and
doesn't pull any other systemd-stuff in.

I don't think it really matters which one you use.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.


pgp9ycZr_oRLi.pgp
Description: Digitale Signatur von OpenPGP


  1   2   >