Re: [gentoo-user] Change from udev to eudev?

2016-06-08 Thread karl
Dale:
...
> Can a system even boot without udev?

Yes, use sys-fs/static-dev (unless you have some special boot 
requirements).

>  I would think the bootloader would get it to a certain point
> but then die later on.  :/

The bootloader needs to find the kernel and possible the initrd/
initramfs if you use them.

Then kernel needs (depending on your setup) to find the root
filesystem and then /sbin/init.

And init needs to start up the rest of the system.

The above have been working wery well for a long time, but if you don't
use udev and initrd et al, most (all?) distributions don't help you
anymore with it; you have to know yourself how to do it.

Regards,
/Karl Hammar

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





[gentoo-user] *dev-less gentoo

2016-01-18 Thread karl
# emerge -auDN @system
...
[ebuild  N ] virtual/dev-manager-0 

How can I get rid of dev-manager-0 from @system ?

Regards,
/Karl Hammar

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





Re: [gentoo-user] *dev-less gentoo

2016-01-18 Thread karl
Francisco Ares:
> 2016-01-18 15:15 GMT-02:00 <k...@aspodata.se>:
> 
> > # emerge -auDN @system
> > ...
> > [ebuild  N ] virtual/dev-manager-0
> >
> > How can I get rid of dev-manager-0 from @system ?
...
> Try updating to a new kernel.
> 
> I'm saying this because of the output of equery d  virtual/dev-manager on
> my system:
> 
>  ~ $ equery d virtual/dev-manager
>  * These packages depend on virtual/dev-manager:
> sys-kernel/gentoo-sources-3.18.9 (virtual/dev-manager)
> sys-kernel/gentoo-sources-3.18.12 (virtual/dev-manager)

Not so here:

# equery d virtual/dev-manager
 * These packages depend on virtual/dev-manager:
#

///

What info is there on @system ?
I can change what's in @world, it seems to be the content of
/var/lib/portage/world. Is there a similar file for @system ?

Regards,
/Karl Hammar

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





Re: [gentoo-user] Re: *dev-less gentoo

2016-01-18 Thread karl
Alan McKinnon:
> On 18/01/2016 23:05, k...@aspodata.se wrote:
...
> > I found a workaround in the sys-fs/static-dev package.
> Let's be clear: static-dev is NOT a workaround. It is a full proper
> solution for the case when a dynamic device node solution is not desired.

Ok, fine with me (the wording "dev-manager" go me off track).

> Of course it means you have to mknod every device you need yourself. But
> you know that going in right?

Yes (though I alreade have a /dev from before).

Regards,
/Karl Hammar

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





Re: [gentoo-user] *dev-less gentoo

2016-01-18 Thread karl
Karl Hammar:
> # emerge -auDN @system
> ...
> [ebuild  N ] virtual/dev-manager-0 
> 
> How can I get rid of dev-manager-0 from @system ?

Ok, found workaround with sys-fs/static-dev.

Regards,
/Karl Hammar

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





Re: [gentoo-user] Re: *dev-less gentoo

2016-01-18 Thread karl
boxc...@gmx.net:
> On Mon, 18 Jan 2016 19:48:58 +0100 (CET)
> k...@aspodata.se wrote:
...
> > What info is there on @system ?
> > I can change what's in @world, it seems to be the content of
> > /var/lib/portage/world. Is there a similar file for @system ?
> 
> It's in /usr/portage/profiles/base/packages -- I think that will be
> overwritten when profiles are updated, so I don't think it helps you.

Great, thanks. Would it work to have that in an overlay, ehh, something ?

> Would putting virtual/dev-manager into packages.provided work to solve
> your problem?  (I phrase it as a question because I've never used
> packages.provided.)

No, then would packages that actually needs it be fooled.
I found a workaround in the sys-fs/static-dev package.

Regards,
/Karl Hammar

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





[gentoo-user] Gentoo and texlive

2016-02-07 Thread karl
 I can install the complete texlive with:
wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
tar zxf install-tl-unx.tar.gz 
cd install-tl-20160204/
./install-tl 

