Re: [gentoo-user] Re: Is gnome becoming obligatory?

2017-12-10 Thread karl
Jorge Almedia:n
...
> (Of course, the aforementioned fingers are exceedingly sticky. We all
> have to live with udev, after all...)

No, we don't have to, this is gentoo after all. You can still use a
static dev if you wish even if some packages do insists on udev even
though some of thoose dependancies are bogus.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] detox'ing files by keeping their time stamp?

2018-02-19 Thread karl
Stroller:
> > On 18 Feb 2018, at 17:47, Floyd Anderson  wrote:
> >> 
> >> $ cat t.sh
> >> #!/bin/bash
> >> TMPF=$(mktemp "/tmp/detox_wrapper.$$.")
> >> for f in "$@"; do
> >>   touch -r "$f" "$TMPF"
> >>   detox "$f"
> >>   touch -r "$TMPF" "$f"
> >> done
> >> rm -f "$TMPF"
> > 
> > If I’m not totally wrong, the second `touch` cannot work because the file 
> > that "$f" holds is renamed now. That’s what I mean earlier with iterating a 
> > list or adapt Stroller’s suggestion.
> 
> How careless of me.
> 
> A solution is to use `detox -v` and capture the output.
> 
>$ touch '1234[]'
>$ ls '1234[]'
>1234[]
>$ detox -v 1234*
>Scanning: 1234[]
>1234[] -> 1234-
>$
> 
> A bit untidy. Really, detox should be patched to check the date and apply it 
> to the new file.

I must be missing something, but why don't you use plain old mv, it 
doen't change the times as long you stay in the same file system:

$ stat br.log | grep 201
Access: 2018-02-07 22:59:51.746741788 +0100
Modify: 2016-08-16 15:34:40.742454976 +0200
Change: 2018-02-07 12:30:09.737085062 +0100
$ mv br.log z.log | grep 201
$ stat z.log 
Access: 2018-02-07 22:59:51.746741788 +0100
Modify: 2016-08-16 15:34:40.742454976 +0200
Change: 2018-02-19 16:24:35.662712287 +0100


And regarding detox -v, why not use tr

ls -1 |
while read a
do
 b=`echo "$a" | tr '[]' '-'` # or whatever mapping you want
 mv "$a" "$b"
done

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





[gentoo-user] install problem: dev-texlive/texlive-basic-2017-r1

2018-03-14 Thread karl
Is this a bug or is there something wrong on my side ?

* Messages for package dev-texlive/texlive-basic-2017-r1:

 * ERROR: dev-texlive/texlive-basic-2017-r1::gentoo failed (compile phase):
 *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
 * 
 * Call stack:
 * ebuild.sh, line  124:  Called src_compile
 *   environment, line 1938:  Called texlive-module_src_compile
 *   environment, line 2756:  Called die
 * The specific snippet of code:
 *   VARTEXFONTS="${T}/fonts" 
TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS fmtutil 
--cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed to build 
format ${i}";
 * 
 * If you need support, post the output of `emerge --info 
'=dev-texlive/texlive-basic-2017-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv 
'=dev-texlive/texlive-basic-2017-r1::gentoo'`.
 * The complete build log is located at 
'/Net/portage/portage/dev-texlive/texlive-basic-2017-r1/temp/build.log'.
 * The ebuild environment file is located at 
'/Net/portage/portage/dev-texlive/texlive-basic-2017-r1/temp/environment'.
 * Working directory: 
'/Net/portage/portage/dev-texlive/texlive-basic-2017-r1/work'

(I have PORTAGE_TMPDIR=/Net/portage)

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57
[ebuild  N] dev-texlive/texlive-basic-2017-r1  USE="-doc -luajittex 
-source" Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0, gcc-6.4.0, 
glibc-2.25-r10, 3.12.8-rt11-amdfx.3 x86_64)
=
 System Settings
=
System uname: 
Linux-3.12.8-rt11-amdfx.3-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.4.1
KiB Mem:16420100 total,  14407800 free
KiB Swap:8788924 total,   8788924 free
Timestamp of repository gentoo: Wed, 14 Mar 2018 17:27:59 +
Head commit of repository gentoo: 44cd70f1c891a692ec1df4651d8ed48b3863848a

sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
app-shells/bash:  4.4_p12::gentoo
dev-lang/perl:5.26.::gentoo
dev-lang/python:  2.7.14-r1::gentoo, 3.5.4-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:   3.9.6::gentoo
dev-util/pkgconfig:   0.29.2::gentoo
sys-apps/baselayout:  2.4.1-r2::gentoo
sys-apps/sandbox: 2.12::gentoo
sys-devel/autoconf:   2.13::gentoo, 2.69-r4::gentoo
sys-devel/automake:   1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:   2.29.1-r1::gentoo
sys-devel/gcc:6.4.0-r1::gentoo
sys-devel/gcc-config: 1.8-r1::gentoo
sys-devel/libtool:2.4.6-r3::gentoo
sys-devel/make:   4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:   2.25-r10::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: git
sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
priority: -1000

aspo
location: /home/local/portage
masters: gentoo

Installed sets: @nonx
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/gnupg/qualified.txt 
/var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf 
/etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo 
/etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d 
/etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 24 --load-average 48"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks 
ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch 
preserve-libs protect-owned sandbox sfperms strict unknown-features-warn 
unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org";
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="af ar as be bg bn br ca cs cy da de el en en_GB eo es et eu fi fo fr 
ga gl gu he hr hsb hu hy ia id is it ja kn ko la lo lt lv ml mn mr nb nl nn no 
or pa pl pt pt_BR rm ro ru sa_IN sco sk sl sq sr sv ta te th tk tr uk vi zh"
MAKEOPTS="--jobs 24 --load-average 48"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times 
--omit-dir-times --compress --force --whole-file --delete --stats 
--human-readable --timeout=180 --exclud

Re: [gentoo-user] install problem: dev-texlive/texlive-basic-2017-r1

2018-03-14 Thread karl
Thelma:
> I just upgraded two system and did not run into any problem with
> dev-texlive/texlive-basic-2017-r1
> 
> Try unmerging previous version if you have one installed and try again.

No, didn't have any, thanks for answering anyhow.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] shutdown: /run/initctl: No such file or directory ???

2018-03-30 Thread karl
Meino:
> just a minute before I wanted to shutdown my Linux box...and...
> shutdown: /run/initctl: No such file or directory
...

$ ls -l /run/initctl
prw--- 1 root root 0 Mar 16 21:50 /run/initctl|

I.e. it is a named pipe, which you can use to tell init things, like
to shutdown.

# man init | grep -A2 SIGUSR
   SIGUSR1
On receipt of this signals, init closes and re-opens  its  control
fifo, /dev/initctl. Useful for bootscripts when /dev is remounted.

So, try "kill -SIGUSR1 1" to make init recreate that pipe.

NOTE:
  If you use something else than sysv-init, the above might not apply.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] install problem: dev-texlive/texlive-basic-2017-r1

2018-03-31 Thread karl
Karl:
> Is this a bug or is there something wrong on my side ?
> 
> * Messages for package dev-texlive/texlive-basic-2017-r1:
> 
>  * ERROR: dev-texlive/texlive-basic-2017-r1::gentoo failed (compile phase):
>  *   failed to build format texmf-dist/fmtutil/format.texlive-basic.cnf
>  * 
>  * Call stack:
>  * ebuild.sh, line  124:  Called src_compile
>  *   environment, line 1938:  Called texlive-module_src_compile
>  *   environment, line 2756:  Called die
>  * The specific snippet of code:
>  *   VARTEXFONTS="${T}/fonts" 
> TEXMFHOME="${S}/texmf:${S}/texmf-dist:${S}/texmf-var" env -u TEXINPUTS 
> fmtutil --cnffile "${i}" --fmtdir "${S}/texmf-var/web2c" --all || die "failed 
> to build format ${i}";
...

The error went away by doing:

unset XTERM_LOCALE PKG_CONFIG_PATH LC_CTYPE
grep -l /etc/texmf /var/db/pkg/*/*/CONTENTS | cut -f5,6 -d/
# which gave me thoose two:
emerge -C texlive-core-2017-r3 kpathsea-6.2.3_p20170524
rm -rf /etc/texmf

emerge @world

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





[gentoo-user] file conflict: libomp and xkaapi

2018-03-31 Thread karl
sys-libs/libomp-5.0.1
sci-libs/xkaapi-2.2

both have the file

 /usr/include/omp.h

Is there any way I can work around that problem ?

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





[gentoo-user] Perl, PERL_IMPLICIT_CONTEXT

2018-05-22 Thread karl
 Hello,
how do I make sure PERL_IMPLICIT_CONTEXT is defined when building perl ?

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] Something's messed up my mimetypes

2018-07-23 Thread karl
Wol:
...
> How do I find out what mimetypes are associated with an application?
> Going the other way is a simple "System Settings" options, except that
> (a) I don't have a clue what half these mimetypes are, and (b) I don't
> fancy going through ALL of them one by one looking for the program in
> question. Oh - and I searched the web which kindly pointed me to the
> config file .local/share/applications/defaults.list - except it doesn't
> exist ...
> 
> All I want to do is find out what extensions Kate has tagged itself onto
> - what it thinks it's going to do with a dot-iso I *do* not know!

Don't know about Kate, but there is a file /etc/mailcap on my system,
see mailcap(4) [1] for details.

Regards,
/Karl Hammar

[1] "mailcap(4)" is a shorthand to indicate that there is a man page
about it in section 4, type "man mailcap" in a terminal to see it.

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] from Firefox52: NO pure ALSA?, WAS: Firefox 49.0 & Youtube... Audio: No

2016-12-21 Thread karl
Neil Bothwick:
> On Tue, 20 Dec 2016 23:11:08 +0100, lee wrote:
> > >> But you already heard of udev rules? I guess I mentioned them
> > >> already. They are not so hard to write and they only need to be
> > >> written once.  
> > > It's too late by then, if eth0 and eth1 already exist, you cannot
> > > switch them with udev rules - as anyone who had worked with dual NICs
> > > would have discovered.  
> > Can you switch them when they have unrecognisable names?
> You can't switch any two names because the udev rules are run singly, so
> at one point you will be trying to rename an interface with a name that
> is already in use.
...

Not everyone runs udev, and you don't need udev to change the eth name,
a few other choises are presented here:

 https://ivi.fnwi.uva.nl/sne/air//wiki/LogicalInterfaceNames/

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] from Firefox52: NO pure ALSA?, WAS: Firefox 49.0 & Youtube... Audio: No

2016-12-21 Thread karl
Regarding the controversy about systemd etc.

The problem isn't that systemd is available, or that there exist a 
company named Red Had or that there exist a developer named Lennart
Poettering that develops programs.

The problem is that an ever increasing amount of programs list systemd 
or some of its libs as a depenancy. So it is getting harder and harder 
to opt out.

The situation is similar to the one with udev and variants. Some 
programs list udev as a requirement even though there is no requirment
on technical grounds. I.e. X, I can run X perfectly without udev, I
just have to make my own xorg.conf, or I might want to run X with udev
since then it handles multiple keyboards with different layouts 
automatically. It's like when buying a car, some prefer automats, some
stick shift. There are pro and cons for both cases.

Sometimes its useful and sometimes its not needed, why should I be more 
or less forced to use it in every case ? No one is expecting me to run a 
webserver on every systems, why then the heated arguments about this ?
It should be my own decision what to install, not someone elses.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] compressing pdf file

2017-02-22 Thread karl
Thelma:
> I have scaned pdf file (88-page) 23MB in size (downloaded this way).
> Trying to reduce the size of the file I [...]

Why don't you extract the images with pdfimages from the pdf and
compress them with xv or convert (imagemagic) and maybe gimp can 
comress them also. Don't know how to get them back into a pdf though.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





[gentoo-user] net-libs/gnutls-3.3.26, compile fail

2017-02-23 Thread karl
I get a lot:

 No such file or directory

when compiling, should I just wait a week or there anyone who knows
why ?

Also tried removing all USE flags, same result.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57



