Re: [gentoo-user] The hopeless futility of printing.

2024-01-29 Thread karl
Alan Grimes:
> I spent $450 for the most beautifulest printer ever made.

That is not true, because I own the most beautiful printer:)

> Absolutely suprimo HP laser jet network printer.

You didn't write what model, hard to help you then.

///

What I do is, well it is just me I guess:

0, print out a test page from the printers menu
1, check the printers network config and ping the printer
2, put the printer in postscript mode/emulation and send something
   simple as to it using lpr:

%A4: 210 297mm
%72 per tum, 72/25.4 per mm
/a 72 25.4 div def
a a scale
0.1 setlinewidth

 0 3 297 { 0 exch moveto 210 0 rlineto stroke } for

 0 3 210 { 0 moveto 0 297 rlineto stroke } for

showpage

3, if it can print postscript via lpr, then keep doing that and ignore 
   cups.

///

 What messes things up is people pressing the wifi-button (if there is 
 one) while on cable, which messes up the network config.

 If it works with MS-Windows, it can be autodetect (udns, avahi) is 
 missing on your linux box. I usually set printers to fixed ip-address
 and add it to the local dns for easy access, so I shut down any udns 
 thing; I like a quiet network.

Regards,
/Karl Hammar





Re: [gentoo-user] SII Smart Label Printer SLP-650 with Gentoo

2023-03-27 Thread karl
Thelma:
...
> But where to get the, "slp650.icns"

 That is probably just some image:
https://en.wikipedia.org/wiki/Apple_Icon_Image

 Take any suitable icon image you have an run:
convert file slp650.icns

 If you want it to look like the label printer,
just take a phograph of it, downscale it to be suitable
for an icon and convert it.

Regards,
/Karl Hammar




Re: [gentoo-user] SII Smart Label Printer SLP-650 with Gentoo

2023-03-26 Thread karl
Thelma:
> Is anybody using Seiko SII Smart Label Printer SLP-650 with Gentoo

No, sorry.

> I have a hard time make it to work.
> I have a siislp650.ppd file but when I try to add it via cups under 
> manufacture name Seiko is not showing up.

 This page mentions linux cups driver:
https://siibusinessproducts.com/support/software-driver-downloads/

 There is also a driver here:
https://github.com/danieloneill/SeikoSLPLinuxDriver

 The last one has a siislp650.ppd file which mentions:
/Library/Printers/SII/rastertosiislp.app/Contents/Resources/DriverIcons/slp650.icns
/usr/lib/cups/filter/seikoslp.rastertolabel

Do you have thoose two installed ?

Regards,
/Karl Hammar





Re: [gentoo-user] Separate /usr partition

2022-09-14 Thread karl
Dale:
...
[ re separate /usr, initramfs/initrd ]
> You may can do it the way you are wanting to but for how long is the
> question.  Odds are high that at some point, you will have a system that
> won't boot because something that's needed isn't there.
...

initrd/initramfs is there to make life easier for the distribution.
It is needed when your / is on a device with dynamic minor numbers.
Otherwise, you don't gain much from it.

Separate /usr is a complication mostly for laptop systems where strange
things are needed during boot.
 It is also a complications for programs depending on libs in /usr. E.g.
$ ldd /bin/getsubids | grep /usr
libsubid.so.4 => /usr/lib64/libsubid.so.4 (0x7f2ea07ad000)
libcrypt.so.2 => //usr/lib64/libcrypt.so.2 (0x7f2ea0578000)
So if getsubids is needed for boot, you either have to move thoose libs
to /lib or use a merged /usr.

The best way to avoid the problems above i make you system simple,
but that seems to against the no prevalent misconception that things
have to be complex.

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





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] 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] 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] 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




[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





[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





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] 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





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] 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





[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






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




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




[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




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)





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





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] 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




[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] 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




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] 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:
...
> 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-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-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
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-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





[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: 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




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
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




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: [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





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] 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-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-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] 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] 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] 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-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
STACKmax stack size   8388608 unlimited bytes

Regards,
/Karl Hammar




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

2021-04-05 Thread karl
quot; -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-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-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





[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] 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] segfault from C stack overflow

2021-02-05 Thread karl
When emerging R, I got:

...
** R
** data
*** moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
Error: segfault from C stack overflow
...

Since linux automatically grows the stack, doesn't this mean
that I'm out of memory.

Btw. 
# prlimit -s
RESOURCE DESCRIPTION   SOFT  HARD UNITS
STACKmax stack size 8388608 unlimited bytes

and prlimit --stack=-1:-1 doesn't change the soft limit.

Regards,
/Karl Hammar





Re: [gentoo-user] Console scrollback

2021-01-14 Thread karl
Grant:
> On 1/13/21 2:56 PM, Alan Mackenzie wrote:
...
> > Doing text work in X is   s l u g g i s h.  Changing from one 
> > application to another, which would be achieved by, say Alt-F4 on a 
> > console takes more key sequences in X, and is less than instantaneous.

I'm using fvwm set up with 9 virtual screens and so I can swith between
them with ctr-arrow, fast enought for me.

...
> > On an Emacs session, in three columns on a console, I can display 
> > 195 consecutive lines of a source file simultaneously.
...

I get 260x97 chars in emacs on a 1600x1280 display. With three
columns, w82,82,83chars, I get 3x95=285 lines of text.

///