But I don't understand how to do that with the portage version.
If I do a naive

 cd /usr/portage
 emerge -auqDN *te*/*texlive*

I get e.g.:

[blocks B ] dev-texlive/texlive-langdutch ("dev-texlive/texlive-langdutch" 
is blocking dev-texlive/texlive-langeuropean-2014)

If I do

 emerge -auqDN app-text/texlive

I don't get everything in texlive.

///

So should I run the install-tl and add things to
/etc/portage/package.provided (and then what do I add), or run the
emerge thing (and then emerge what) ?

Regards,
/Karl Hammar

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





[gentoo-user] guile 2.0.0

2016-02-07 Thread karl
I try to install guile v2, but get strange error message.
Have anyone any idea how to fix this ?

# emerge -auqDN dev-scheme/guile:2
[ebuild  NS   ] dev-scheme/guile-2.0.0 [1.8.8-r1]

Would you like to merge these packages? [Yes/No] y
...
  CC printf-parse.lo
In file included from version-etc.h:23:0,
 from version-etc.c:22:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
In file included from version-etc.h:23:0,
 from version-etc-fsf.c:22:
./stdio.h:477:1: error: 'gets' undeclared here (not in a function)
 _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
 ^
  CC safe-read.lo
Makefile:1486: recipe for target 'version-etc-fsf.lo' failed
...

///

Build.log etc. are available at

 http://turkos.aspodata.se/tmp/gentoo/

Regards,
/Karl Hammar

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





Re: [gentoo-user] guile 2.0.0

2016-02-12 Thread karl
I need booth buile 1.8 and 2.0 but emerging 2.0 gives error as noted in 
my previous mail.

Downloading guile from 

 
ftp://ftp.sunet.se/pub/Linux/distributions/slackware/slackware64-14.1/source/d/guile/guile-2.0.9.tar.xz

and compiling/installin works fine.

So how do I tell portage that guile 2.0 is installed ?


$ grep guile /etc/portage/package.provided
dev-scheme/guile-2.0.0

doen't help.

Regards,
/Karl Hammar

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





Re: [gentoo-user] emerge libxcb fails

2016-01-19 Thread karl
Alec Ten Harmsel:
> On Tue, Jan 19, 2016 at 10:05:49PM +0100, k...@aspodata.se wrote:
> > Alec: Ten Harmsel:
> > > On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> > > > I'm getting
> > > > 
> > > >  Makefile:1318: recipe for target 'xinput.c' failed
> > > > 
> > > > when emerging x11-libs/libxcb-1.11.1, logs etc.:
> > > > 
> > > >  http://turkos.aspodata.se/tmp/gentoo/
> > > 
> > > I can't read build.log - 403 permission denied.
> > 
> > Ok, fixed. I did not check emerge's log permission.
> 
> In general (someone else, correct me if I'm wrong) this list would much
> rather have you attach a compressed build.log when you mail in the
> problem. That way, there is no chance of permissions problems, and years
> from now, the logs will still be here for posterity.

They were kindof big, so I didn't want to swamp the mailing list.

> The problem is a python script that runs in the build process has a
> KeyError. I did notice that for you, that python script is running on
> files in `/usr/local/share/xcb', while it runs on files in
> `/usr/share/xcb' on mine. These are a part of the `x11-proto/xcb-proto'
> package. Do you have a version of xcb-proto installed in /usr/local? It
> is possible that the libxcb configure script is picking an old version
> of xcb-proto that is installed in `/usr/local' over the correct version
> installed in `/usr'.

Yes, that's probably it, thanks for the look.

> I would recommend removing `/usr/local/share/xcb' and trying to install
> libxcb again.

I mv'ed /usr/local/share but it didn't help.

Is there some make clean or similar for emerge, tried --fail-clean a 
couple of times, but that didn't help. Perhaps if I change some use var
and run emerge -auDN @system, would that help. Well that would be a
thing for tomorrow.

Regards,
/Karl Hammar

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





Re: [gentoo-user] emerge libxcb fails

2016-01-19 Thread karl
Alec: Ten Harmsel:
> On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> > I'm getting
> > 
> >  Makefile:1318: recipe for target 'xinput.c' failed
> > 
> > when emerging x11-libs/libxcb-1.11.1, logs etc.:
> > 
> >  http://turkos.aspodata.se/tmp/gentoo/
> 
> I can't read build.log - 403 permission denied.

Ok, fixed. I did not check emerge's log permission.

> > I get similar errors with:
> > 
> >  emerge =libxcb-1.10
> >  emerge =libxcb-1.9.1
> > 
> > Have anyone seen anything similar, maybe there something missing here ?
> 
> Nope, installed fine here.

Ok, I'll try from X git sources tomorrow.
Thanks for your answer anyhow.

Regards,
/Karl Hammar

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





Re: [gentoo-user] Re: *dev-less gentoo

2016-01-19 Thread karl
Alec McKinnon:
> On 19/01/2016 18:51, k...@aspodata.se wrote:
...
> > I have had no pain useing an old plain /dev. What's the pain ?
> take a machine running a desktop. Plug in a usb printer. Where's your node?

To find that out I'd investigate /sys/bus/usb, either directly or via 
usb-devices or some other program. I guess "some other program" is
probably udev or similar for you, it might not be for me.

If it is a usb disk, I just look at the output of sg_map -x -i, and then
decide what to do.

> That's the whole point of a dynamic dev manager, it responds to devices
> changes that occur on normal modern machines and does TheRightThing(tm)
> - currently defined as whatever the dev-manager config tells it to do.

Ok, I don't have any usb printer, all my printers are network connected 
and do handle postscript and lpd.

And my "dev-manager" tells the system to do nothing till the owner of 
the system tells it to do so, which is the right thing for me.
The right thing might be something else for you.

> I'm having a hard time thinking what kind of machine you have in this
> day and age that can do mail and also does not need a dynamic device
> maanger. Please enlighten us, or are you perhaps using MAKEDEV?

Please be aware of that I'm not impling anything about anyone else than 
me och don't ridicule me.

To do mail, all you have to have is a network connection, a mail 
program and a mail server to relay through. All of that has been done 
for ages without any program like udev. So I don't understand why you 
have any problem understanding how that is done, or why you choose such
an example.

And I don't use MAKEDEV, the dev-nodes are already there, there is no
need to create them again. What's the fuss ?

...
> Sounds like you made one mistake once and that has now become the world
> for you. Almost no-one else here has reported dynamic dev managers make
> "everything just stop working". What you will hear is lots of whinging
> about udev - actually it's whinging about udev's maintainers cleverly
> disguised as whinging about the software - but as a class of software
> they all get the job done and do it well.

No, I did not do the mistake, the upgrade program or the udev 
installer did. And since udev (or something related to it) mounts
something on /dev, which makes it in practice inpossible to unmount.
So if udev do not fill up the new fs correctly, the system is hosed,
yea, unless I value running mknod by hand and from memory.
That very problem I had is probably fixed by now. But I don't see the
need to get exposed to it again. If udev had used e.g. /udev and
populated that dir seperately from /dev, I would not have that special
problem. udev seems to be hardcoded to /dev, but other similar program
are more malleable in this regard, and if need arises I wouldn't 
hesitate to test them.

Regards,
/Karl Hammar

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





[gentoo-user] emerge libxcb fails

2016-01-19 Thread karl
I'm getting

 Makefile:1318: recipe for target 'xinput.c' failed

when emerging x11-libs/libxcb-1.11.1, logs etc.:

 http://turkos.aspodata.se/tmp/gentoo/

I get similar errors with:

 emerge =libxcb-1.10
 emerge =libxcb-1.9.1

Have anyone seen anything similar, maybe there something missing here ?

Regards,
/Karl Hammar

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





Re: [gentoo-user] emerge libxcb fails

2016-01-23 Thread karl
Karl Hammar:
> Alec Ten Harmsel:
> > On Tue, Jan 19, 2016 at 10:05:49PM +0100, k...@aspodata.se wrote:
> > > Alec: Ten Harmsel:
> > > > On Tue, Jan 19, 2016 at 08:01:19PM +0100, k...@aspodata.se wrote:
> > > > >  Makefile:1318: recipe for target 'xinput.c' failed
> > > > > when emerging x11-libs/libxcb-1.11.1, logs etc.:
...
> > The problem is a python script that runs in the build process has a
> > KeyError. I did notice that for you, that python script is running on
> > files in `/usr/local/share/xcb', while it runs on files in
> > `/usr/share/xcb' on mine. These are a part of the `x11-proto/xcb-proto'
> > package. Do you have a version of xcb-proto installed in /usr/local? It
> > is possible that the libxcb configure script is picking an old version
> > of xcb-proto that is installed in `/usr/local' over the correct version
> > installed in `/usr'.
> 
> Yes, that's probably it, thanks for the look.
> 
> > I would recommend removing `/usr/local/share/xcb' and trying to install
> > libxcb again.
> 
> I mv'ed /usr/local/share but it didn't help.

emerge -C'd x*/* thing, and reemerged, didn't help.