gnutls.tgz
Description: gnutls.tgz


[gentoo-user] How do I install slotted guile

2017-03-04 Thread karl
 I need booth guile-2 (for geda) and guile-1.8 (for lilypond).

 I can install either of the two
# emerge -aqv  dev-scheme/guile:12/8  # version 1.8.8
# emerge -aqv  dev-scheme/guile:12/22 # version 2.0.14

but not both

# emerge -aqvuDN dev-scheme/guile:12/22 dev-scheme/guile:12/8 
[ebuild UD] dev-scheme/guile-1.8.8-r3 [2.0.14] USE="deprecated emacs%* 
networking nls readline%* regex threads -debug -debug-freelist% -debug-malloc 
-discouraged%" 

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:
...

So, does anyone know how to install both of them ?

///

Searching I find info. how to specify slotting in ebuild files, but
not how to actually install things in slots; man emerge wasn't to much
help either.

I could install it outside of emerge, in /usr/local. I did that for
some version of guile 2.0, but removed it so not to interfere with the
emerge work thing. But then, when I tried to emerge guile 2.0.14 I
got 

 make: error while loading shared libraries: libguile-2.0.so.22: cannot open 
shared object file: No such file or directory

I thougth it was strange that building guile would fail on missing
the libguile, and it happened whatever I did, until I realized that
make had a dependancy on libguile. Stupid thing, I couldn't rebuild
make with USE=-guile, since make didn't work any longer. So, I'd
prefer not go through that again (in the end I grabbed make from a
stage3 I had laying).

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] How do I install slotted guile

2017-03-04 Thread karl
Alen McKinnon:
> On 04/03/2017 15:56, k...@aspodata.se wrote:
> >  I need booth guile-2 (for geda) and guile-1.8 (for lilypond).
...
> > So, does anyone know how to install both of them ?
> You can't. At least, you can't emerge both with the current tree, you
...

Thanks, bad to know, I won't waste more time on that then.

> Your best bet is to install one version from source into /usr/local/,
> then find all the ways your system uses guile and take steps to always
> correctly identify the correct one.
...

I'll try to install 1.8.8 in /usr/local then.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] local mail access - Lock file

2017-03-13 Thread karl
Thelma:
...
> How these programs decide which one own a Lock.file?

https://linux.die.net/man/1/mail-lock
https://en.wikipedia.org/wiki/File_locking#Lock_files

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] Diskless nodes

2017-03-16 Thread karl
Thelma:
> Is anybody running Diskless machine, booting over network?
> How is the speed?

I've done diskless before but it has been a few years since,
it was working just fine. Don't remember any specific issues
once you get it working.

> I have a Gentoo machine running Windows7 via VM.
> I need to network another PC and connect to that VM so I was thinking
> setting up Diskless node but never done it before.

You have to ask someone else about diskless MS-Windows.

> Would there be a problem with upgrades?
> I know all the node files have to reside on Sever from which the node is
> booting.
...

You have to know which files are system dependent och which are common
to all your diskless nodes and that depends on how and if you are
using any shared directories/disks for the nodes.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] Re: Heads up: A reason *NOT* to have xorg.conf file

2017-04-03 Thread karl
Walter Dnes:
...
>   This state of affairs seems to have evolved slowly.  There wasn't one
> version where it worked for nobody, immediately followed by the next
> version that worked for everybody.  Years ago, X would not run without
> an xorg.conf file.  Then X started being able to properly autoconfigure
> without an xorg.conf file for 10% of users...  then 20%... then 30%,
> etc.  Today it works for just about everybody.

No for me, I still use a serial mouse with mman protocol.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





Re: [gentoo-user] Re: Heads up: A reason *NOT* to have xorg.conf file

2017-04-04 Thread karl
Nikos:
> On 04/04/2017 12:11 AM, k...@aspodata.se wrote:
> > Walter Dnes:
> > ...
> >>   This state of affairs seems to have evolved slowly.  There wasn't one
> >> version where it worked for nobody, immediately followed by the next
> >> version that worked for everybody.  Years ago, X would not run without
> >> an xorg.conf file.  Then X started being able to properly autoconfigure
> >> without an xorg.conf file for 10% of users...  then 20%... then 30%,
> >> etc.  Today it works for just about everybody.
> >
> > No for me, I still use a serial mouse with mman protocol.
> 
> I have an /etc/X11/xorg.conf.d/mouse.conf file. I use it to set the 
> default acceleration profile. In your case, you should be able to delete 
> your xorg.conf and instead just use this in mouse.conf:
> 
>Section "InputDevice"
>Identifier  "Mouse0"
>Driver  "mouse"
>Option  "Device"   "/dev/whatever_you_use_currently"
>Option  "Protocol" "MouseMan"
>EndSection

Thanks for the idea, will check how xorg.conf and xorg.conf.d relate to 
each other.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden
+46 173 140 57





[gentoo-user] libQt5Core.so.5 => not found

2018-11-09 Thread karl
I'm trying to build/emerge dev-qt/qtgui-5.11.1, but I get this:

# ldd 
/Net/portage_tmpdir/portage/dev-qt/qtgui-5.11.1/work/qtbase-everywhere-src-5.11.1/bin/qvkgen
linux-vdso.so.1 (0x7fff3ddff000)
libQt5Core.so.5 => not found
libc.so.6 => /lib64/libc.so.6 (0x7f697dbd8000)
/lib64/ld-linux-x86-64.so.2 (0x7f697e1f5000)
# strings /etc/ld.so.cache | grep libQt5Core.so.5
libQt5Core.so.5
/usr/lib64/libQt5Core.so.5
# ls -l /usr/lib64/libQt5Core.so.5*
lrwxrwxrwx 1 root root  20 Nov  5 12:49 /usr/lib64/libQt5Core.so.5 -> 
libQt5Core.so.5.11.1
lrwxrwxrwx 1 root root  20 Nov  5 12:49 /usr/lib64/libQt5Core.so.5.11 -> 
libQt5Core.so.5.11.1
-rwxr-xr-x 1 root root 5351376 Nov  5 12:49 /usr/lib64/libQt5Core.so.5.11.1

So why isn't it found ?

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





[gentoo-user] emerge fails: media-sound/alsa-tools-1.1.6

2018-11-09 Thread karl
Applying this makes it work:

diff --git a/media-sound/alsa-tools/alsa-tools-1.1.6.ebuild 
b/media-sound/alsa-tools/alsa-tools-1.1.6.ebuild
index 18fcd567ec8..85804ba8aae 100644
--- a/media-sound/alsa-tools/alsa-tools-1.1.6.ebuild
+++ b/media-sound/alsa-tools/alsa-tools-1.1.6.ebuild
@@ -43,7 +43,7 @@ pkg_setup() {
$(usex alsa_cards_mixart mixartloader '')
$(usex alsa_cards_vx222 vxloader '')
$(usex alsa_cards_usb-usx2y usx2yloader '')
-   $(usex alsa_cards_pcxhr pcxhr '')
+   $(usex alsa_cards_pcxhr pcxhrloader '')
$(usex alsa_cards_sscape sscape_ctl '')
)

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] libQt5Core.so.5 => not found

2018-11-10 Thread karl
Adam Carter:
> On Sat, Nov 10, 2018 at 3:51 PM Adam Carter  wrote:
> > On Fri, Nov 9, 2018 at 10:33 PM  wrote:
> >> I'm trying to build/emerge dev-qt/qtgui-5.11.1, but I get this:
> >> # ldd
> >> /Net/portage_tmpdir/portage/dev-qt/qtgui-5.11.1/work/qtbase-everywhere-src-5.11.1/bin/qvkgen
> >> linux-vdso.so.1 (0x7fff3ddff000)
> >> libQt5Core.so.5 => not found
> >> libc.so.6 => /lib64/libc.so.6 (0x7f697dbd8000)
> >> /lib64/ld-linux-x86-64.so.2 (0x7f697e1f5000)
...
> >> So why isn't it found ?
...
> Sorry - you checked the cache. Does ldconfig -p show it?
> 
> For me;
> ldconfig -p | grep libQt5Core.so.5
> libQt5Core.so.5 (libc6,x86-64, OS ABI: Linux 3.17.0) =>
> /usr/lib64/libQt5Core.so.5

Same:

# ldconfig -p | grep libQt5Core.so.5
libQt5Core.so.5 (libc6,x86-64, OS ABI: Linux 3.17.0) => 
/usr/lib64/libQt5Core.so.5

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] libQt5Core.so.5 => not found

2018-11-10 Thread karl
David Haller:
> On Fri, 09 Nov 2018, k...@aspodata.se wrote:
> >I'm trying to build/emerge dev-qt/qtgui-5.11.1, but I get this:
> >
> ># ldd 
> >/Net/portage_tmpdir/portage/dev-qt/qtgui-5.11.1/work/qtbase-everywhere-src-5.11.1/bin/qvkgen
> >linux-vdso.so.1 (0x7fff3ddff000)
> >libQt5Core.so.5 => not found
> >libc.so.6 => /lib64/libc.so.6 (0x7f697dbd8000)
> >/lib64/ld-linux-x86-64.so.2 (0x7f697e1f5000)
...
> >So why isn't it found ?
> 
> Are you using a kernel <3.15?
> 
> Found this at <https://bbs.archlinux.org/viewtopic.php?id=232682>:
> "Qt 5.10 uses the renameat2 system call which is only available
> since kernel 3.15."

Ok, 3.12.8 here, I'll see if an upgrade will cure it.

> The error-message of ld et.al. is rather weird and misleading though.

Yes.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





[gentoo-user] emerging older compilers

2018-11-30 Thread karl
For testing purposes, I would like to install older compilers,
e.g. testing with older kernels.

I have tried to install e.g. gcc-5.4.0-r4, gcc-4.9.4, and
gcc-3.4.6-r2.ebuild (package.unmask is upd. for theese), but it fails.

 You usually install a newer compiler with the older (and that is
well tested), but has anyone tried it the other way ?

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] emerging older compilers

2018-12-02 Thread karl
Andreas:
> Policy is that you *should* be able to go back in steps of two versions. 
> Eg. emerge 4.8 with 5.0 ...

# gcc-config -l
 [1] x86_64-pc-linux-gnu-6.4.0 *
 [2] x86_64-pc-linux-gnu-7.3.0
#

That means, go from 6.4 -> 6.2 -> 6.0 -> ... ?

But I don't have thoose ebuilds:

$ ls -1 portage/sys-devel/gcc/
...
gcc-5.4.0-r4.ebuild
gcc-5.4.0-r5.ebuild
gcc-5.4.0-r6.ebuild
gcc-6.4.0-r1.ebuild
gcc-6.4.0-r3.ebuild
gcc-6.4.0-r4.ebuild
gcc-6.4.0-r5.ebuild
gcc-6.5.0.ebuild
...

so that means I'm on my own.

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] RAID-1 on secondary disks how?

2019-01-29 Thread karl
Peter Humphrey:
...
>  In my case I 
> haven't needed an initramfs so far, and now I see I still don't need one - 
> why 
> add complication? Having set the kernel option to assemble raid devices at 
> boot time, now that /dev/md0 has been created I find it ready to go as soon 
> as 
> I boot up and log in. No jiggery-pokery needed.
> 
> A reminder: this is not the boot device.

Works on a boot device as long as you use old 0.90 format superblock on 
your md devices. You can boot with autodetect or specify how to 
assemble root raid fs on command line like:

# cat /proc/cmdline 
BOOT_IMAGE=18/3 ro root=902 md=2,/dev/sda2,/dev/sdb2 raid=noautodetect
# ls -l /dev/md2 
brw-rw 1 root disk 9, 2 Apr 12  2015 /dev/md2
#

Regards,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sweden





Re: [gentoo-user] Quad UART PCIe Adapter (Oxford-Chipset) seems (not?) to work? Check?

2019-03-24 Thread karl
Meino:
> In my PC there is a quad uart PCIe-adapter with Oxford Chipset.
...
> To minimize the number of variables in this equitation I would like to
> ensure, that at least the UART adapter is working.
...