Alan, how do you set up your console (I'd like to try) ?

Regards,
/Karl Hammar




Re: [gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-22 Thread karl
DaveF:
> >Neil Bothwick:
> >> On Wed, 16 Dec 2020 18:30:47 +0100 (CET), k...@aspodata.se wrote:
> >> > What can I do to make ./configure below use the suggested option ?
> >> > sci-electronics/ngspice-27-r1's build log contains:
...
> >> >  Should you add --with-tcl=/usr/lib64 to ./configure
..
> >> Try EXTRA_ECONF="--with-tcl=/usr/lib64" emerge -1a ngspice
> >https://wiki.gentoo.org/wiki/Project:AMD64/Multilib_layout
> > gentoo now uses /usr/lib64. Tcl installs the program in /usr/lib64:
> ># grep /usr/lib64/tclConfig.sh  /var/db/pkg/dev-lang/tcl-8.6.8/CONTENTS
> >obj /usr/lib64/tclConfig.sh 854158d4603ecea0e98975dac780e04f 1581626600
> > so if ngspice doesn't find tclConfig.sh, shouldn't that be considered 
> > a bug ?
> 
> Don't know. Is there a reason why ngspice-27-r1 in particular is required?

No, it is just that that version was pulled in by emerge @world.

> I added
>  =sci-visualization/xgraph-12.1-r4 xgraph
> to package.license
>  sci-electronics/ngspice ~amd64
>  sci-visualization/xgraph ~amd64
> to package.accept_keywords
> and
>  sci-electronics/ngspice tcl
> to package.use
> 
> And
> emerge -1 ngspice
> built without any complaints.
...

Did that, and for some reason the problem went away ???
Tanks for the help.

Regards,
/Karl Hammar





Re: [gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-21 Thread karl
Neil Bothwick:
> On Wed, 16 Dec 2020 18:30:47 +0100 (CET), k...@aspodata.se wrote:
> 
> > What can I do to make ./configure below use the suggested option ?
> > 
> > sci-electronics/ngspice-27-r1's build log contains:
> >
> >  checking for tclConfig.sh... 
> >  can't find Tcl configuration script "tclConfig.sh"
> >  Should you add --with-tcl=/usr/lib64 to ./configure
> > arguments?
> 
> Try EXTRA_ECONF="--with-tcl=/usr/lib64" emerge -1a ngspice

 According to:
https://wiki.gentoo.org/wiki/Project:AMD64/Multilib_layout
eselect news read 34

 gentoo now uses /usr/lib64. Tcl installs the program in /usr/lib64:
# grep /usr/lib64/tclConfig.sh  /var/db/pkg/dev-lang/tcl-8.6.8/CONTENTS
obj /usr/lib64/tclConfig.sh 854158d4603ecea0e98975dac780e04f 1581626600

 so if ngspice doesn't find tclConfig.sh, shouldn't that be considered 
 a bug ?

Regards,
/Karl Hammar




Re: [gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-19 Thread karl
Karl Hammar:
...
>  Now I got another, where has sys_errlist.h gone,
...

According to:
 https://sourceware.org/pipermail/libc-announce/2020/29.html

 "The GNU C Library version 2.32 is now available
...
* The deprecated symbols sys_errlist, _sys_errlist, sys_nerr, and _sys_nerr
  are no longer available to newly linked binaries, and their declarations
  have been removed from from .  They are exported solely as
  compatibility symbols to support old binaries.  All programs should use
  strerror or strerror_r instead.
"

So that means that programs like ngspice won't link with glibc 2.32 or 
later.

Any thoughts ?

Regards,
/Karl Hammar





Re: [gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness

2020-12-17 Thread karl
Michael:
> On 12/16/20 1:17 PM, Michael Orlitzky wrote:
> > On 12/16/20 12:30 PM, k...@aspodata.se wrote:
> >> Both sci-libs/{amd,camd}-2.4.6 gives this error in their build log:
> >>
> >>! Package inputenc Error: Unicode character ^^H (U+0008)
> >>(inputenc)not set up for use with LaTeX.
> > I can reproduce this... I'll take a look.
> It looks like the Makefile.am for the documentation was only tested with 
> bash. Try e.g.,
> 
>CONFIG_SHELL=/bin/bash USE=doc emerge -v1 sci-libs/amd
> 
> If that works for you, I'll add it to the ebuilds.

Yes, with that env.variable, the emerge worked fine and
the files
 /usr/share/doc/camd-2.4.6/CAMD_UserGuide.pdf
 /usr/share/doc/amd-2.4.6/AMD_UserGuide.pdf
looks fine. The header files got verbatim'd just nice.
Thanks!

Regards,
/Karl Hammar




Re: [gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-17 Thread karl
Neil:
> On Wed, 16 Dec 2020 18:30:47 +0100 (CET), k...@aspodata.se wrote:
> > What can I do to make ./configure below use the suggested option ?
> Try EXTRA_ECONF="--with-tcl=/usr/lib64" emerge -1a ngspice

 Thanks, that solved the configure problem.

 Now I got another, where has sys_errlist.h gone,
 and how do I resolve this:

*
/bin/sh ../../../libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc 
-DHAVE_CONFIG_H   -I. -I. -I../../../src/include -I../../../src/include 
-I../../../src/frontend  -I/usr/include -shared -O2pc
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. 
-I../../../src/include -I../../../src/include -I../../../src/frontend 
-I/usr/include -O2 -pipe -I/usr/include -fopenmp -c graf.c  -fCo
In file included from gnuplot.c:13:0:
gnuplot.c: In function ?<80><98>ft_gnuplot?<80><99>:
../../../src/include/ngspice/ngspice.h:284:57: error: 
?<80><98>sys_errlist?<80><99> undeclared (first use in this function)
 #define perror(string) fprintf(stderr,"%s: %s\n",string,sys_errlist[errno])
 ^
gnuplot.c:129:9: note: in expansion of macro ?<80><98>perror?<80><99>
 perror(filename);
 ^~
../../../src/include/ngspice/ngspice.h:284:57: note: each undeclared identifier 
is reported only once for each function it appears in
 #define perror(string) fprintf(stderr,"%s: %s\n",string,sys_errlist[errno])
 ^
gnuplot.c:129:9: note: in expansion of macro ?<80><98>perror?<80><99>
 perror(filename);
 ^~
gnuplot.c: In function ?<80><98>ft_writesimple?<80><99>:
../../../src/include/ngspice/ngspice.h:284:57: error: 
?<80><98>sys_errlist?<80><99> undeclared (first use in this function)
 #define perror(string) fprintf(stderr,"%s: %s\n",string,sys_errlist[errno])
 ^
gnuplot.c:360:9: note: in expansion of macro ?<80><98>perror?<80><99>
 perror(filename);
 ^~
make[3]: *** [Makefile:452: gnuplot.lo] Error 1
make[3]: *** Waiting for unfinished jobs
make[3]: Leaving directory 
'/Net/gentoo/tmpdir/portage/sci-electronics/ngspice-27-r1/work/ngspice-27-binaries/src/frontend/plotting'
make[2]: *** [Makefile:827: all-recursive] Error 1
make[2]: Leaving directory 
'/Net/gentoo/tmpdir/portage/sci-electronics/ngspice-27-r1/work/ngspice-27-binaries/src/frontend'
make[1]: *** [Makefile:1387: all-recursive] Error 1
make[1]: Leaving directory 
'/Net/gentoo/tmpdir/portage/sci-electronics/ngspice-27-r1/work/ngspice-27-binaries/src'
make: *** [Makefile:440: all-recursive] Error 1
*

 Since the header file is the same as last time:
# md5sum  work/ngspice-27/src/include/ngspice/ngspice.h 
/usr/include/ngspice/ngspice.h 
e695c3d756b1b934563779766bfd7881  work/ngspice-27/src/include/ngspice/ngspice.h
e695c3d756b1b934563779766bfd7881  /usr/include/ngspice/ngspice.h

 there must be something else at play here.
$ find  /usr/include -type f -name \*.h | xargs grep sys_errlist
/usr/include/X11/Xw32defs.h:#  define sys_errlist _sys_errlist
/usr/include/nspr/prerror.h:** (sys_errlist); this allows errno values to be 
used directly in the
/usr/include/schily/errno.h:extern  char*sys_errlist[];
/usr/include/ngspice/ngspice.h:#define perror(string) fprintf(stderr,"%s: 
%s\n",string,sys_errlist[errno])
/usr/include/ngspice/ngspice.h:#define perror(string) fprintf(stderr, "%s: 
%s\n", string, sys_errlist[errno])
$ grep sys_errlist.h /var/db/pkg/*/*/CONTENTS
$

 I have a crosscompiler that has sys_errlist[]:

/home/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/stdio.h:#include
 

$ tail -7 
/home/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/libc/usr/include/bits/sys_errlist.h
 
extern int sys_nerr;
extern const char *const sys_errlist[];
#endif
#ifdef  __USE_GNU
extern int _sys_nerr;
extern const char *const _sys_errlist[];
#endif

Regards,
/Karl Hammar




Re: [gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness

2020-12-16 Thread karl
Michael:
> On 12/16/20 1:17 PM, Michael Orlitzky wrote:
> > On 12/16/20 12:30 PM, k...@aspodata.se wrote:
> >> Both sci-libs/{amd,camd}-2.4.6 gives this error in their build log:
> >>
> >>! Package inputenc Error: Unicode character ^^H (U+0008)
> >>(inputenc)not set up for use with LaTeX.
> >>
> > 
> > I can reproduce this... I'll take a look.
> It looks like the Makefile.am for the documentation was only tested with 
> bash.

  Yes, this part:
CAMD_UserGuide.pdf:
echo '\begin{verbatim}' > camd_h.tex
expand -8 $(top_srcdir)/Include/camd.h >> camd_h.tex
echo '\end{verbatim}' >> camd_h.tex
-ln -s $(srcdir)/*.{tex,bib} .
$(PDFLATEX) CAMD_UserGuide
$(BIBTEX)  CAMD_UserGuide
$(PDFLATEX) CAMD_UserGuide
$(PDFLATEX) CAMD_UserGuide

 Unfortunately, different echos handles excapes differently, see e.g.
https://helpmanual.io/man1/echo-posix/
 In /bin/sh (dash) echo always converts thoose excapes (a' la sysV),
 where bash needs -e to do it (a' la BSD).

 One could replace the echos with printf "%s\n" as in
$ printf "%s\n" '\begin' | od -a
000   \   b   e   g   i   n  nl

Note: echo '\e' is said to be undefined in dashs manual.

///

Also, the $(srcdir) seems defined as ".", and I get this useless link:
# ls -l
total 140
lrwxrwxrwx 1 portage portage13 Dec 16 16:58 '*.{tex,bib}' -> './*.{tex,bib}'

///

> Try e.g.,
> 
>CONFIG_SHELL=/bin/bash USE=doc emerge -v1 sci-libs/amd
> 
> If that works for you, I'll add it to the ebuilds.

It will probably, cannot test just now, rust is compiling

Regards,
/Karl Hammar





[gentoo-user] sci-libs/{amd,camd}-2.4.6/ doc wierdness

2020-12-16 Thread karl
Both sci-libs/{amd,camd}-2.4.6 gives this error in their build log:

 ! Package inputenc Error: Unicode character ^^H (U+0008)
 (inputenc)not set up for use with LaTeX.

And sure enough, somehow theese files begins with backspace. The line 
should be "\begin{verbatim}". My guess something has interpreted the
initial "\b" as an escape instead of letting it through.
 
# head -1 
/Net/gentoo/tmpdir/portage/sci-libs/amd-2.4.6/work/amd-2.4.6/Doc/amd_h.tex | od 
-a
000  bs   e   g   i   n   {   v   e   r   b   a   t   i   m   }  nl
020
# head -1 
/Net/gentoo/tmpdir/portage/sci-libs/camd-2.4.6/work/camd-2.4.6/Doc/camd_h.tex | 
od -a
000  bs   e   g   i   n   {   v   e   r   b   a   t   i   m   }  nl
020

Do anyone know what to do about it ?

Hälsningar,
/Karl Hammar

---
Aspö Data
Lilla Aspö 148
S-742 94 Östhammar
Sverige
0173 140 57





[gentoo-user] sci-electronics/ngspice-27-r1 missing tcl

2020-12-16 Thread karl
What can I do to make ./configure below use the suggested option ?

sci-electronics/ngspice-27-r1's build log contains:

 checking for tclConfig.sh... 
 can't find Tcl configuration script "tclConfig.sh"
 Should you add --with-tcl=/usr/lib64  to ./configure arguments?

I have /usr/lib64/tclConfig.sh

Regards,
/Karl Hammar





Re: [gentoo-user] "Print to File" US letter size (default)

2020-12-06 Thread karl
Thelma:
> Is there a use flag or setting in make.conf to instruct all up to
> default to "US Letter" size paper.
...

Try and see if this helps:

 man papersize

Regards,
/Karl Hammar




Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode

2020-12-06 Thread karl
Thelma:
...
> IT WORKED!

Great!

Regards,
/Karl Hammar




Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread karl
Thelma:
...
> https://packages.gentoo.org/packages/app-office/glabels
> 
> It seems that version 3.99 is available upstream, while the latest
> version in the Gentoo tree is 3.4.1.

There is two glabels, the "old" 3-series, and the newer "qt"
4-series, you can get them with:

git clone https://github.com/jimevins/glabels.git
git clone https://github.com/jimevins/glabels-qt.git

///

BTW, reading
 glabels-qt/docs/BUILD-INSTRUCTIONS-LINUX.md 
I see the following excerp:

 <<
As of version 0.99, GNU Barcode no longer installs its library.  So install 
0.98 from source:
```
wget https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz
tar xzf barcode-0.98.tar.gz
cd barcode-0.98/
./configure && make
sudo make install
```
 >>

Doing just that and then reemerging glabels, gives me the missing gnu 
barcode backend.

Regards,
/Karl Hammar



Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread karl
Thelma:
> On 12/05/2020 09:58 AM, k...@aspodata.se wrote:
> > Karl:
...
> > Instead of barcode you could try out zint:
> > 
> > git clone https://git.code.sf.net/p/zint/code zint-code
> > cd zint-code
> > git co ade31c41fba14b942cca30a4a605e48517613d25
> > mkdir build
> > cd build
> > cmake ..
> > make
> > make install
> > 
> > Note:
> >  Since ZBarcode_Render was removed in
> >  commit f9d969cdd66984906719c87ed486909a673decec
> >  you have to check out an earlier commit e.g. the one
> >  I used above.
> > 
> >  possible also as root
> > ldconfig
> > 
> >  And then reinstalling glabels
> 
> Running "ldconfig" didn't help.

Strange, worked like a charm here.
It has a lot of styles, do you want help making it work ?

> > There is also the iec16022 package,
...
> I'll try the second solution if I have a change.  Thanks for the input.

Note that the iec16022 package only has one choise, just like QREncode.

Regards,
/Karl Hammar




[gentoo-user]

2020-12-05 Thread karl
Karl:
> Thelma:
> > I have app-office/glabels installed with (barcode -eds)
> > but the style menus is not showing "GNU Barcode
> > 
> > Is it a bug?
> 
> app-text/barcode doesn't provide the lib needed, see below.

Instead of barcode you could try out zint:

git clone https://git.code.sf.net/p/zint/code zint-code
cd zint-code
git co ade31c41fba14b942cca30a4a605e48517613d25
mkdir build
cd build
cmake ..
make
make install

Note:
 Since ZBarcode_Render was removed in
 commit f9d969cdd66984906719c87ed486909a673decec
 you have to check out an earlier commit e.g. the one
 I used above.

 possible also as root
ldconfig

 And then reinstalling glabels

emerge -aqv app-office/glabels

///

There is also the iec16022 package,

wget 
https://archive.kernel.org/debian-archive/debian/pool/main/i/iec16022/iec16022_0.2.4.orig.tar.gz
tar zxf iec16022_0.2.4.orig.tar.gz
cd iec16022_0.2.4
./configure
make
make install

and then reemerge glabels.

Regards,
/Karl Hammar





Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread karl
Thelma:
> I have app-office/glabels installed with (barcode -eds)
> but the style menus is not showing "GNU Barcode
> 
> Is it a bug?

app-text/barcode doesn't provide the lib needed, see below.

///

I tried this:

# echo app-office/glabels barcode -eds > /etc/portage/package.use/glabels
# emerge -aqv app-office/glabels
[ebuild   R   ] app-office/glabels-3.4.1  USE="barcode -eds" 

Would you like to merge these packages? [Yes/No] y
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) app-office/glabels-3.4.1::gentoo
>>> Jobs: 0 of 1 complete, 1 runningLoad avg: 1.41, 0.88, 0.52^C

I.e. I killed the build process so I could look at the tempdir contents 
(why doesn't "FEATURES=noclean emerge -aqv app-office/glabels" work ?).

Looking at (PORTAGE_TMPDIR def. is /var/tmp)
# cat $PORTAGE_TMPDIR/portage/app-office/glabels-3.4.1/temp/build.log
...
checking for LIBGLABELS... yes
checking for LIBGLBARCODE... yes
checking for Barcode_Create in -lbarcode... no
checking for ZBarcode_Render in -lzint... no
checking for LIBQRENCODE... yes
checking for LIBIEC16022... no
checking locale.h usability... yes
...

Optional barcode backends:

GNU Barcode . no (See 
http://www.gnu.org/software/barcode/barcode.html)
QR Code . yes 
IEC 16022 ... no (See 
http://datenfreihafen.org/projects/iec16022.html)
Zint  no (See http://www.zint.org.uk)

...
# cat 
$PORTAGE_TMPDIR/portage/app-office/glabels-3.4.1/work/glabels-3.4.1/config.log
...
configure:15388: checking for Barcode_Create in -lbarcode
configure:15413: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe  -Wl,-O1 
-Wl,--as-needed conftest.c -lbarcode   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/7.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: 
cannot find -lbarcode
collect2: error: ld returned 1 exit status
configure:15413: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "glabels"
| #define PACKAGE_TARNAME "glabels"
| #define PACKAGE_VERSION "3.4.1"
| #define PACKAGE_STRING "glabels 3.4.1"
| #define PACKAGE_BUGREPORT 
"http://bugzilla.gnome.org/enter_bug.cgi?product=glabels;
| #define PACKAGE_URL ""
| #define PACKAGE "glabels"
| #define VERSION "3.4.1"
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|Use char because int might match the return type of a GCC
|builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char Barcode_Create ();
| int
| main ()
| {
| return Barcode_Create ();
|   ;
|   return 0;
| }
configure:15422: result: no
...

 So, glabels tries to use barcode, but there is no lib found.
 Looking at /var/db/pkg/app-text/barcode-0.99/CONTENTS, I see that 
 barcode doesn't provide a lib.

$ git clone https://git.savannah.gnu.org/git/barcode.git
$ cd barcode
$ cat library.c
...
struct Barcode_Item *Barcode_Create(char *text)
{
struct Barcode_Item *bc;

bc = malloc(sizeof(*bc));
if (!bc) return NULL;

memset(bc, 0, sizeof(*bc));
bc->ascii = strdup(text);
    bc->margin = BARCODE_DEFAULT_MARGIN; /* default margin */
return bc;
}
...

 So Barcode_Create() exists, but barcode doesn't build the needed
 library.

Regards,
/Karl Hammar





Re: [gentoo-user] sys-kernel/ck-sources going away?

2020-12-03 Thread karl
Tom Naujokas:
> I have run sys-kernel/ck-sources for years and it has been working well.  
> Just updated and got this message:
> 
>    !!! The following installed packages are masked:
>    - sys-kernel/ck-sources-5.4.48::gentoo (masked by: package.mask)
>    /var/db/repos/gentoo/profiles/package.mask:
>    # Joonas Niilola  (2020-12-01)
>    # Not maintained in Gentoo, multiple versions behind, unsafe, EAPI-5,
>    # Use other kernel source / binary packages instead,
>    # https://packages.gentoo.org/categories/sys-kernel
>    # Removal in ~30 days.
>    # Bugs: #716490 (aufs), #739782 (-ck), #757843 (-xbox)
> 
> Looked up the bugs. They do not give a reason to discontinue, other than to 
> say these packages are not maintained.

It seems maintained upstream, latest is from october:
 http://ck.kolivas.org/patches/muqss/5.0/5.9/

If no one is mainaining it in _gentoo_, then I understand that it will go
away, perhaps you can be the new maintainer for it?

The message says EAPI-5, but isn't this 6:
$ grep EAPI sys-kernel/ck-sources/ck-sources-5.4.*
sys-kernel/ck-sources/ck-sources-5.4.37.ebuild:EAPI="6"
sys-kernel/ck-sources/ck-sources-5.4.48.ebuild:EAPI="6"

Even if it is dropped in gentoo, nothing hinders you to apply the
patches upstream.

Regards,
/Karl Hammar




Re: [gentoo-user] Brother printer HL-5370

2020-12-02 Thread karl
Thelma:
> On 12/01/2020 12:27 AM, k...@aspodata.se wrote:
> > That printer supports BR-Script (PostScript lvl3 language emulation).
> > Why not just use postscript.
...
> How do you use it / install it  on HL-5370?

You don't install it on the printer, it is already there.
But if you bypass cups and send the postscript file directly to
the printer, you have to tell the the printer to always use br-scrip
emulation.

> When I was installing via "rpm" driver  for another printer HL-3170CDW I got 
> a warning:
> 
> lpadmin -p HL3170CDW -E -v usb://dev/usb/lp0 -P 
> /usr/share/cups/model/Brother/brother_hl3170cdw_printer_en.ppd
> lpadmin: Printer drivers are deprecated and will stop working in a future 
> version of CUPS. 

I don't know much about cups, but they seems to be in the middle of 
something:

 https://github.com/apple/cups/issues/5271

Regards,
/Karl Hammar





Re: [gentoo-user] Brother printer HL-5370

2020-11-30 Thread karl
That printer supports BR-Script (PostScript lvl3 language emulation).
Why not just use postscript.

Regards,
/Karl Hammar




Re: [gentoo-user] X11 server not seeing font dirs

2020-11-21 Thread karl
n952162:
> Can anyone say why I have the error messages in my Xorg.0.log file that
> I list below?
> 
> xlsfonts(1) does not list fonts that are in /usr/share/fonts.
> 
> If I add them with "xset +fp /usr/share/fonts/courier-prime" they appear
> and then disappear in the "xset -q" display.  They are not available to
> xlsfonts, though.
> 
> Interestingly enough, adding them with the plus in back: "xset fp+
> /user/..." causes them to persist, but still not be available to xlsfonts.
...

$ xlsfonts | grep -i mono
$ xset +fp /usr/share/fonts/freefont
$ xlsfonts | grep -i mono | head -1
-misc-freemono-bold-o-normal--0-0-0-0-m-0-adobe-standard
$

I.e. it works as expected.

# emerge -aqv media-fonts/courier-prime
...

$ xset +fp  /usr/share/fonts/courier-prime
$ xset q | grep prime
  
/usr/share/fonts/courier-prime,/usr/share/fonts/freefont,/usr/local/share/fonts,/usr/share/fonts/misc/,/usr/share/fonts/OTF/,/usr/share/fonts/Type1/,/usr/share/fonts/100dpi/,/usr/share/fonts/75dpi/,built-ins
$ xlsfonts | grep -i prime
$

So my courier-prime fp doesn't dissapear, but xlsfonts doesn't
report them as a core font.

I run fvwm2 on an older X without udev, can it be a fancy modern destop
that changes this under the hood for you ?

I can see the font with

$ fc-list 'Courier prime'
/usr/share/fonts/courier-prime/Courier Prime Bold.ttf: Courier Prime:style=Bold
/usr/share/fonts/courier-prime/Courier Prime.ttf: Courier Prime:style=Regular
/usr/share/fonts/courier-prime/Courier Prime Bold Italic.ttf: Courier 
Prime:style=Bold Italic
/usr/share/fonts/courier-prime/Courier Prime Italic.ttf: Courier 
Prime:style=Italic
$ xfd -fa 'Courier prime'
...

 Can the problem be that there is a space in the x core font name?

$ head -2  /usr/share/fonts/courier-prime/fonts.dir 
16
Courier prime bold italic.ttf -misc-courier 
prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
$

If I, as root, do:

cd /usr/share/fonts/courier-prime/
perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.dir
perl -wpi.bak -e 'tr/ /_/; s/_-/ -/' fonts.scale
list=`ls -1  | grep Cour | tr ' ' '_'`
for i in $list; do b=`echo $i  | tr '_' ' '`; mv "$b" $i; done

 Then I can do:
$ xset fp rehash
$ xlsfonts | grep -i prime | head -1
-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
$ xfd -fn -misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Warning: Cannot convert string 
"-misc-courier_prime-bold-i-normal--0-0-0-0-m-0-iso10646-1" to type FontStruct
xfd:  no font to display
$ xterm -fn -misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1
xterm: cannot load font 
"-misc-courier_prime-medium-r-normal--17-120-100-100-m-0-iso10646-1"

Unfortunately, I cannot use it...

I don't think x likes core fonts with spaces in font- nor 
filenames.

Regards,
/Karl Hammar





Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread karl
Stefan G. Weichinger:
> Am 06.10.20 um 11:52 schrieb k...@aspodata.se:
> > Stefan G. Weichinger:
> >> Am 05.10.20 um 21:32 schrieb k...@aspodata.se:
> > ...
> >> What do you think, is 2 TB maybe too big for the controller?
> > 
> >>>> 0a:0e.0 RAID bus controller: Adaptec AAC-RAID
> > 
> > This doesn't really tells us which controller it is, try with
> > 
> >  lspci -s 0a:0e.0 -nn
> 
> I know the model: ICP5165BR

https://ask.adaptec.com/app/answers/detail/a_id/17414/~/support-for-sata-and-sas-disk-drives-with-a-size-of-2tb-or-greater

says it is supported up to 8TB drives using firmware v5.2.0 Build 17343 **

** Firmware v5.2.0 Build 17343 for the ICP5045BL, ICP5085BL, ICP5805BL,
   ICP5125BR, and ICP5165BR: Adaptec is providing minimally tested
   firmware packages. Please contact Adaptec by PMC Technical Support
   to obtain these firmware files. Have the TSID or serial number of
   the product at hand when contacting support.

Regards,
/Karl Hammar




Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread karl
Stefan G. Weichinger:
> Am 05.10.20 um 16:38 schrieb k...@aspodata.se:
...
> But no luck with any version of arcconf so far. Unpacked several zips,
> tried 2 releases, 32 and 64 bits .. all crash.
> 
> > Just a poke in the dark, does ldd report all libs found, as in:
> > $ ldd /bin/ls
> > linux-vdso.so.1 (0x7ffcbab4c000)
> > libc.so.6 => /lib64/libc.so.6 (0x7fece3ad5000)
> > /lib64/ld-linux-x86-64.so.2 (0x7fece3d1c000)
> > $
> 
> Yeah, that works.

Some guesses:

 https://wiki.debian.org/LinuxRaidForAdmins#aacraid
 says that it requires libstd++5

 arcconf might fork and exec, one could try with strace and try to
 see what happens

 one could, if the old suse dist. is available in a subdir, to chroot
 to that sudir, and try arcconf from there

Regards,
/Karl Hammar




Re: [gentoo-user] RAID: new drive on aac raid

2020-10-06 Thread karl
Stefan G. Weichinger:
> Am 05.10.20 um 21:32 schrieb k...@aspodata.se:
...
> What do you think, is 2 TB maybe too big for the controller?

>>> 0a:0e.0 RAID bus controller: Adaptec AAC-RAID

This doesn't really tells us which controller it is, try with

 lspci -s 0a:0e.0 -nn

In the kernel source one can then find drivers/scsi/aacraid/linit.h,
and since lsscsi says ICP, my guess it is one of theese below.
When we know which one, one can try to check for issues.

/*
 * Because of the way Linux names scsi devices, the order in this table has
 * become important.  Check for on-board Raid first, add-in cards second.
 *
 * Note: The last field is used to index into aac_drivers below.
 */
static const struct pci_device_id aac_pci_tbl[] = {
...
{ 0x9005, 0x0286, 0x9005, 0x029e, 0, 0, 25 }, /* ICP9024RO (Lancer) */
{ 0x9005, 0x0286, 0x9005, 0x029f, 0, 0, 26 }, /* ICP9014RO (Lancer) */
{ 0x9005, 0x0286, 0x9005, 0x02a0, 0, 0, 27 }, /* ICP9047MA (Lancer) */
{ 0x9005, 0x0286, 0x9005, 0x02a1, 0, 0, 28 }, /* ICP9087MA (Lancer) */
{ 0x9005, 0x0286, 0x9005, 0x02a3, 0, 0, 29 }, /* ICP5445AU 
(Hurricane44) */
{ 0x9005, 0x0285, 0x9005, 0x02a4, 0, 0, 30 }, /* ICP9085LI (Marauder-X) 
*/
{ 0x9005, 0x0285, 0x9005, 0x02a5, 0, 0, 31 }, /* ICP5085BR (Marauder-E) 
*/
{ 0x9005, 0x0286, 0x9005, 0x02a6, 0, 0, 32 }, /* ICP9067MA (Intruder-6) 
*/
...
};
MODULE_DEVICE_TABLE(pci, aac_pci_tbl);

/*
 * dmb - For now we add the number of channels to this structure.
 * In the future we should add a fib that reports the number of channels
 * for the card.  At that time we can remove the channels from here
 */
static struct aac_driver_ident aac_drivers[] = {
...
{ aac_rkt_init, "aacraid",  "ICP ", "ICP9024RO   ", 2 }, /* 
ICP9024RO (Lancer) */
{ aac_rkt_init, "aacraid",  "ICP ", "ICP9014RO   ", 1 }, /* 
ICP9014RO (Lancer) */
{ aac_rkt_init, "aacraid",  "ICP ", "ICP9047MA   ", 1 }, /* 
ICP9047MA (Lancer) */
{ aac_rkt_init, "aacraid",  "ICP ", "ICP9087MA   ", 1 }, /* 
ICP9087MA (Lancer) */
{ aac_rkt_init, "aacraid",  "ICP ", "ICP5445AU   ", 1 }, /* 
ICP5445AU (Hurricane44) */
{ aac_rx_init, "aacraid",  "ICP ", "ICP9085LI   ", 1 }, /* 
ICP9085LI (Marauder-X) */
{ aac_rx_init, "aacraid",  "ICP ", "ICP5085BR   ", 1 }, /* 
ICP5085BR (Marauder-E) */
{ aac_rkt_init, "aacraid",  "ICP ", "ICP9067MA   ", 1 }, /* 
ICP9067MA (Intruder-6) */
...
};

> > What do sg_verify /dev/sg11 return ?
> nothing

Well, you have to check the return status: echo $?

> > Can you do sg_dd if=foo of=/dev/sg11 count=10 and get it back with
> > sg_dd if=/dev/sg11 of=bar count=10, with cmp foo bar; echo $? 
> > returning 0 ?
> Yes, that works.

Then it seems the drive itself is ok.

Regards,
/Karl Hammar




Re: [gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread karl
Stefan G. Weichinger:
...
> Searched for more and older releases of arcconf, found Version 1.2 that
> doesn't crash here.
> 
> This lets me view the physical device(s), but the new disk is marked as
> "Failed".
...

What if you put it on the 53c1030 card, can you do that, at least to 
verify the disk ?

What do sg_verify /dev/sg11 return ?

Can you do sg_dd if=foo of=/dev/sg11 count=10 and get it back with
sg_dd if=/dev/sg11 of=bar count=10, with cmp foo bar; echo $? 
returning 0 ?

Regards,
/Karl Hammar





Re: [gentoo-user] RAID: new drive on aac raid

2020-10-05 Thread karl
Stefan G. Weichinger:
> On an older server the customer replaced a SAS drive.
> 
> I see it as /dev/sg11, but not yes as /dev/sdX, it is not visible in "lsblk"
...

Not that I think it will help you much, but there is sys-apps/sg3_utils:

# lsscsi 
[0:0:0:0]diskATA  TOSHIBA MG03ACA3 FL1A  /dev/sda 
[1:0:0:0]diskATA  TOSHIBA MG03ACA3 FL1A  /dev/sdb 
[5:0:0:0]cd/dvd  ASUS DRW-24F1ST   a   1.00  /dev/scd0
# sg_map -x -i
/dev/sg0  0 0 0 0  0  /dev/sda  ATA   TOSHIBA MG03ACA3  FL1A
/dev/sg1  1 0 0 0  0  /dev/sdb  ATA   TOSHIBA MG03ACA3  FL1A
/dev/sg2  5 0 0 0  5  /dev/scd0  ASUS  DRW-24F1ST   a1.00
# sg_inq /dev/sg1
standard INQUIRY:
  PQual=0  Device_type=0  RMB=0  LU_CONG=0  version=0x05  [SPC-3]
  [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
  SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  [BQue=0]
  EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
  [RelAdr=0]  WBus16=0  Sync=0  [Linked=0]  [TranDis=0]  CmdQue=1
  [SPI: Clocking=0x0  QAS=0  IUS=0]
length=96 (0x60)   Peripheral device type: disk
 Vendor identification: ATA 
 Product identification: TOSHIBA MG03ACA3
 Product revision level: FL1A
 Unit serial number:14UAKBPDF

You have theese two:
> 07:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X
> 0a:0e.0 RAID bus controller: Adaptec AAC-RAID

 I guess that the tape drive and mediachanger is on the 53c1030:
> [0:0:1:0]tapeHP   Ultrium 4-SCSI   B12H  /dev/st0
> [0:0:1:1]mediumx OVERLAND NEO Series   0510  /dev/sch0

 And theese on the aac, since they have the same scsi host, and I guess
 that scsi ch.0 is for the configured drives and ch.1 for the raw drives:
> [1:0:1:0]diskICP  SAS2 V1.0  /dev/sda
> [1:0:2:0]diskICP  Device 2 V1.0  /dev/sdb
> [1:0:3:0]diskICP  Device 3 V1.0  /dev/sdc
> [1:0:4:0]diskICP  Device 4 V1.0  /dev/sdd
> [1:0:5:0]diskICP  Device 5 V1.0  /dev/sde
> [1:0:6:0]diskICP  Device 6 V1.0  /dev/sdf
> [1:0:7:0]diskICP  Device 7 V1.0  /dev/sdg
> [1:0:8:0]diskICP  Device 8 V1.0  /dev/sdh
> [1:0:9:0]diskICP  Device 9 V1.0  /dev/sdi
> [1:1:0:0]diskTOSHIBA  MG04SCA20EE  0104  
> [1:1:1:0]diskSEAGATE  ST373455SS   0002  -
> [1:1:3:0]diskWDC  WD7500AZEX-00RKK 0A80  -
> [1:1:4:0]diskWDC  WD7500AZEX-00RKK 0A80  -
> [1:1:5:0]diskWDC  WD7500AZEX-00RKK 0A80  -
> [1:1:6:0]diskWDC  WD7500AZEX-00BN5 1A01  -
> [1:1:7:0]diskWDC  WD7500AZEX-00BN5 1A01  -
> [1:1:8:0]diskWDC  WD7500AZEX-00RKK 0A80  -
> [1:1:9:0]diskST375052 8AS  CC44  -
> [1:1:10:0]   diskWDC  WD7500AZEX-00BN5 1A01  -
> [1:1:11:0]   diskWDC  WD7500AZEX-00BN5 1A01  -

Perhaps theese links will help:
 
https://www.cyberciti.biz/faq/linux-checking-sas-sata-disks-behind-adaptec-raid-controllers/
 http://updates.aslab.com/doc/disk-controller/aacraid_guide.pdf
 https://hwraid.le-vert.net/wiki/Adaptec

Just a poke in the dark, does ldd report all libs found, as in:
$ ldd /bin/ls
linux-vdso.so.1 (0x7ffcbab4c000)
libc.so.6 => /lib64/libc.so.6 (0x7fece3ad5000)
/lib64/ld-linux-x86-64.so.2 (0x7fece3d1c000)
$

Regards,
/Karl Hammar





Re: [gentoo-user] Hard drive screws

2020-07-18 Thread karl
Dale:
...
> the first bag of screws I ordered didn't have any size info
...

To figure out which thread one have, one usually use:
 https://en.wikipedia.org/wiki/Calipers
to get the diameter. Given the diameter, and possible the table of thread
sizes, one can sufficiently well infer which thread it is.

You can use a thread gauge if unsure:
 https://en.wikipedia.org/wiki/Thread_gauge

Regards,
/Karl Hammar




Re: [gentoo-user] Hard drive screws

2020-07-18 Thread karl
Dale:
...
> The size I bought was 6-32UNC x 1/8". 
> I'm not sure what the UNC means or if it matters.
...

https://en.wikipedia.org/wiki/Unified_Thread_Standard

If you had read my answer to your original question:
 
https://archives.gentoo.org/gentoo-user/message/b0a1914dac2d0e985e7e1d66ada02f2b
you'd know that by now.

Regards,
/Karl Hammar




Re: [gentoo-user] old kernel on Gentoo

2020-07-01 Thread karl
Gerrit:
> On Sun, 21 Jun 2020 10:31:08 +
> Raffaele BELARDI  wrote:
> 
> > What about the rest of the system, in particular GCC and the C
> > libraries? Do you manage to build the 3.x kernel with up to date
> > system or do you need to ''freeze'' some packages?
> 
> 3.2 required an older gcc for me. I think 5.x and 6.x worked fine (if
> memory serves me well). As gcc comes slotted, it is not too hard to
> have them all installed in parallel.

 For the compilers, perhaps theese can help:
https://archives.gentoo.org/gentoo-user/message/46d881b86ea66bf9b537374f4451d31c
https://archives.gentoo.org/gentoo-user/message/da77b9598e34e7be3b76c74027b40efe

Regards,
/Karl Hammar





Re: [gentoo-user] Hard drive screws

2020-06-06 Thread karl
Dale:
...
> Is there not a standard sized screw that should fit all 3.5" and even
> 2.5" drives??
...

The threads used is UNC 6-32 [1] and M3 [2], where the UNC ones are used 
for 3.5" hard drives and M3 for CD and 2.5" drives. There might be others
also, but I havn't seen thoose.

The above just tells us how the thread is done, but not how long it is.

Regards,
/Karl Hammar

[1] https://en.wikipedia.org/wiki/Unified_Thread_Standard
[2] https://en.wikipedia.org/wiki/ISO_metric_screw_thread




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] 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] 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
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




[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] 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] 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] 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




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




[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





[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





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] 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] 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




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




[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] 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




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





[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




  1   2   >