Restarting the installation of gentoo from the very beginning helped.
Wasn't aware of that /usr/local could affect installing gentoo 
packages, havn't had that experience with binary distributions.
Well, case closed.

Regards,
/Karl Hammar

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





Re: [gentoo-user] Re: *dev-less gentoo

2016-01-19 Thread karl
James:
>   aspodata.se> writes:
> > > > I found a workaround in the sys-fs/static-dev package.
> 
> Interesting read :: bgo #107875

I'm new to gentoo, is there some special semantic to the "bgo #" ?

> > > Let's be clear: static-dev is NOT a workaround. It is a full proper
> > > solution for the case when a dynamic device node solution is not 
> > > desired.
> Well, I can think of embedded (linux) systems, a lock-down server and
> machine(s) loaded up with (NFV) Network Function Virtuals, as prime examples
> where a static dev is very useful; albeit a management pain if one is not
> careful. This is a very interesting topic for me.

I have had no pain useing an old plain /dev. What's the pain ?

> > > Of course it means you have to mknod every device you need yourself. But
> > > you know that going in right?
> 
> > Yes (though I alreade have a /dev from before).
> 
> For explicit clarity, you've got a "/dev" from using dev-manager on the
> system previously, and now you desire to switch to a static-dev? (Why ?)
>  Or did you derive from scratch (or other means) a '/dev' for a specific
> need you are working on by design, historical example etc?