Try
 setserial -g /dev/ttyS? /dev/ttyS1?
and see if it shows up there.

You can get pin status with
 statserial /dev/ttyS9

Connect a null modem cable from one port to the next
open two terminals
 in first  term. do cu -l /dev/ttyS8 -s 9600
 in second term. do cu -l /dev/ttyS9 -s 9600
or similar, and see if you can talk with yourself.

Regards,
/Karl Hammar




Re: [gentoo-user] Quad UART PCIe Adapter (Oxford-Chipset) seems (not?) to work? Check?

2019-03-25 Thread karl
LMP:
> +AD4 You can get pin status with
> +AD4  statserial /dev/ttyS9
> +AD4 
> 
> I hate to butt in, but statserial seems like it would be quite
> useful...  And yet I can't figure out which package it's in on Gentoo. 
> It's not in setserial, doesn't have its own package, and isn't
> discoverable via eix or pfl...  Is there an ebuild hidden somewhere? 
> Or do I need to hunt it down by hand?

https://packages.debian.org/source/stretch/statserial

Regards,
/Karl Hammar




[gentoo-user] virtual vs. perl-core Time-Local

2019-03-26 Thread karl
 Is there a reason why thoose two doesn't have a matching
 latest versions:
https://packages.gentoo.org/packages/virtual/perl-Time-Local
https://packages.gentoo.org/packages/perl-core/Time-Local

 I get:
[ebuild  N] virtual/perl-Time-Local-1.250.0-r1 
...
[blocks B ] 

[gentoo-user] Unable to unshare: EINVAL

2019-03-26 Thread karl
I sometimes get:
 Unable to unshare: EINVAL
when "emerge"-ing packages.

Does anybody know what that is about ?

Regards,
/Karl Hammar






Re: [gentoo-user] Unable to unshare: EINVAL

2019-03-27 Thread karl
Marc Joliet:
> Am Mittwoch, 27. März 2019, 11:01:41 CET schrieb Hervé Guillemet:
> > Le 26/03/2019 à 14:37, k...@aspodata.se a écrit :
> > > I sometimes get:
> > >   Unable to unshare: EINVAL
> > Your kernel is probably missing a features used by the new versions of
> > portage. I'd say something like CONFIG_PID_NS from the General
> > Setup/Namespaces support section.

Ok, I see, I don't have that, thanks for the info.

> > If you built your own kernel, try to activate this feature.
> If you use gentoo-sources, the option GENTOO_LINUX_PORTAGE ("Gentoo Linux" -> 
> "Gentoo Linux Support" -> "Select options required by Portage features") will 
> automatically select them.

emerge-ing seems work, can't I just ignore the message (I don't need 
that namespace elsewhere in the system) ?

Regards,
/Karl Hammar




Re: [gentoo-user] Picking out a printer. Questions.

2019-04-21 Thread karl
Dale:
> I'm looking at printers.  I been wanting a toner based printer for a
> LONG time now.

Office inkjet printers has come a long way to match laser/led printers.

> Brother HL-L3270CDW  Now I googled some, which can be dangerous at

I bought a Brother HL-L8260CDW for my mother and it works perfectly 
fine for her, except it failes with out of memory for some photo print
jobs, she has both linux and MS-Windows computers.

...
> Duty Cycle: Up to 30,000  Would that be OK for a printer for home use,
> likely heavy use the first couple months?
...

Don't know what you classify as heavy use, but the 3270 looks like a
small, light duty printer.

///

Generally, when I look for printers my spec is:
. postscript level 3 (or compatible)
. duplex/tumble (up to 200g/m²)
. A3 or larger
. >= two paper trays + manual feed
. up to 300g/m²
. matte blacks (most (all?) new printers make glossy printouts)
. clean, crisp and high resolution printouts
. lots of memory, fast cpu
. cable ethernet connection
. lpr port (515) and 9100
. price range

You havn't said your spec. so I cannot recommend anything for you.
But going A4/letter, there is too many to choose from, so start with
price range.

Regards,
/Karl Hammar




Re: [gentoo-user] Re: Picking out a printer. Questions.

2019-04-27 Thread karl
Mick:
> On Friday, 26 April 2019 18:00:13 BST Dale wrote:
...
> > Picking last reply.  I got the printer, removed all the shipping stuff,
> > did the normal setup and got a test page printed from CUPS, in color. 
> > I'm taking this from the CUPS printer page that shows the connection. 
> > It printed from Kwrite and shows as ready for other programs as well.  I
> > would like someone to confirm that this is the best way to have this set
> > up.  I googled and can't find a howto for this.  Most everything I found
> > referenced .rpm and .deb stuff.
> 
> Printers are plug 'n play these days.  There is no manual configuration 
> needed,
...

I'd say that a postscript printer with ethernet and a lpr port would
amount to "plug 'n play" in the old days.

...
> > The only way I could find to print is using the ipp thingy, at least it
> > was the first way I could print successfully.  Still, is this the proper
> > way? 
> 
> The printer manual should state what protocols it able to communicate over.  
> Failing this, try to login using its web GUI (usually on port 80) with a 
> browser.  There will be some network configuration page where information may 
> be provided on what protocols/ports are available.
...

The easiest way to know what to expect from the printers network 
connectivity is to look at the spec. page:
 https://www.lexmark.com/en_us/printer/12473/Lexmark-C2325dw#specs

It looks like many (most?) lasers today can use postscript,
lpr and port 9100. So the most basic form of printing would be
nc host 9100 < postscript_file

Regards,
/Karl Hammar





[gentoo-user] Problems with /dev/parport0

2019-05-02 Thread karl
Where is the proper place to ask about parports ?

///

 I get:
# echo -n 1 > /dev/parport0  
bash: echo: write error: Invalid argument

i.e. error 22 (EINVAL), as if there isn't any write routine
in the driver. I have tested two identical cards, same story.

Same thing with reading:
$ dd if=/dev/parport0 count=1 bs=1
dd: error reading '/dev/parport0': Invalid argument
0+0 records in
0+0 records out
0 bytes copied, 6.2359e-05 s, 0.0 kB/s

open() and close() works without errors.

How can I make it functional ?

///

 I have two Delock 1x par, 2x ser pcie cards (only one installed).
 The parport one show up (lspci -vn) as:
05:00.2 0701: 9710:9912 (prog-if 03 [IEEE1284])
Subsystem: a000:2000
Flags: bus master, fast devsel, latency 0, IRQ 17
I/O ports at ad00 [size=8]
I/O ports at ac00 [size=8]
Memory at fd8fb000 (32-bit, non-prefetchable) [size=4K]
Memory at fd8fa000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [78] Power Management version 3
Capabilities: [80] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: parport_serial
Kernel modules: parport_serial

 it matches:
{ PCI_VENDOR_ID_NETMOS, PCI_DEVICE_ID_NETMOS_9912,
  0xA000, 0x2000, 0, 0, netmos_99xx_1p }
 i.e. lines 176-177 in drivers/parport/parport_serial.c
 in the kernel source, last changed ages ago:
commit b9b24558f7d36c550b5cf0b550a8926f8c03cdbd
Author: Frédéric Brière 
Date:   Sun May 29 15:08:04 2011 -0400

 It shows up in the log as:
parport0: PC-style at 0xad00 (0xac00), irq 17, using FIFO 
[PCSPP,TRISTATE,COMPAT,EPP,ECP]
 or
parport0: PC-style at 0xad00 (0xac00), irq 17 [PCSPP,TRISTATE,EPP]
 depending if I have CONFIG_PARPORT_PC_FIFO set or not in the kernel

 I cannot set irq to none, it shows up as irq 17 even though I do:
# modprobe parport_pc irq=none
# modprobe parport_serial irq=none

 The device file has sensible maj/min numbers:
# ls -l /dev/parport0 
crw-rw 1 root users 99, 0 Jan 18  2016 /dev/parport0

Regards,
/Karl Hammar




Re: [gentoo-user] Problems with /dev/parport0

2019-05-03 Thread karl
Hogren:
> I try to help you without parallel port, sorry.

Thank you for responding.

> Do you have parport installed as a module or directly in the kernel ? 
> Did you try the two methods ?

Only as a module.

> If this is a module, did you run «insmod partport» ?

modprobe parport_serial

Which loads parport and parport_pc which it depends on.

> Do you follow a documentation ? Can you give a link ?

No, I just loaded the module "as usual".

https://www.kernel.org/doc/html/v4.11/admin-guide/parport.html

Some people have reported problem solved by setting the _FIFO thing to 
off or setting parport dma to on in bios.

Regards,
/Karl Hammar





Re: [gentoo-user] Problems with /dev/parport0

2019-05-03 Thread karl
Hogren:
> On 03/05/2019 15:45, k...@aspodata.se wrote:
> >> Do you have parport installed as a module or directly in the kernel ?
> >> Did you try the two methods ?
> > Only as a module.
> Why do you not try do integrate it with the kernel ?

That won't change the end result.

> Other questions :
> 
> - Where did you read that you can write directly to the /dev/parport0 
> device ?

I have done it before with std par ports at 0x378, also it is a fairly
common thing in the unix world to treat devices as files.

> - Can you post «tree /proc/sys/dev/parport» or equivalent (to compare 
> with the official documentation) ?

Thoose files looks fine, no problem there.

Regards,
/Karl Hammar




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

2019-05-29 Thread karl
Part of portage_tmpdir/portage/sys-apps/dtc-1.5.0/temp/build.log:
...
x86_64-pc-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,--as-needed -L. -Wl,-O1 
-Wl,--as-needed -O2 -pipe -fPIC -Wall -Wpointer-arith -Wcast-qual 
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls 
-Wshadow -I/usr/include/valgrind -fPIC -Wall -Wpointer-arith -Wcast-qual 
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls 
-Wshadow -I/usr/include/valgrind build/temp.linux-x86_64-2.7/libfdt_wrap.o 
-L../libfdt -L/usr/lib64 -lfdt -lpython2.7 -o 
build/lib.linux-x86_64-2.7/_libfdt.so
running install_lib
copying build/lib.linux-x86_64-2.7/libfdt.py -> 
/usr/lib64/python2.7/site-packages
 * ACCESS DENIED:  fopen_wr: /usr/lib64/python2.7/site-packages/libfdt.py
error: [Errno 13] Permission denied: 
'/usr/lib64/python2.7/site-packages/libfdt.py'
make[1]: *** [pylibfdt/Makefile.pylibfdt:24: install_pylibfdt] Error 1
make[1]: Leaving directory 
'/Net/portage_tmpdir/portage/sys-apps/dtc-1.5.0/work/dtc-1.5.0'
make: *** [Makefile:231: maybe_install_pylibfdt] Error 2
 * ERROR: sys-apps/dtc-1.5.0::gentoo failed (install phase):
 *   emake failed
 * 
...

Why does the install fail, I have no problem creating that file by hand 
(as in touch ), why does a simple thing like copy fail ?

Have it something with sandboxing to do ?

How do I go arond this ?

Regards,
/Karl Hammar




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

2019-05-29 Thread karl
Francesco Turco:
> On Wed, May 29, 2019, at 13:30, k...@aspodata.se wrote:
> > Part of portage_tmpdir/portage/sys-apps/dtc-1.5.0/temp/build.log:
> > ...
...
> > copying build/lib.linux-x86_64-2.7/libfdt.py -> 
> > /usr/lib64/python2.7/site-packages
> >  * ACCESS DENIED:  fopen_wr: 
> > /usr/lib64/python2.7/site-packages/libfdt.py
> > error: [Errno 13] Permission denied: 
...
> > Why does the install fail, I have no problem creating that file by hand 
> > (as in touch ), why does a simple thing like copy fail ?
> 
> I don't know how to solve this problem, but it has already been reported:
> 
> https://bugs.gentoo.org/686852

Thanks for the info.
In the meantime you can walk around the problem by not using the 
sandbox like:

FEATURES="-sandbox -usersandbox" emerge -aqv sys-apps/dtc

Regards,
/Karl Hammar




Re: [gentoo-user] emerging older compilers

2019-05-30 Thread karl
Karl Hammar:
> For testing purposes, I would like to install older compilers,
> e.g. testing with older kernels.
> 
> I have tried to install e.g. gcc-5.4.0-r4, gcc-4.9.4, and
> gcc-3.4.6-r2.ebuild (package.unmask is upd. for theese), but it fails.

 I have found out that I can install thoose older comilers with:

FEATURES="-sandbox -usersandbox" emerge -aqv   =sys-devel/gcc-5.4.0-r4

# since ustat.h is no loger with (>=glibc 2.28) according to 
# 
https://sourceware.org/git/?p=glibc.git;a=commit;h=cf2478d53ad7071e84c724a986b56fe17f4f4ca7
echo =sys-devel/gcc-4.9.4 -sanitize >> /etc/portage/package.use/gcc
eselect gcc set 1
. /etc/profile
FEATURES="-sandbox -usersandbox" emerge -aqv   =sys-devel/gcc-4.9.4

gcc-3.4.6-r2 still doesn't install though.

Regards,
/Karl Hammar




[gentoo-user] app-text/c2ps buffer overflow

2019-07-26 Thread karl
$ c2ps 
*** buffer overflow detected ***: c2ps terminated
Aborted

 Downloading source from
  http://www.cs.technion.ac.il/users/c2ps/c2ps-4.0.tar.gz
 and compiling gives the same result:

$ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c  > zz.ps
*** buffer overflow detected ***: 
/Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps terminated
Aborted

 Removeing -O in Makefile:
$ diff Makefile*
6c6
< CCFLAGS =   
---
> CCFLAGS =   -O

 and recompiling solves the issue:
$ /Net/http/www.cs.technion.ac.il/users/c2ps/c2ps-4.0/c2ps -2 tap.c  > zz.ps
tap.c2 pages printed   

 O2 doesn't work either.

 Perhaps this makes the error messages to appear:
$ grep STACKPROT /boot/config-4.11.12-rt16-1 
CONFIG_HAVE_CC_STACKPROTECTOR=y
CONFIG_CC_STACKPROTECTOR=y
# CONFIG_CC_STACKPROTECTOR_NONE is not set
CONFIG_CC_STACKPROTECTOR_REGULAR=y
# CONFIG_CC_STACKPROTECTOR_STRONG is not set

Regards,
/Karl Hammar




Re: [gentoo-user] Encfs and mlocate

2019-12-02 Thread karl
mcc:
> I want to index the contents of a ecryptfs-ed directory tree with
> mlocate storing the resulting db in that directory tree

I do like this:

  Nightly run:
PRUNEPATHS=$HOME/tmp
updatedb -l 0 -U $HOME -o $HOME/.updatedb
chmod 600 $HOME/.updatedb

  To find:
locate -d $HOME/.updatedb "$@"

Works without problem here.