No, I never used udev et al on my boxes, there has simply been no need.

> I apologize in advance, but this thread intersects some critical new
> thinking on systems cluster formation. I have ran into a small group of
> extraordinary coders that are building a Hi Performance Cluster out of C,
> Rust and a minimized static-dev.  So I am very curious as to your specific
> and detailed motives for this 'static-dev'. If a private note is warranted,
> feel encourage for that type of response. If this unbounded curiosity of
> mine is unwelcome, you have my deepest apologies.

I never had any compelling reason to let some daemon with mess with
/dev. And I have had a compelling reason to avoid it, when doing an
"usual" stable dist-upgrade of Debian lenny to squeze (I think), Debian
installed udev per default and everything just stopped working. And
that darn thing wouldn't uninstall and /dev wouldn't unmount to get
back my /dev-entries. So udev have only giving me pain and no gain.
The only thing dynamic theese days are usb. Usb disks I can handle
manually, usb kbd/mouse has always worked. I usually don't use more
than one keyboard so I don't really need xkb, nor do I need something
to autodetect keyboard layout, since I change it to something else 
anyhow. And udev woun't detect my serial mouse anyhow... so much for
that.

That said, if I would like to test some "dev-manager" (except myself)
than I'd look into something that behaves nicely, like mdev (busybox)
or vdev (https://github.com/jcnelson/vdev.git).

Regards,
/Karl Hammar

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





Re: [gentoo-user] compressing pdf file

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

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

Regards,
/Karl Hammar

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





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

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

 No such file or directory

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

Also tried removing all USE flags, same result.

Regards,
/Karl Hammar

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



gnutls.tgz
Description: gnutls.tgz


Re: [gentoo-user] multi-region OCR

2016-11-29 Thread karl
Michael Mol:
...
> xsane would have let me do it during the scan process if I'd thought of it 
> then, but the scans are done, drives aren't there any more. Something 
...

If xsane solves your need why don't you just print your scans so xsane 
can do its job ?

Regards,
/Karl Hammar

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





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

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

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

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

Regards,
/Karl Hammar

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





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

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

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

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

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

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

Regards,
/Karl Hammar

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





Re: [gentoo-user] Diskless nodes

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

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

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

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

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

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

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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





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

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

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

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

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

Regards,
/Karl Hammar

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





[gentoo-user] How do I install slotted guile

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

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

but not both

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

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

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

///

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

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

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

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

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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





[gentoo-user] Perl, PERL_IMPLICIT_CONTEXT

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

Regards,
/Karl Hammar

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





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

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

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

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


And regarding detox -v, why not use tr

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

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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

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





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

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

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

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

(I have PORTAGE_TMPDIR=/Net/portage)

Regards,
/Karl Hammar

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

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

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

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

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

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

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

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

Regards,
/Karl Hammar

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





[gentoo-user] file conflict: libomp and xkaapi

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

both have the file

 /usr/include/omp.h

Is there any way I can work around that problem ?

Regards,
/Karl Hammar

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





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

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

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

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

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

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

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

Regards,
/Karl Hammar

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





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

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

The error went away by doing:

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

emerge @world

Regards,
/Karl Hammar

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





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

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

Same:

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

Regards,
/Karl Hammar

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





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

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

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

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

Yes.

Regards,
/Karl Hammar

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





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

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

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

So why isn't it found ?

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar

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





[gentoo-user] emerging older compilers

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

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

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

Regards,
/Karl Hammar

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





Re: [gentoo-user] emerging older compilers

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

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

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

But I don't have thoose ebuilds:

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

so that means I'm on my own.

Regards,
/Karl Hammar

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





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

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

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

Regards,
/Karl Hammar




[gentoo-user] Unable to unshare: EINVAL

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

Does anybody know what that is about ?

Regards,
/Karl Hammar






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

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

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

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

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

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

You can get pin status with
 statserial /dev/ttyS9

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

Regards,
/Karl Hammar




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

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

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

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

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

Regards,
/Karl Hammar




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

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

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

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

Regards,
/Karl Hammar

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





Re: [gentoo-user] emerging older compilers

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

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

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

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

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

Regards,
/Karl Hammar




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

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

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

Have it something with sandboxing to do ?

How do I go arond this ?

Regards,
/Karl Hammar




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

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

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

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

Regards,
/Karl Hammar




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

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

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

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

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

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

Regards,
/Karl Hammar





[gentoo-user] Problems with /dev/parport0

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

///

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

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

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

open() and close() works without errors.

How can I make it functional ?

///

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

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

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

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

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

Regards,
/Karl Hammar




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

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

Thank you for responding.

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

Only as a module.

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

modprobe parport_serial

Which loads parport and parport_pc which it depends on.

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

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

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

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

Regards,
/Karl Hammar





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

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

That won't change the end result.

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

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

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

Thoose files looks fine, no problem there.

Regards,
/Karl Hammar




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

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

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

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

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

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

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

///

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

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

Regards,
/Karl Hammar




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

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

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

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

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

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

 O2 doesn't work either.

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

Regards,
/Karl Hammar




Re: [gentoo-user] Encfs and mlocate

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

I do like this:

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

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

Works without problem here.

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

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

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

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

Regards,
/Karl Hammar





[gentoo-user] octave won't run

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

Anyone know what this is about ?

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

Regards,
/Karl Hammar





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

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

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

and after rebuilding lapack with eselect-ldso

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

still same problem.

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

Regards,
/Karl Hammar




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

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

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

Regards,
/Karl Hammar




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

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

Yes, that short term solution works.

Regards,
/Karl Hammar




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

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

 The refrence one isn't installed:

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

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

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

Regards,
/Karl Hammar




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

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

 Where can I find that header file ?

Regards,
/Karl Hammar





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

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

 Thanks for the tip.

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

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

Is there anyone who knows ?

Regards,
/Karl Hammar




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

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

Great, that did the trick, thanks.

Regards,
/Karl Hammar




[gentoo-user] qt4

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

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

Regards,
/Karl Hammar





Re: [gentoo-user] qt4

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

Ok, so there is hope.

I get (build_xxx.log):

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

  The following configuration files were considered but not accepted:

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



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


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

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

Regards,
/Karl Hammar




[gentoo-user] 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] 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-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-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 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-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] 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] 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] 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] [SOLVED] glabels not showing GNU Barcode

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

Great!

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





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




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





[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





[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





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





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




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

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

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

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

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

Regards,
/Karl Hammar





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

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

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

Regards,
/Karl Hammar




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

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

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

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

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

Ack.

Regards,
/Karl Hammar





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

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

Sorry, I mistyped, it should be: Peter Humphrey

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

Regards,
/Karl Hammar




  1   2   >