...
> Reading its contents with
> 
> locate -d var/lib/mlocate/mlocate.db whattofind
> 
> results in 
> 
> locate: can not stat () `var/lib/mlocate/mlocate.db': Permission denied
> 
> the file shows this permission:
> 
> -rw-r--r-- 1 me users 1319628 2019-12-02 04:25 var/lib/mlocate/mlocate.db
> 
> . Why can I create a file, which afterwards I am not allowed to read?

Even if you cannot read a file you should be able to stat it,
like e.g. stat /etc/shadow.

It can be some problem with directory permissions, try to cd to your 
var/lib/mlocate directory and then do a locate -d mlocate.db ...

Can you read your db file with something else, e.g. md5sum,
to verify that you can read it in some ways.

Regards,
/Karl Hammar





[gentoo-user] media-sound/jamin-0.95.0-r3

2019-12-26 Thread karl
Gentoo jamin segfaults, but git version doesn't. Is it time to update 
the ebuild file ?

///

  Jamin emerges fine (with or without osc):

# emerge -aqv1 jamin
[ebuild   R   ] media-sound/jamin-0.95.0-r3  USE="osc*" 
...
Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-sound/jamin-0.95.0-r3::gentoo
>>> Installing (1 of 1) media-sound/jamin-0.95.0-r3::gentoo
>>> Jobs: 1 of 1 complete   Load avg: 1.28, 0.42, 0.31

  But it segfaults on startup:

$ jamin 
jamin 0.95.0
(C) 2003-2005 J. Depner, S. Harris, J. O'Quin, R. Parker and P. Shirkey
This is free software, and you are welcome to redistribute it
under certain conditions; see the file COPYING for details.

(jamin:4501): Gtk-WARNING **: 18:12:48.819: GtkSpinButton: setting an 
adjustment with non-zero page size is deprecated

(jamin:4501): Gtk-WARNING **: 18:12:48.820: GtkSpinButton: setting an 
adjustment with non-zero page size is deprecated

(jamin:4501): Gtk-WARNING **: 18:12:48.820: GtkSpinButton: setting an 
adjustment with non-zero page size is deprecated

(jamin:4501): Gtk-WARNING **: 18:12:48.836: GtkSpinButton: setting an 
adjustment with non-zero page size is deprecated
Segmentation fault



 The ebuild file points to http://jamin.sourceforge.net which points me 
to http://jamin.sourceforge.net/en/devinfo.html for the source and 
appearantly they use cvs. Checking out things I see that things are 
last updated 2005.

  After some searching I find:
https://sourceforge.net/p/jamin/mailman/jamin-devel/?viewmonth=201304

which points me to a git repo. Checking out it, and compiling gets me a 
jamin that doesn't segfaults.

$ jamin -V
jamin 0.98.9

///

Regards,
/Karl Hammar





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

2020-01-11 Thread karl
 From net-nds/rpcbind-1.2.5/temp/build.log:
x86_64-pc-linux-gnu-gcc -DPACKAGE_NAME=\"rpcbind\" [...] -c -o src/security.o 
src/security.c
src/security.c:27:10: fatal error: rpcsvc/rquota.h: No such file or directory
 #include 

 Where can I find that header file ?

Regards,
/Karl Hammar





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

2020-01-11 Thread karl
Francesco Turco:
> On Sat, Jan 11, 2020, at 09:16, k...@aspodata.se wrote:
...
> >  #include 
> >  Where can I find that header file ?
> According to the portagefilelist.de website, either in sys-libs/glibc or in 
> sys-fs/quota.

 Thanks for the tip.

 Soo, why don't I have it???

$ fgrep quota.h /var/db/pkg/sys-libs/glibc-2.29-r2/CONTENTS
obj /usr/include/sys/quota.h 984635f29e66459151ac7ea2d48d0db4 1563571698
$ fgrep quota.h /var/db/pkg/sys-fs/quota-4.04-r2/CONTENTS
$

Is there anyone who knows ?

Regards,
/Karl Hammar




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

2020-01-11 Thread karl
Francesco Turco:
> On Sat, Jan 11, 2020, at 11:22, k...@aspodata.se wrote:
> >  Soo, why don't I have it???
> 
> Did you enable the "rpc" USE flag for sys-fs/quota?

Great, that did the trick, thanks.

Regards,
/Karl Hammar




[gentoo-user] qt4

2020-01-18 Thread karl
 Is there a way to install qt4 without resorting to make a new 
installation ?

 This code requires qt4:
https://github.com/thliebig/openEMS-Project

Regards,
/Karl Hammar





Re: [gentoo-user] qt4

2020-01-18 Thread karl
Andrew Udvare:
> > On 2020-01-18, at 03:17, k...@aspodata.se wrote:
...
> > This code requires qt4:
> > https://github.com/thliebig/openEMS-Project
> 
> Not from what I'm seeing. The README has an outdated line for Ubuntu but the 
> QCSXCAD GUI code references Qt5.
> 
> https://github.com/thliebig/QCSXCAD/blob/0dabbaf2bc1190adec300871cf309791af842c8e/CMakeLists.txt#L109

Ok, so there is hope.

I get (build_xxx.log):

CMake Warning at CMakeLists.txt:102 (find_package):
  Could not find a configuration file for package "VTK" that is compatible
  with requested version "6.1".

  The following configuration files were considered but not accepted:

/usr/lib/cmake/vtk-7.1/VTKConfig.cmake, version: 7.1.0



-- Found package VTK. Using version 7.1.0
CMake Error at /usr/share/cmake/Modules/FindQt4.cmake:1324 (message):
  Found unsuitable Qt version "5.13.2" from /usr/bin/qmake, this code
  requires Qt 4.x
Call Stack (most recent call first):
  CMakeLists.txt:124 (FIND_PACKAGE)


(That message is a little confusing, it finds a vtk which it doesn't 
accept, but it is using it ???)

Perhaps that triggers the else part in line 117-119.

Regards,
/Karl Hammar




[gentoo-user] octave won't run

2020-02-06 Thread karl
Octave won't run since a lib is missing.
I can re-emerge it without problems, but the problem still
persist. The lib is there but it has a different version.

Anyone know what this is about ?

$ ldd /usr/bin/octave-cli-4.2.2 | grep not
liblapack.so.0 => not found
$ ls -l /usr/lib64/liblapack.*
lrwxrwxrwx 1 root root  28 May  9  2019 /usr/lib64/liblapack.a -> 
lapack/reference/liblapack.a
lrwxrwxrwx 1 root root  14 Nov 29 00:30 /usr/lib64/liblapack.so -> 
liblapack.so.3
lrwxrwxrwx 1 root root  18 Nov 29 00:30 /usr/lib64/liblapack.so.3 -> 
liblapack.so.3.8.0
-rwxr-xr-x 1 root root 6886896 Nov 29 00:29 /usr/lib64/liblapack.so.3.8.0

Regards,
/Karl Hammar





Re: [gentoo-user] octave won't run

2020-02-06 Thread karl
Mick:
...
> I don't have these packages on my systems to check, but does 'eselect lapack 
> list' reveal anything amiss?
...

$ eselect lapack list
Available LAPACK (lib) candidates:
  (none found)
Available LAPACK (lib64) candidates:
  (none found)
$ eselect blas list
Available BLAS/CBLAS (lib) candidates:
  (none found)
Available BLAS/CBLAS (lib64) candidates:
  (none found)

and after rebuilding lapack with eselect-ldso

$ eselect lapack list
Available LAPACK (lib) candidates:
  (none found)
Available LAPACK (lib64) candidates:
  [1]   reference *
$ eselect blas list
Available BLAS/CBLAS (lib) candidates:
  (none found)
Available BLAS/CBLAS (lib64) candidates:
  [1]   reference *

still same problem.

recompiling octave, same problem.
recompiling octave with  static-libs, same problem.

Regards,
/Karl Hammar




Re: [gentoo-user] octave won't run

2020-02-06 Thread karl
Mick:
...
> Unless someone shows up with more knowledge on the specifics it would be 
> worth 
> posting a bug, or contacting the maintainer for suggestions.
...

Since octave compiles/emerges successfully, there are no log files left.
Can I tell emerge to not remove the build directory ?

Regards,
/Karl Hammar




Re: [gentoo-user] octave won't run

2020-02-06 Thread karl
Mark:
> Sounds like a ebuild dependency bug, or possibly a bad mix of stable and
> non-stable packages that haven't been sussed out fully.
> 
> Not a good long-term solution, especially if you're forgetful like me, but
> as a test you might try creating a symlink for libapack.so.0 pointing to
> libapack.so.3 and see if octave runs.
> 
> Best to remove that more or less right away but it might get you through a
> test period waiting for the ebuild to get fixed.

Yes, that short term solution works.

Regards,
/Karl Hammar




Re: [gentoo-user] Re: octave won't run

2020-02-06 Thread karl
Ian:
> On 2020-02-06 09:56, Mick wrote:
> 
> > Otherwise the latest sci-libs/lapack is 3.8.0, so your links above look 
> > correct as far as I can tell.
> 
> Note that sci-libs/lapack and sci-libs/lapack-reference are 2 distinct
> packages.  The OP presumably has the latter.
> 
> Both of them existing may be the real bug here.

 The refrence one isn't installed:

# emerge --search sci-libs/lapack-reference
  
[ Results for search key : sci-libs/lapack-reference ]
Searching...

*  sci-libs/blas-reference
  Latest version available: 20070226-r4
  Latest version installed: [ Not Installed ]
  Size of files: 5208 KiB
  Homepage:  http://www.netlib.org/blas/
  Description:   Basic Linear Algebra Subprograms F77 reference 
implementations
  License:   BSD

*  sci-libs/lapack-reference
  Latest version available: 3.2.1-r4
  Latest version installed: [ Not Installed ]
  Size of files: 4694 KiB
  Homepage:  http://www.netlib.org/lapack/index.html
  Description:   FORTRAN reference implementation of LAPACK Linear Algebra 
PACKage
  License:   BSD

Regards,
/Karl Hammar




Re: [gentoo-user] Console scrollback

2021-04-02 Thread karl
Alex Mackenzie:
...
> I've now cobbled together a working console scroll on Linux
> 5.4.80-gentoo-r1.  In the end, I reused much of the old machinery which
> was still present in 4.19.97.  Once I've tidied it up, I hope that the
> resulting patch file will apply cleanly also to later versions than
> 5.4.80-r1.
...

Nice, where is the patch so I can try ?

> (i) The scrolling doesn't work on /dev/tty1 aka the console.
> (ii) When, e.g., /dev/tty6 has been scrolled upwards a bit, and then
>pressed to go to /dev/tty2, on returning to /dev/tty6, the
>   scrolling has been cancelled and the cursor is no longer visible.
>   However, the scrollback buffer is still present.
> 
> I think I'm fairly likely to be able to solve (ii).  However, (i), the
> problem with /dev/tty1, has me baffled.  I don't know where to start
> looking for the problem.  If anybody with some kernel knowledge could
> make any suggestions, I'd be very grateful.

What happens if you set /dev/console to be /dev/ttyS0, i.e. make sure 
that tty1 is the only one using the first virtual console.

Regards,
/Karl Hammar





[gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-03 Thread karl
Is there a way to run emerge step by step to find out why it fails ?

///

  I get this:
make[1]: Entering directory 
'/Net/gentoo/tmpdir/portage/dev-lang/R-4.0.4/work/R-4.0.4/doc'
make[1]: Leaving directory 
'/Net/gentoo/tmpdir/portage/dev-lang/R-4.0.4/work/R-4.0.4'
help2man: can't get `--version' info from ../bin/R
make[1]: *** [Makefile:46: R.1] Error 255
make[1]: *** Waiting for unfinished jobs
Error: package or namespace load failed for ?<80><98>methods?<80><99>:
 .onLoad failed in loadNamespace() for 'methods', details:
  call: (function (n) 
  error: lazy-load database 
'/Net/gentoo/tmpdir/portage/dev-lang/R-4.0.4/work/R-4.0.4/library/methods/R/methods.rdb'
 is corrupt
During startup - Warning messages:
1: In (function (n)  : internal error -4 in R_decompress1
2: package "methods" in options("defaultPackages") was not found 
make[1]: Leaving directory 
'/Net/gentoo/tmpdir/portage/dev-lang/R-4.0.4/work/R-4.0.4/doc'

  but ../bin/R --version works:
# cd /Net/gentoo/tmpdir/portage/dev-lang/R-4.0.4/work/R-4.0.4/doc
# ../bin/R --version
WARNING: ignoring environment value of R_HOME
R version 4.0.4 (2021-02-15) -- "Lost Library Book"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
https://www.gnu.org/licenses/.

#

///

 I also get segfault:
begin installing recommended package MASS
begin installing recommended package lattice
Segmentation fault
make[2]: *** [Makefile:53: MASS.ts] Error 1
make[2]: *** Waiting for unfinished jobs
* installing *source* package ?<80><98>codetools?<80><99> ...
** package ?<80><98>codetools?<80><99> successfully unpacked and MD5 sums 
checked
** using non-staged installation

///

 Full build log is here:
http://aspodata.se/tmp/build.log

Regards,
/Karl Hammar




Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-04 Thread karl
Jack:
> On 2021.04.03 07:15, k...@aspodata.se wrote:
...
> > make[1]: *** Waiting for unfinished jobs
> Try running with -j1
...

 I already have:
EMERGE_DEFAULT_OPTS="--jobs 1 ...
 in make.conf. Don't know why it still wants to run in parallell.

Regards,
/Karl Hammar





Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-04 Thread karl
Michael:
> On Sat, 2021-04-03 at 13:15 +0200, k...@aspodata.se wrote:
> > Is there a way to run emerge step by step to find out why it fails ?
> > 
> 
> No easy way. You can `cp -a` the source/build directories out of
> /var/tmp/portage and then re-run `make -j`. That should re-
> start the build more or less where it failed.

$ cp -a ...
$ cd ...
$ make -j1
...
$ echo $?
0

It builds without failure in that case.

Regards,
/Karl Hammar





Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-05 Thread karl
t;/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c format.c -o format.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c init.c -o init.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c minitab.c -o minitab.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c pfm-read.c -o pfm-read.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c sfm-read.c -o sfm-read.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c spss.c -o spss.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c stataread.c -o stataread.o
x86_64-pc-linux-gnu-gcc -shared -L/home/sys/R-4.0.4/work/R-4.0.4/lib -Wl,-O1 
-Wl,--as-needed -o foreign.so R_systat.o Rdbfread.o Rdbfwrite.o SASxport.o 
avl.o dbfopen.o file-handle.o format.o init.o minitab.o pfm-read.o sfm-read.o 
spss.o stataread.o -L/home/sys/R-4.0.4/work/R-4.0.4/lib -lR
make[3]: Leaving directory '/tmp/Rtmpyf37hQ/R.INSTALL6e75db12a27/foreign/src'
installing to /home/sys/R-4.0.4/work/R-4.0.4/library/foreign/libs
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (foreign)
WARNING: ignoring environment value of R_HOME
* installing *source* package ?MASS? ...
** package ?MASS? successfully unpacked and MD5 sums checked
** using non-staged installation
** libs
make[3]: Entering directory '/tmp/RtmpY6iU2f/R.INSTALL6e078f85fff/MASS/src'
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c MASS.c -o MASS.o
x86_64-pc-linux-gnu-gcc -I"/home/sys/R-4.0.4/work/R-4.0.4/include" -DNDEBUG 
 -fpic  -O2 -pipe  -c lqs.c -o lqs.o
x86_64-pc-linux-gnu-gcc -shared -L/home/sys/R-4.0.4/work/R-4.0.4/lib -Wl,-O1 
-Wl,--as-needed -o MASS.so MASS.o lqs.o -L/home/sys/R-4.0.4/work/R-4.0.4/lib -lR
make[3]: Leaving directory '/tmp/RtmpY6iU2f/R.INSTALL6e078f85fff/MASS/src'
installing to /home/sys/R-4.0.4/work/R-4.0.4/library/MASS/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (MASS)
make[2]: Leaving directory 
'/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
make[1]: *** [Makefile:39: recommended-packages] Error 2
make[1]: Leaving directory 
'/home/sys/R-4.0.4/work/R-4.0.4/src/library/Recommended'
make: *** [Makefile:77: stamp-recommended] Error 2

 remove -pipe
# ./configure --prefix=/usr --build=x86_64-pc-linux-gnu 
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info 
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib 
--docdir=/usr/share/doc/R-4.0.4 --htmldir=/usr/share/doc/R-4.0.4/html 
--with-sysroot=/ --libdir=/usr/lib64 --enable-byte-compiled-packages 
--enable-R-shlib --disable-R-framework --with-blas=-lblas 
rdocdir=/usr/share/doc/R-4.0.4 --disable-java --enable-nls --enable-openmp 
--disable-R-profiling --disable-memory-profiling --enable-static 
--enable-R-static-lib --without-cairo --without-ICU --with-jpeglib 
--without-lapack --with-recommended-packages --with-libpng --with-readline 
--with-libtiff --without-tcltk --without-tk-config --without-tcl-config 
--with-x CFLAGS="-O2" CXXFLAGS="-O2" FCFLAGS="-O2" FFLAGS="-O2" 
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
...
R is now configured for x86_64-pc-linux-gnu

  Source directory:.
  Installation directory:  /usr

  C compiler:  x86_64-pc-linux-gnu-gcc  -O2
  Fortran fixed-form compiler: x86_64-pc-linux-gnu-gfortran 
-fno-optimize-sibling-calls -O2

  Default C++ compiler:x86_64-pc-linux-gnu-g++ -std=gnu++11  -O2
  C++14 compiler:  x86_64-pc-linux-gnu-g++ -std=gnu++14  -O2
  C++17 compiler:  x86_64-pc-linux-gnu-g++ -std=gnu++17  -O2
  C++20 compiler: 
  Fortran free-form compiler:  x86_64-pc-linux-gnu-gfortran 
-fno-optimize-sibling-calls -O2
  Obj-C compiler:  x86_64-pc-linux-gnu-gcc -g -O2 -fobjc-exceptions

  Interfaces supported:X11
  External libraries:  pcre2, readline, BLAS(generic), curl
  Additional capabilities: PNG, JPEG, TIFF, NLS
  Options enabled: shared R library

  Capabilities skipped:cairo, ICU
  Options not enabled: shared BLAS, R profiling, memory profiling

  Recommended packages:yes

# make -j4
...
make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/tests'
you should 'make docs' now ...
make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
make[1]: Entering directory '/home/sys/R-4.0.4/work/R-4.0.4'
WARNING: ignoring environment value of R_HOME
make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4'
WARNING: ignoring environment value of R_HOME
WARNING: ignoring environment value of R_HOME
Segmentation fault
make[1]: *** [Makefile:77: NEWS.3.rds] Error 139
make[1]: *** Waiting for unfinished jobs
make[1]: Leaving directory '/home/sys/R-4.0.4/work/R-4.0.4/doc'
...

Regards,
/Karl Hammar




Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-05 Thread karl
Michael:
> On Mon, 2021-04-05 at 16:10 +0200, k...@aspodata.se wrote:
> > system call failed: Cannot allocate memory 
> > Segmentation fault
> 
> Is this a low-memory machine?

So, how much memory does R need to build ?
I have:

$ free
   totalusedfree  shared  buff/cache   available
Mem: 6103628 1807560 2631444  146376 1664624 3107868
Swap:8788924  670108 8118816

///

Somewhere in the log it says that something failed to get 
a sigaltstack(). Did the R devs anticipate out of memory and sigseg and
tried to handle it ?

> If so, there's no much you can do here
> except set a lower number of jobs in MAKEOPTS for the dev-lang/R build:
>
>   https://wiki.gentoo.org/wiki//etc/portage/package.env

 I already have (in make.conf):
EMERGE_DEFAULT_OPTS="--jobs 1 ..."

  This seems to solved the issue:  
# cat /etc/portage/env/j1 
MAKEOPTS=-j1
# cat /etc/portage/package.env/R 
dev-lang/R j1

> But if you don't think you're running out of RAM, we can keep digging.
> For example you might have some memory limits set in /etc/limits that
> you're hitting.

I don't have an /etc/limits, and /etc/security/limits.conf is just
comments.

# prlimit -d -l -s 
RESOURCE DESCRIPTION SOFT  HARD UNITS
DATA max data size  unlimited unlimited bytes
MEMLOCK  max locked-in-memory address space unlimited unlimited bytes
STACK    max stack size   8388608 unlimited bytes

Regards,
/Karl Hammar




Re: [gentoo-user] Console scrollback is back again!

2021-04-05 Thread karl
Alan Mackenzie:
> Yes, console soft scrolling is back!  That essential feature that was
> stripped out of the kernel at around 5.4.x has returned!

It is commit 087b6cb17df5834d395ab72da3f937380470ba15,
between v5.4.65 and 66.
Perhaps also 0d123a8c64fde433a, cf5a7ded53652c3d63d72, and possible
other stuff.

> Only this time, it's even better!  Instead of one scrollback buffer
> shared between all tty's, there's now a buffer for each tty.

Great, no more missing data when switching vts.

Btw, wasn't that added in commit aabd31c421ddc730edf6d89c4ed3885e4fca5e30
but turned off by default.

...
> One ord two features haven't (yet) been implemented - having a
> single scroll buffer shared amongst all tty's isn't there,
...

Is there any reason to share the buffer ?

> Bug reports and other comments are welcome, of course.

git log drivers/video/console/vgacon.c etc. can give some ideas
what one is up against.

Regards,
/Karl Hammar





Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-07 Thread karl
Michael:
...
> What USE flags does "emerge -pv1 dev-lang/R" show?

# emerge -pv1 dev-lang/R
...
[ebuild   R] dev-lang/R-4.0.4::gentoo  USE="X jpeg nls openmp perl png 
readline static-libs tiff -cairo -doc -icu -java -lapack -minimal (-prefix) 
-profile -test -tk" 0 KiB

> Are you willing to watch "htop" in another window while the dev-lang/R
> build fails to see how much memory is free?

htop -u portage shows high cpu usage and low memory usage (something 
like less than 2%).

 if I use this instead of htop:
# grep -m1 ^MemFree /proc/meminfo 
MemFree:  253332 kB

 I get for -j1:
mean = 397662.00592
min  = 196772
max  = 762304
std  = 161394.91895

 I have put up data from some -j4 runs at:
http://aspodata.se/tmp/R/
 where mem4* are made with ./memwatch.pl > mem4_.log. It's columns are
 just seconds, MemFree, and MemAvailable, taken from:

$ head -3 /proc/meminfo 
MemTotal:6103628 kB
MemFree: 1028012 kB
MemAvailable:2326588 kB

///

 from mem4_.log, I see that the minimum free memory is:
 run 1 203492
 run 2 202392
 i.e. about 200MB.

 build_1.log points the finger to sandbox. So it might be that there
 i no problem at all with R, it might be that sandbox doesn't work here.
 I don't know what sandbox requires from the kernel so there might be
 some syscall missing.

 I did run 2 as 
 FEATURES="-sandbox -usersandbox" emerge -aqv1 dev-lang/R

 In build_2.log it just says Segment fault in the vincinity of
 NEWS.2.rds, NEWS.rds, base.Rdts, and methods.Rdts. The first
 two is mentioned in doc/Makefile, and the latter two in 
 src/library/Makefile. Going into doc and src/library and makeing
 thoose four works without any errors.

Regards,
/Karl Hammar




Re: [gentoo-user] emerge failure for dev-lang/R-4.0.4

2021-04-07 Thread karl
Michael:
> On Wed, 2021-04-07 at 12:54 +0200, k...@aspodata.se wrote:
> > # emerge -pv1 dev-lang/R
> > ...
> > [ebuild   R] dev-lang/R-4.0.4::gentoo  USE="... static-libs ..."
> 
> Thanks, this is really good debugging information. Is that USE=static-
> libs a global flag on your system? That may explain why your build is
> using more memory than mine.

yea, it was a try to make c++ programs to behave under changing
compiler and library situations. Seems that some such programs
don't want to be built statically so they break whenever some "random"
lib changes.

Regards,
/Karl Hammar




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

2021-04-22 Thread karl
Grant:
> 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.

No IP doesn't prohibit ethernet.

You could possible use:
 raw ethernet frames
 netbeui
   samba
 ethertalk (appletalk)
   http://netatalk.sourceforge.net/
 ipx (netware)
   ftp://ftp.koansoftware.com/public/opensource/mars_nwe/mars_nwe-0.99.pl21.tgz

I have previously (in the 90's) used mars, worked great.

Regards,
/Karl Hammar





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

2021-04-23 Thread karl
Grant:
> On 4/22/21 9:25 AM, k...@aspodata.se wrote:
> > No IP doesn't prohibit ethernet.
> 
> I agree technically.  Though I suspect it /may/ be problematic with the 
> spirit behind / motivating the ban on IP.

In that case, your usb-connection (or anything) will probably
be a borderline case to, since that is also a network...
But I guess the thing fobidden is anything makeing the ms-win box
recognize and use somthing to communicate outwards.

> > You could possible use:
> >   raw ethernet frames
> 
> Do you have any recommendations of utilities for each side?

Don't know much about the windows side, but I found this:
 https://stackoverflow.com/questions/766912/raw-ethernet-frames-using-winsock
 https://www.winpcap.org/
 
https://hacked10bits.blogspot.com/2011/12/sending-raw-ethernet-frames-in-6-easy.html
seems to be some programming involved.

> >   netbeui
> > samba
> 
> I thought that Samba has *LONG* been NetBIOS over TCP/IP (a.k.a. NBT). 
> Is NetBEUI code /still/ in Samba?

Seems it never was, though there were patches:
 https://flylib.com/books/en/3.151.1.29/1/
 
> >   ethertalk (appletalk)
> > http://netatalk.sourceforge.net/
> >   ipx (netware)
> > 
> > ftp://ftp.koansoftware.com/public/opensource/mars_nwe/mars_nwe-0.99.pl21.tgz
> 
> I believe that IPX support has been removed from 4. kernels. 
> Maybe 5..

4.18-rc1 it seems.

> DECnet Phase III or Phase IV.

Ah, forgot that one.

> > I have previously (in the 90's) used mars, worked great.
> 
> I've never run MARS but I've done more than a little with Novell 
> NetWare.  I recently had a 4.14 kernel mount an NCPFS from a server. 
> (4.14 obviously still has IPX.)

///

About the original question. Here what a few thing I dig up.

https://www.amazon.com/Laplink-High-Speed-Transfer-Cable-PCmover/dp/B0093H83DW
https://sourceforge.net/projects/lptransfer/
https://github.com/viveris/uMTP-Responder

It is usually simple to setup and use a serial null-modem cable and
run kermit or somthing on the MS-Win side and add a getty (I've used
mgetty) handling the serial port on the linux side.

Regards,
/Karl Hammar





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

2021-04-25 Thread karl
Karl:
...
> About the original question. Here what a few thing I dig up.
> https://www.amazon.com/Laplink-High-Speed-Transfer-Cable-PCmover/dp/B0093H83DW
...

With

 Secure ms-win box - usb laplink cable - dummy ms-win box - tcp/ip - 
 linux box

you could be able to do it with usb.

Possible have a directory on the linux side be mounted (network share I 
think it called) on the dummy ms-win box. Then by using the laplink 
cable/software, transfer things from linux to secure box, it "should" 
work but I don't know if the laplink thing handles network shares on
the dummy well.

Their homepage is https://web.laplink.com/

Regards,
/Karl Hammar





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

2021-04-25 Thread karl
Grant:
> On 4/23/21 7:45 PM, k...@aspodata.se wrote:
> > Grant:
> 
> I think you are conflating me for the OP.  Easy to do with the same 
> first name.  ;-)

Well, your sig is at a cursory look wery alike, but now I see you
have some extra dots and an || expression.

...
> Is it wrong that the first thing that came to mind when reading the OP's 
> post is UUCP with as high speed serial as possible?

I doubt that many are fluen in cu and uucp, are they even available on
the ms-win side. Who knows, this might work  https://www.uupc.net/

> I wonder if the USB LapLink (type) cable or USB On The Go gadget cables 
> could present as a multi-megabit serial interface.

You can always build yourself two pairs of RS232 to RS422 converters 
and see where the limit on your serial ports are. You can even try with
other deserializes/serializers. What speed do you want ?

Regards,
/Karl Hammar





Re: [gentoo-user] Network switch - LED will not turn ON

2021-04-27 Thread karl
Wol:
> On 26/04/21 22:53, the...@sys-concept.com wrote:
> > If they cable is the problem the LED port on the 70ft long cable
> > on the switch would be orange "not green"; correct me anybody if
> > I'm wrong.
> 
> I guess it depends what's wrong with the cable. And what the green light
> is testing for.

 As can be seen from

https://en.wikipedia.org/wiki/Autonegotiation#Electrical_signals

 autonegotiation only runs at 10Base-T speeds. Its use is to make
 sure that the endpoints are operating with the same parameters.

 Note, it does not tests whether the cable and connector are suitable
 for that negotiated link speed.

 Also,

https://en.wikipedia.org/wiki/Gigabit_Ethernet#1000BASE-T

 says that the tests are not done on all cable pairs, so even
 if pair 1 and 2 are perfect, faulty pair 3 and 4 may make
 communication fail.

///

 So if the link led lights up, but the communication fails,
 something between the mii's (the electronics, the chips)

https://en.wikipedia.org/wiki/Media-independent_interface

 is faulty and it is with high probability that the cable is faulty.

Regards,
/Karl Hammar





Letsencrypt (was Re: [gentoo-user] app-misc/ca-certificates)

2021-06-01 Thread karl
BillK:
...
> And another "wondering" - all the warnings about trusting self signed
> certs seem a bit self serving. Yes, they are trying to certify who you
> are, but at the expense of probably allowing access to your
> communications by "authorised parties" (such as commercial entities
> purchasing access for MITM access - e.g. certain router/firewall
> companies doing deep inspection of SSL via resigning or owning both end
> points). If its only your own communications and not with a third,
> commercial party self signed seems a lot more secure.
...

You can use https://letsencrypt.org/ instead of a self-signed cert:

 Let's Encrypt is a free, automated, and open certificate authority
 brought to you by the nonprofit Internet Security Research Group (ISRG). 

It was pretty simple to get it to work with
 https://github.com/diafygi/acme-tiny

Regards,
/Karl Hammar





Re: Letsencrypt (was Re: [gentoo-user] app-misc/ca-certificates)

2021-06-01 Thread karl
Joost:
> On Tuesday, June 1, 2021 12:44:47 PM CEST k...@aspodata.se wrote:
... [ about letsencrypt ] ...
> It's not that easy to do it with internal-only systems as Let's Encrypt 
> requires the hostname to be known externally.
> And there are plenty of devices you do not want the whole internet to know 
> about.

Just use a celf-certified cert and add an exeption in the web browser,
or set up your own CA, (I don't know how) and distribute its cert.

Regards,
/Karl Hammar




Re: Letsencrypt (was Re: [gentoo-user] app-misc/ca-certificates)

2021-06-01 Thread karl
Michael Orilitzky:
...
> * The LetsEncrypt certificates expire after three months, as opposed 
>   to 10+ years for a self-signed certificate. You're supposed to 
>   automate this... by running a script as root that takes input from 
>   the web? I'd rather not do that.

You can run most part of it as an unpriviliged user, here is my crontab:
0 0 1 * *   acme/usr/local/sbin/acme_update.sh
10 01 * *   rootcat /etc/acme-tiny/domain.key 
/var/acme-tiny/signed_chain.crt  > /etc/lighttpd/server.pem
20 01 * *   root/etc/init.d/lighttpd restart

One could add a check to make sure that the downloaded crt is sensible.

> * LetsEncrypt verifies your identity over plain HTTP (like every other 
>   commercial CA), so it's all security theater in the first place.
...

Ack.

Regards,
/Karl Hammar





Re: Letsencrypt (was Re: [gentoo-user] app-misc/ca-certificates)

2021-06-01 Thread karl
Karl:
> Michael Orilitzky:

Sorry, I mistyped, it should be: Peter Humphrey

> ...
> > * The LetsEncrypt certificates expire after three months, as opposed 
> >   to 10+ years for a self-signed certificate. You're supposed to 
> >   automate this... by running a script as root that takes input from 
> >   the web? I'd rather not do that.
> 
> You can run most part of it as an unpriviliged user, here is my crontab:
> 0 0 1 * *   acme/usr/local/sbin/acme_update.sh
> 10 01 * *   rootcat /etc/acme-tiny/domain.key 
> /var/acme-tiny/signed_chain.crt  > /etc/lighttpd/server.pem
> 20 01 * *   root/etc/init.d/lighttpd restart
> 
> One could add a check to make sure that the downloaded crt is sensible.
> 
> > * LetsEncrypt verifies your identity over plain HTTP (like every other 
> >   commercial CA), so it's all security theater in the first place.
> ...
> 
> Ack.

Regards,
/Karl Hammar




[gentoo-user] X11 without udev/eudev

2021-08-21 Thread karl
With the demise of xf86-input-mouse and xf86-input-keyboard,
xf86-input-libinput is put forward as a replacement.
But it (or rather libinput) has udev as a hard dependency.

I have a ps2 keyboard and a 3-button serial mouse, so there is frankly
no use for udev here, nor would it help anything except possible to mess
up my preset dev directory. Also I have sys-fs/static, even if I install
udev, it woun't start, and I don't need yet another deamon running
doing nothing for me.

Is there possible to resurrect the old drivers ?
Or is there another way to solve this ?

Regards,
/Karl Hammar





Re: [gentoo-user] X11 without udev/eudev

2021-08-21 Thread karl
Vitor Hugo:
...
> This should have some of the info you need 
> https://wiki.gentoo.org/wiki/Old_Fashioned_Gentoo_Install

Well, I already have such a system, but developments since last
year somehow just claims I have to have a lot of (for me) useless
processes.

I have tried the overlay route, but since some time I get:

 * ERROR: x11-base/xorg-server-1.18.4::aspo failed (depend phase):
 *   xorg-2.eclass could not be found by inherit()
 * 
 * Call stack:
 *   ebuild.sh, line 609:  Called source 
'/home/local/portage/x11-base/xorg-server/xorg-server-1.18.4.ebuild'
 *   xorg-server-1.18.4.ebuild, line   8:  Called inherit 'xorg-2' 'multilib' 
'versionator' 'flag-o-matic'
 *   ebuild.sh, line 290:  Called die
 * The specific snippet of code:
 *  [[ -z ${location} ]] && die "${1}.eclass could not be found by 
inherit()"
 * 

Regards,
/Karl Hammar





Re: [gentoo-user] X11 without udev/eudev

2021-08-21 Thread karl
Wol:
> On 21/08/2021 21:17, k...@aspodata.se wrote:
> > Is there possible to resurrect the old drivers ?
> > Or is there another way to solve this ?
> 
> Put in a bug report?

I don't think libinput maintainers would care.
 https://wayland.freedesktop.org/libinput/doc/latest/what-is-libinput.html
plainly says:

 libinput is an input stack for processes that need to provide events
 from commonly used input devices. 

and serial mice isn't common any longer, and udev has never (from what I
know) cared about serial mice.

Regards,
/Karl Hammar





Re: [gentoo-user] X11 without udev/eudev

2021-08-22 Thread karl
Mart:
...
> Also be prepared for all the known security vulnerabilities you
> reintroduce by installing a heavily outdated xorg-server with multiple
> known vulnerabilities.
...

I don't reintroduce them, I just keep them.
Also, I had upgraded it if it wasn't for the udev dependancy.
If you have a solution without udev, please tell me.

Regards,
/Karl Hammar





Re: [gentoo-user] X11 without udev/eudev

2021-08-22 Thread karl
Neil Bothwick:
...
> You need to grab xorg-2.eclass from the git history and put it in your
> overlay. Be prepared to repeat this process with other files.

Thanks, found them.

Regards,
/Karl Hammar




Re: [gentoo-user] X11 without udev/eudev

2021-08-22 Thread karl
Anna:
> On 2021-08-21 22:17, k...@aspodata.se wrote:
> > Is there possible to resurrect the old drivers ?
> git clone https://anongit.gentoo.org/git/repo/gentoo.git && cd gentoo
> git log -p -- x11-drivers/xf86-input-keyboard
> git checkout commit_id
> 
> Copy to your local overlay

Thanks Anna, done so.

> > Or is there another way to solve this ?
> Try libudev-zero (install it and add udev/libudev virtuals to
> package.provided)
> https://github.com/illiliti/libudev-zero

I'll be looking into that, but on some level, why should I be forced to
go around udev. Can't programs be compiled without udev today...
Udev should be an optional deamon, utilized when the local 
administrator decides to do so. I don't want things to automatically
pop up unless I say so.

Regards,
/Karl Hammar




Re: [gentoo-user] X11 without udev/eudev

2021-08-23 Thread karl
Dr. Canek Peláez Valdés:
...
> Where do you get that impression from? The OP needs handling keyboard and
> mouse (as per his first email), and to do that in Linux these days, you
> basically need udev, because xf86-input-mouse and xf86-input-keyboard are
> going the way of the dodo.

It is inconvenient that thoose two goes away.
Regarding udev, it has never supported serial mice, so it doesn't help 
me.

...
> My point is that it's not his call; it's the call of the developers of the
> software that he decided to use.

Poeple write whatever software they want to or are paid to do.
It is my call if I want to use that software or not.

> > Yes I take your point, but bloat is bloat, and bloat is a liability.
> >
> 
> There is no bloat; the developers *need* to handle the dynamic hardware
> case *and* the static hardware case. With udev, they handle both; otherwise
> there would be two code routes: one for static and another for dynamic
> hardware.
...

As I wrote before, udev does not handle serial mice, so udev does not
solve anything for me nor does it help me in any way to run my systems.
Udev is just something pushed on me for no gain except possible to
satisfy some dependancy touted to be beneficial. So in this very
specific case it can be considered "bloat" if you wish to use that
kind of words.

My guess is that it is more useful on laptop than on a desktop box
or an industrial computer.

///

As a side note, from what I understand, udev today is mostly about
usb-devices because that is where the dynamic hardware comes from
today (at least when we are not talking about hotplugging cpus,
memory cards, io-cards and such (but that is more of a enterprise 
problem than a small system problem.

Serial ports are darn easy to implement in hardware and
softwere.

E.g. if I have a program connecting to a device using a serial
and it is disconnected, I can just reconnect it and nothing
special happens, noting to be done in software except logging.
 The same device via usb, the dis-/reconnect will close the
port and make it vanish forcing med to find out find out where the
new /dev file is and reopen and reinitialize it.
 In hardware, mcu's without usb are cheap and their serial port
are simpe to program and the serial port "stack" is vanishingly small.
Just look at the tty_* files in
 http://aspodata.se/git/openhw/libarm/
 http://aspodata.se/git/openhw/libarm/stm32/
For usb support, I need an usb stack (which is larger), e.g.
 https://github.com/libopencm3/libopencm3/tree/master/lib/usb
I need to understand the usb protocol and all thoose structs to fill
in, and in the end I get a system that is harder to program on the
host side for no gain other than that +5V is provided by usb.

Regards,
/Karl Hammar





Re: [gentoo-user] X11 without udev/eudev

2021-08-23 Thread karl
Karl Hammar:
> Dr. Canek Peláez Valdés:
...
> > My point is that it's not his call; it's the call of the developers of the
> > software that he decided to use.
> 
> Poeple write whatever software they want to or are paid to do.
> It is my call if I want to use that software or not.

 For what some people want to work on, here is an alternative api:
https://github.com/idunham/libsysdev

 And what Anna  gratiosly provided:
https://github.com/illiliti/libudev-zero

...
> > There is no bloat; the developers *need* to handle the dynamic hardware
> > case *and* the static hardware case. With udev, they handle both; otherwise
> > there would be two code routes: one for static and another for dynamic
> > hardware.

As an example of that is:
 https://gitlab.freedesktop.org/mesa/drm/-/blob/main/xf86drm.c

The changes nessesary for a non-udev solution is smallish,
and it doesn't have to resort to polling as in the udev case.

A gui's need for pop-up windows when new devices are connected
could just as well be handled separate to the system thing of
/dev nodes, permissions and such. You don't need a daemon for
that, it just that the udev people just merged the use cases.

...
> As a side note,
...

As an actual case, this is a prototype for a three way mouse
to be used on ship bridges
 http://aspodata.se/git/openhw/boards_arm_aspo/mouse/
Switching a knob, I can send mouse events to three different
computers, say for radar, maps, etc.
It uses microsoft serial mouse protocol.
This possible for low end mcu's since they contain multiple
serial interfaces.

If I had to use usb, well, not even a high end mcu's like
stm32f4 has more than two usb ports.

Regards,
/Karl Hammar




Re: [gentoo-user] X11 without udev/eudev

2021-08-23 Thread karl
Dr. Canek Peláez Valdés:
> On Mon, Aug 23, 2021 at 11:07 AM  wrote:
...
> > Regarding udev, it has never
> > supported serial mice, so it doesn't help me.
> What are you talking about? Udev doesn't "support" any hardware; as the
> manual page states[1], it: "supplies the system software with device
> events, manages permissions of device nodes and may create additional
> symlinks in the /dev/ directory, or renames network interfaces".

Why would I need such a thing, I don't need any changes to /dev.
Even if I pop in a usb-disk, I just mount it.
Udev do not in the slightest solve any of my needs.
So why are you telling me that I must have it, yes, software 
dependancies are a problem. I'm interested in answers that tells me how 
to solve that without calling in extra software and deamons.

> If the kernel supports the hardware, udev will supply the corresponding
> event, so udev will generate the corresponding event for serial mice also
> (probably close to boot time).

You can try gpm to do that.
Udev do not do any way of serial mouce detection, never has.

> > Poeple write whatever software they want to or are paid to do. It is my
> > call if I want to use that software or not.
> Well, yeah; but if you want to use software X, and X depends on Y, then you
> either use software Y or don't use software X. The dependency chain can and
> will grow depending on several factors, and it's the situation here if I'm
> not mistaken: you want to keep using keyboard and mice, those depend on
> libinput, and libinput depends on udev.

I'm not a passive consumer in this as you seem to believe.
If I decide I will resurrect thoose x11 drivers, I will do so.
...

> > As I wrote before, udev does not handle serial mice, so udev does not
> > solve anything for me nor does it help me in any way to run my systems.
> You are saying it wrong, you mean to say:  "to handle serial mice, I don't
> need udev". And that is 100% completely true; you can keep a static /dev,
> don't use udev and create the device nodes by hand. But serial mice
> work great under udev also.

Yea, it does, simply because udev doesn't touch any serial mouse,
you have to fill in your own xorg.conf section for that or use gpm 
in a console. Udev just cares about the serial port, not what is
attached to that port

> It's not only USB; it's Bluetooth, Thunderbolt, eSATA and eSATAp, etc. The
> computing world is dominated by dynamic hardware; it has been so for at
> least the last two decades.

Bluetooth adapters mostly comes in as a usb device, thought there might 
be thoose with an i2c connection for the embedded market.
I don't know about thunderbolt.
esata as well as sata just works well without udev.

And I do not need a deamon to handle that.

> > Serial ports are darn easy to implement in hardware and softwere.
..
> Yes: but the software that *uses* mice doesn't care *ONLY* about serial
> port mice. They care about USB mice (which is the majority) and Bluetooth
> mice (which has the second place). Right now, serial mice have to be a
> distant third place, if at all.

Well, "if at all", so you agree with me that udev isn't for me.
What I'm looking for is alternatives.

> So the developers of software that deals with mice don't need to worry
> *ONLY* about your case; they need to worry about the general case. Which
> includes USB and Bluetooth (and whatever they invent in the future).

So, udev isn't for me, what do you complain about.
I don't say to others to not use udev, I don't care about that.

I ask, how can I make my case work without udev, because honsestly,
it doesn't bring me shit and I'm not interesed in using software that 
doesn't do anything for me. The problem of device nodes and permission 
is already solved, I don't need pop-ups, I don't want automounting.
Serial ports have been working for the last 70 years or more.
So stop this, I never asked about udev or how to make that work.
You are answering the wrong question.

Regards,
/Karl Hammar




Re: [gentoo-user] mouse and keyboard don't respond

2021-09-10 Thread karl
the...@sys-concept.com:
...
> libinput: Logitech G703 (my mouse) Failed to create a device for 
> /dev/input/event23
> and before that it says xf85OpenSerial: Cannot open device /dev/input/event23 
> Permission denied.
...

You can,
1. run X as root
2. either do
 mknod -m 600 /dev/input/event23 c 13 87
 chown $USER /dev/input/event23
  or
 mknod -m 666 /dev/input/event23 c 13 87
3. fiddle with udev so it does what it should, don't know how

Regards,
/Karl Hammar




[gentoo-user] psnup vs. dvips

2021-10-30 Thread karl
 A latex related question.

Is there any change to dvips to make the output file incompatible
with psutils ?

///

When I removed texlive 2017 in favour of gentoo texlive
psnup stopped producing files compatible with gv.
I get error messages like:

===
Error: /undefinedGPL Ghostscript 9.53.3: Unrecoverable error, exit code 1
 in PStoPSmatrix
Operand stack:
   --dict:101/200(L)--   PStoPSxform
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
--nostringval--   false   1   %stopped_push   1990   1   3   %oparray_pop   
1989   1   3   %oparray_pop   1977   1   3   %oparray_pop   1833   1   3   
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   
--nostringval--   --nostringval--   2   %stopped_push   --nostringval--
Dictionary stack:
   --dict:733/1123(ro)(G)--   --dict:0/20(G)--   --dict:101/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
===

I can work around the problem by using ps2ps after the dvips step.

Regards,
/Karl Hammar




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

2021-12-16 Thread karl
Alex:
> 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?

Have you tried:

$ man gcore
$ man 5 core

Regards,
/Karl Hammar




Re: [gentoo-user] "EZ mode" vs "AP mode"

2022-01-13 Thread karl
Thelma:
> What kind of routers work with "EZ mode"
> 
> Recently I was plying with a wifi light switch and couldn't get
> "EZ mode" to work with my Asus router.
> 
> AP mode, worked but for this to work phone's Bluetooth and Personal
> Hotspot need to be turn ON (during configuration); and the switch
> manual did not mentioned it.

I don't know what you're talking about, but this is what I found doing
a simple search.

https://support.cesmarthome.com/en/support/solutions/articles/44000568556-connecting-to-the-wi-fi-smart-dimmer-switch-how-to-put-device-in-pairing-mode-ez-and-ap-mode-

https://dazzblingproducts.com/troubleshooting/

Regards,
/Karl Hammar




Re: [gentoo-user] Bluetooth speakers

2022-05-09 Thread karl
Peter:
...
> What would help is some idea of how the whole BT system works,
...

There are two incompatible types of bluetooth:
 Bluetooth Low Energy (BLE)
 Bluetooth Classic
see:
 https://www.bluetooth.com/learn-about-bluetooth/tech-overview/

You must check which generation of bluetooth your speaker uses.
If your speaker uses the classic type, this might help you:
 https://wiki.debian.org/Bluetooth/Alsa

///

More info about bluetooth:
 https://en.wikipedia.org/wiki/Bluetooth
 https://www.bluetooth.com/specifications/specs/

///

Current linux bluetooth tools (http://www.bluez.org/) doesn't
handle bluetooth classic, unless you build bluez with
--enable-deprecated configure option.
 Also, bluez has dropped direct /dev file access for users, you
have to set up and go through dbus regardless wether you like it
or not.

Regards,
/Karl Hammar





3.5mm jacks (was Re: [gentoo-user] Bluetooth speakers)

2022-05-10 Thread karl
Michael:
...
> Jacks have a TS, or TRS, TRRS, or TRRRS contacts arrangement, depending on 
> the 
> connectivity they are meant to offer - mono, stereo, stereo+mic and whether 
> this is balanced or unbalanced.
...

I have an old laptop (Thinkpad T61p [1]) with a stereo and
microphone jack, both 3.5mm.

How do one know if it is a TRS or TRRS variant without opening the
case ?

Maybe it is a trrs jack since when I inserts a trs cable (to speaker)
the ouput sound whines a lot, mostly masking the intended sound.

I found some specs in [2] and [3].

Regards,
/Karl Hammar

[1] https://www.thinkwiki.org/wiki/Category:T61p
[2] https://www.headphonesty.com/2019/04/headphone-jacks-plugs-explained/
[3] https://en.wikipedia.org/wiki/Phone_connector_(audio)





[gentoo-user] emerge with another PATH

2022-05-20 Thread karl
How do I run emerge so that when buildin/emerging the package another
PATH is used ?

Regards,
/Karl Hammar




Re: [gentoo-user] emerge with another PATH

2022-05-20 Thread karl
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




Re: [gentoo-user] emerge with another PATH

2022-05-20 Thread karl
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...
...
> 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>.

Thanks, that solved it.

Regards,
/Karl Hammar




[gentoo-user] packages messing with /dev

2022-05-22 Thread karl
 Dear package maintainers,
please do not mess with preexisting files in /dev.

I have static /dev and that suit me well for quite a few systems that
has a static environment, especially system that are intended to for
a long time and where I tend to minimize the number of running
processes, every running process is something that can go wrong.
Their /dev/ files are set up for their intended use, and I don't want
surprises there.

When upgrading it isn't easy to see what package that did
something to /dev so it isn't easy to bug the guilty party.

If sys-fs/static-dev is installed, please do not touch /dev,
if you want you can leave suggestions in some file.

Regards,
/Karl Hammar






[gentoo-user] continuing an emerge

2022-07-06 Thread karl
 Is it possible to continue a failed emerge ?

///

With nodejs, I get:

/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

so, instead of redoing the whole compile, can I, after reducing
current memory usage, set up emerge to retry the linking and
continue from there ?

Regards,
/Karl Hammar





Re: [gentoo-user] continuing an emerge

2022-07-06 Thread karl
Neil Bothwick:
> On Wed,  6 Jul 2022 15:48:04 +0200 (CEST), k...@aspodata.se wrote:
...
> > so, instead of redoing the whole compile, can I, after reducing
> > current memory usage, set up emerge to retry the linking and
> > continue from there ?
> 
> ebuild /path/to/ebuild merge

Thanks, that did what I asked about.

Regards,
/Karl Hammar




[gentoo-user] net-libs/nodejs

2022-07-06 Thread karl
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.

///

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 ?

Regards,
/Karl Hammar





emerge --keep-going didn't continue (Re: [gentoo-user] net-libs/nodejs)

2022-07-06 Thread karl
tastytea:
> On 2022-07-07 00:19+0200 k...@aspodata.se wrote:
...
> > 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.

Just tried that, emerge world and then killing g++ once the build for
nodejs started and "nodejs" failed, but emerge didn't continue with
the next one (using --keep-going), so why is nodejs blocking everything 
else ???

So I removed firefox from world, now the rest is building. I'll solve
the firefox/nodejs thing later.

Regards,
/Karl Hammar




[gentoo-user] pip

2022-07-13 Thread karl
 I get:
$ pip
pip: no python-exec wrapped executable found in /usr/lib/python-exec.

 Does that mean that, since
$ python --version
Python 3.10.5

 there is no pip in the python3.10 directory:
$ ls -l  /usr/lib/python-exec/python*/pip
-rwxr-xr-x 1 root root 364 May  5  2019 /usr/lib/python-exec/python2.7/pip
-rwxr-xr-x 1 root root 364 May  5  2019 /usr/lib/python-exec/python3.6/pip

 or anything else ?

Regards,
/Karl Hammar





[gentoo-user] app-text/pdfminer build failure

2022-07-13 Thread karl
  From portage/app-text/pdfminer-20220506/temp/build.log 
adding 'pdfminer.six-20220506.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
 *   Installing pdfminer.six-20220506-py3-none-any.whl to 
/Net/gentoo/tmpdir/portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506-python3_10/install
gpep517 install-wheel 
--destdir=/Net/gentoo/tmpdir/portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506-python3_10/install
 --interpreter=/usr/bin/python3.10 --prefix=/usr 
/Net/gentoo/tmpdir/portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506-python3_10/wheel/pdfminer.six-20220506-py3-none-any.whl
 * Using python3.10 in global scope
 * python3_10: running distutils-r1_run_phase python_compile_all
make: Entering directory 
'/Net/gentoo/tmpdir/portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506/samples'
make: *** No rule to make target 'all'.  Stop.
make: Leaving directory 
'/Net/gentoo/tmpdir/portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506/samples'
 * ERROR: app-text/pdfminer-20220506::gentoo failed (compile phase):
 *   emake failed

 And sure enough, there is no makefile in:
portage/app-text/pdfminer-20220506/work/pdfminer.six-20220506/samples
 so any make command would fail.

I could possible install it USE=-examples (cannot test just now since
emerge is busy), but is there any other way to solve this ?

Regards,
/Karl Hammar





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

2022-07-18 Thread karl
tastytea:
> On 2022-07-07 00:19+0200 k...@aspodata.se wrote:
...
> > /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'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².

Dropping debug and adding swap solved it, thanks.

Regards,
/Karl Hammar




Re: [gentoo-user] pip

2022-07-18 Thread karl
Neil Bothwick:
> On Wed, 13 Jul 2022 10:40:34 +0200 (CEST), k...@aspodata.se wrote:
...
> > $ pip
> > pip: no python-exec wrapped executable found in /usr/lib/python-exec.
...
> You may need to re-emerge pip if the last file you have is for python3.6.
...

Thanks, that solved it.

Regards,
/Karl Hammar




Re: [gentoo-user] kernel panic - lilo can't find boot

2022-07-24 Thread karl
Walter Dnes:
> VFS: Cannot open device "801" or unknown-block (8,1): error -6
> Please append a correct "root=" boot option: here are the available 
> partitions:
> Kernel panic - not syncing: VFS: Unable to mount root on unknown-block (8,1)
...
>   I've pulled in a working configuration from an old backup, so it
> should work.
...
> Disk model: WDC WD800BEVS-08
...
> image = /boot/kernel.production
> root = /dev/sda1
> label = Production
> read-only # read-only for checking
> append = "noexec=on net.ifnames=0 intel_pstate=disable ipv6.disable=1"
...

The kernel is missing the driver for your disk device.

801 is /dev/sda1:
# ls -l /dev/sda1
brw-rw 1 root disk 8, 1 Aug  4  2013 /dev/sda1

WD800BEVS-08 is a 5400rpm 2.5inch sata disk.
Go into the bios and set up sata to be AHCI.

You have no initrd/initramfs so:
 "SCSI disk support"
 "Serial ATA and Parallel ATA drivers (libata)"
 "AHCI SATA support"
and possilbe also
 "Platform AHCI SATA support"
driver must be compiled in in the kernel.

 You can check that by doing something like:
# grep BLK_DEV_SD= /boot/config.production
CONFIG_BLK_DEV_SD=y
# grep CONFIG_SATA_AHCI /boot/config.production
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y

You must also compile in the filesystem used for /
(perhaps it is ext4).

# grep CONFIG_EXT4_FS= /boot/config.production
CONFIG_EXT4_FS=y

Every time you change the kernel you have to rerun lilo.

Regards,
/Karl Hammar




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

2022-09-10 Thread karl
Wol:
...
> A couple of things to remember:
> 
> Gentoo IS a pita to install and run compared to most other distros - 
...

That really depends. Other distros might not have what you want or
they force upon you desicions you don't like. Just beeing easy to
install and running something irrelevant doesn't mean much if they
don't deliver what you want.

Regards,
/Karl Hammar




Re: [gentoo-user] Separate /usr partition

2022-09-14 Thread karl
Peter:
> I'm thinking of separating /usr onto its own partition so that I can have it 
> mounted read-only except while updating it. I'd prefer not to have to make an 
> init thingy, not having needed one up to now. Besides, some machines have 
> things like early-ucode or amd-uc.
> 
> I've found a few guides on the Web, but I'm still confused. Is there a simple 
> guide to doing this? I know of at least one subscriber here who's done it.  :)

I'm using separate /usr, it was the default historically and I just
continued useing it, partly because it is unconvenient to repartion
long running remote systems.

There are a few things to look out for.
If you are not using initrd/initramfs, you need all drivers to access 
/ to be compiled in. Easiest is if don't use devices with dynamic
minors. Once / is mounted you have all drivers available
in /lib/modules, then the next possible hurdle is to survive long 
enought till /usr is mounted. For that you a suitable mount command 
which does not depend on /usr, i.e. it or any programs previous it
in the bootup cannot depend on libs in /usr. The easiest way to
accomplish that is to use busybox.

It is also possible to use sys-fs/static-dev, if you want to opt
to not use udev.

Regards,
/Karl Hammar





  1   2   >