[gentoo-user] Gaming on gentoo

2022-12-12 Thread Alan Ianson
Hello list,

I am a gentoo newbie. I have installed gentoo about a month ago and have been 
busy since in my free time getting it up and running.

I have a problem with quakespasm, it segfaults on startup.. this is what I get..

alan@irondust:/usr/share/games/quake$ quakespasm
Command line: quakespasm
Found SDL version 2.24.2
Detected 2 CPUs.
Initializing QuakeSpasm v0.95.1
Host_Init
Playing registered version.
Console initialized.
UDP Initialized
Server using protocol 666 (FitzQuake)
Exe: 20:46:02 Dec 12 2022
256.0 megabyte heap
Video mode 1920x1080x24 60Hz (24-bit z-buffer, 0x FSAA) initialized
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce GT 610/PCIe/SSE2
GL_VERSION: 4.6.0 NVIDIA 390.157
FOUND: ARB_vertex_buffer_object
FOUND: ARB_multitexture
GL_MAX_TEXTURE_UNITS: 4
FOUND: ARB_texture_env_combine
FOUND: ARB_texture_env_add
FOUND: SDL_GL_SetSwapInterval
FOUND: EXT_texture_filter_anisotropic
FOUND: ARB_texture_non_power_of_two
FOUND: GLSL
FOUND: glGenerateMipmap

Sound Initialization
Segmentation fault
alan@irondust:/usr/share/games/quake$ 

I get the above with version 0.95.1 (installed from guru using the git version) 
and from 0.94.1 also from guru.

I am not sure why it segfaults or what I can do about that. I have built it 
with sdl and sdl2 and I get the same result.

I have run quakespasm on other distributions like debian, archlinux and 
slackware without issues so there may be something different about gentoo that 
I need to know about.

Any thoughts or ideas about how to get this working would be appreciated.



Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch.

2022-12-12 Thread Peter Humphrey
On Monday, 12 December 2022 18:23:28 GMT Alan Mackenzie wrote:

> Here is the latest version of my soft scrolling patch for the gentoo
> kernel version 5.15.80.  It will surely work on any reasonably recent
> kernel version, and also on future versions.  The new version doesn't
> add any new functionality, it just patches the kernel giving rise to
> fewer messages from the patch utility.

You've done it again! What a fine effort. It's saved me much wailing and 
gnashing of teeth.

Is there any chance of enabling gpm to work with it? That would save yet more 
generations of tooth enamel.  :)

Seriously, though, it's just wonderful as it is, and we all owe you a debt.

-- 
Regards,
Peter.






Re: [gentoo-user] NAS and replacing with larger drives

2022-12-12 Thread Dale
Mark Knecht wrote:
>
>
> On Sun, Dec 11, 2022 at 6:55 PM Dale  > wrote:
> >
> > Dale wrote:
> > >
> > > Interesting info.  Since this is a duplicate copy already, I'm not to
> > > worried about RAID stuff.  I'd rather have two separate backups
> myself.
> > > Store them in different places for even more safety.  Still, one of
> > > these days.  ;-)
> > >
> > > I'm still getting this error.
> > >
> > > root@fireball ~ # mkdir /mnt/Backup/Videos
> > > mkdir: cannot create directory ‘/mnt/Backup/Videos’: Permission denied
> > > root@fireball ~ #
> > >
> > > I've tried every permission in every place I can find.  I have a user
> > > set up, set permissions under storage and pools, all the little
> > > directory thingys under it too.  It mounts so I'd think I got
> everything
> > > set up correctly in the Share section.  I actually followed a
> guide and
> > > I don't think I missed anything.  Still, I can't write anything to the
> > > thing.  It mounts fine, even shows it is mounted rw.  I can't find
> > > anything wrong on the puter or NAS ends.  This reminds me of the last
> > > time I played with BSD.  It works so different, it just throws a
> person
> > > upside down and shakes them.
> > >
> > > I did switch to TrueNAS tho.  Thing is, I got the same result from
> both,
> > > exact same error.  Can't be a bug.  It has to be me.  No idea what I
> > > missed but I bet I did.  lol  Just gonna keep banging on it.  :-D
>  I do
> > > like the GUI part.  That's pretty neat.
> > >
> > > Dale
> > >
> > > :-) :-)
> > >
> >
> >
> > Update.  I thought about just using Dolphin to play with the directory
> > that's actually on the NAS.  I could create folders and files just fine
> > with Dolphin.  Well, isn't that interesting.  Finally I found a comment
> > with google that gave me a clue.  I needed to change the options I use
> > with rsync plus it appears on my computer, I need to su to dale, same
> > user as on NAS.  Now it works.  I can rsync my files over.
> >
> > Then I noticed something else.  The network card in the NAS box, it's a
> > old 100MB card.  Has anyone ever poured cold molasses before?  Does
> > waiting on leap year sound familiar?  ROFL  Just saying.
> >
> > Hey, at least I got the silly thing to work, slowly, but works.  :/
> >
> > Dale
> >
> > :-)  :-)
>
> Congrats on making progress.
>
> Is this still FreeNAS or did you switch to TrueNAS Core?
>
> Yeah, 100Mb/S, or say 12MB/S takes days to move 
> multiple Terrabytes. I did it inside of a screen session so that
> I could disconnect and leave it running in the background
> without having to watch cold molasses flow. I'm looking
> to upgrade everything to 2.5Gb/S or higher one of these 
> days but once the initial backup is done regular backups
> are reasonably fast.
>
> I was disappointed in the info Frank found about not being
> able to bond Pools, but it still makes me wonder if someone
> could create a 14TB RAID0 outside of the pool and then bond 
> that RAID0 with a 14TB drive to make a 14TB ZFS RAID1. 
>
> Not looking to do it myself though... ;-)
>
> - Mark

Well, when I ran into the permission problem, I was going to start over
anyway.  Figured if I was going to start over, may as well switch to
TrueNAS while at it.  So, I switched.  I only used FreeNAS because it
was the first one I found.  It was put on the USB stick ages ago. I'm
keeping a eye out for a small hard drive, 250GB or something to use as
the OS drive in the NAS.  I've read it wears out USB sticks pretty fast. 

At first, I couldn't get both drives to add at the same time.  To work
around that, I set up a pool with one drive.  I then went back and added
the second drive.  Then it was both drives added together, like I do in
LVM.  Then I did the file system thing, dataset I think they call it??? 

After a while, I shutdown the NAS.  I got on Ebay and ordered a 1GB
network card.  Everything I have is 1GB so no need getting anything
faster.  It should be a lot faster and may be about all the NAS rig can
handle anyway.

I haven't figured out how to encrypt it yet tho.  I need to research that. 

Still, progress.

Dale

:-)  :-) 


Re: [gentoo-user] NAS and replacing with larger drives

2022-12-12 Thread Mark Knecht
On Sun, Dec 11, 2022 at 6:55 PM Dale  wrote:
>
> Dale wrote:
> >
> > Interesting info.  Since this is a duplicate copy already, I'm not to
> > worried about RAID stuff.  I'd rather have two separate backups myself.
> > Store them in different places for even more safety.  Still, one of
> > these days.  ;-)
> >
> > I'm still getting this error.
> >
> > root@fireball ~ # mkdir /mnt/Backup/Videos
> > mkdir: cannot create directory ‘/mnt/Backup/Videos’: Permission denied
> > root@fireball ~ #
> >
> > I've tried every permission in every place I can find.  I have a user
> > set up, set permissions under storage and pools, all the little
> > directory thingys under it too.  It mounts so I'd think I got everything
> > set up correctly in the Share section.  I actually followed a guide and
> > I don't think I missed anything.  Still, I can't write anything to the
> > thing.  It mounts fine, even shows it is mounted rw.  I can't find
> > anything wrong on the puter or NAS ends.  This reminds me of the last
> > time I played with BSD.  It works so different, it just throws a person
> > upside down and shakes them.
> >
> > I did switch to TrueNAS tho.  Thing is, I got the same result from both,
> > exact same error.  Can't be a bug.  It has to be me.  No idea what I
> > missed but I bet I did.  lol  Just gonna keep banging on it.  :-D  I do
> > like the GUI part.  That's pretty neat.
> >
> > Dale
> >
> > :-) :-)
> >
>
>
> Update.  I thought about just using Dolphin to play with the directory
> that's actually on the NAS.  I could create folders and files just fine
> with Dolphin.  Well, isn't that interesting.  Finally I found a comment
> with google that gave me a clue.  I needed to change the options I use
> with rsync plus it appears on my computer, I need to su to dale, same
> user as on NAS.  Now it works.  I can rsync my files over.
>
> Then I noticed something else.  The network card in the NAS box, it's a
> old 100MB card.  Has anyone ever poured cold molasses before?  Does
> waiting on leap year sound familiar?  ROFL  Just saying.
>
> Hey, at least I got the silly thing to work, slowly, but works.  :/
>
> Dale
>
> :-)  :-)

Congrats on making progress.

Is this still FreeNAS or did you switch to TrueNAS Core?

Yeah, 100Mb/S, or say 12MB/S takes days to move
multiple Terrabytes. I did it inside of a screen session so that
I could disconnect and leave it running in the background
without having to watch cold molasses flow. I'm looking
to upgrade everything to 2.5Gb/S or higher one of these
days but once the initial backup is done regular backups
are reasonably fast.

I was disappointed in the info Frank found about not being
able to bond Pools, but it still makes me wonder if someone
could create a 14TB RAID0 outside of the pool and then bond
that RAID0 with a 14TB drive to make a 14TB ZFS RAID1.

Not looking to do it myself though... ;-)

- Mark


Re: [gentoo-user] media-libs/babl-0.1.96-r1 compile dies during emerge @world

2022-12-12 Thread Walter Dnes
On Mon, Dec 12, 2022 at 08:49:12AM +, Michael wrote
> 
> I don't know about the UTF8 error and if it is related to your failure, but 
> since it complains about the vala compiler, it may be worth rebuilding it 
> first?  
> 
> emerge -1aDv dev-lang/vala

  It still dies on the media-libs/babl-0.1.96-r1 build.  The only change
is that launching "emerge --changed-use --deep --update @world" says 11
items to build, rather than 10.

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.



Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch.

2022-12-12 Thread Alan Mackenzie
Hello, Mike.

On Mon, Dec 12, 2022 at 19:29:43 +, Mike Civil wrote:
> Many thanks for this.

> I can confirm that it patches, compiles and works on 6.1 :)

Thanks for the testing!  6.1 _is_ up to date.  :-)

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch.

2022-12-12 Thread Mike Civil

Many thanks for this.

I can confirm that it patches, compiles and works on 6.1 :)





Re: [gentoo-user] Soft scrolling on framebuffer consoles - New version of the patch.

2022-12-12 Thread Alan Mackenzie
Hello, Gentoo.

Here is the latest version of my soft scrolling patch for the gentoo
kernel version 5.15.80.  It will surely work on any reasonably recent
kernel version, and also on future versions.  The new version doesn't
add any new functionality, it just patches the kernel giving rise to
fewer messages from the patch utility.

The purpose of the patch is to enable you to scroll a linux console text
display up and down by half a screen by typing  and
.

To use this patch, proceed thusly:

(i) cd /usr/src/linux-5.15.80, or similar.  Get the attached patch file,
  5.15.80-scroll-20221212.diff into this directory.
(ii) patch -p1 < 5.15.80-scroll-20221212.diff.
(iii) Configure the kernel in your usual way.  The extra items added by
  the patch are CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK and
  CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK_SIZE, to be found in make
  menuconfig under Device Drivers/Graphic Support/Console display driver
  support.  The help items for these should explain them adequately.
(iv) Build the kernel.
(v) Put the new kernel into your usual boot manager.
(vi) Reboot and enjoy!

As far as I know this patch should be safe (apart from the mysterious
alleged security problem which caused the soft scrolling to be removed
from the kernel in the first place).  There is certainly nothing
malicious in it.  But if it does break anything for you, you get to keep
the pieces.  But if anything does go wrong, please tell me about it
(preferably here on the list, but by private email if you'd prefer), so
that I can try and fix it.

-- 
Alan Mackenzie (Nuremberg, Germany).

* Unmerged path .config
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index b8f5bc19416d..d7aadca5107d 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -134,6 +134,11 @@ const struct consw *conswitchp;
 #define DEFAULT_BELL_DURATION  (HZ/8)
 #define DEFAULT_CURSOR_BLINK_MS200
 
+#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK
+static unsigned int console_soft_scrollback_size =
+   1024 * CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK_SIZE;
+#endif
+
 struct vc vc_cons [MAX_NR_CONSOLES];
 
 #ifndef VT_SINGLE_DRIVER
@@ -287,7 +292,7 @@ static inline unsigned short *screenpos(const struct 
vc_data *vc, int offset,
bool viewed)
 {
unsigned short *p;
-   
+
if (!viewed)
p = (unsigned short *)(vc->vc_origin + offset);
else if (!vc->vc_sw->con_screen_pos)
@@ -616,6 +621,218 @@ static void vc_uniscr_debug_check(struct vc_data *vc)
}
 }
 
+#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK
+static void con_update_softback(struct vc_data *vc)
+{
+   int l = vc->vc_softback_size / vc->vc_size_row;
+   if (l > 5)
+   {
+   vc->vc_softback_end = vc->vc_softback_buf + l * vc->vc_size_row;
+   vc->vc_softback_top = vc->vc_softback_buf;
+   }
+   else
+   /* Smaller scrollback makes no sense, and 0 would screw
+  the operation totally */
+   vc->vc_softback_top = 0;
+}
+
+static int concon_set_origin(struct vc_data *vc)
+{
+   if (vc->vc_softback_lines)
+   concon_scrolldelta(vc, vc->vc_softback_lines);
+   return 0;
+}
+
+#define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) 
* vc->vc_size_row)
+
+static void con_redraw_softback(struct vc_data *vc, /* struct display *p, */
+   long delta)
+{
+   int count = vc->vc_rows;
+   unsigned short *d, *s;
+   unsigned long n;
+   int line = 0;
+
+   if (!vc->vc_softback_lines)
+   vc->vc_char_at_pos = scr_readw((u16 *)vc->vc_pos);
+
+   d = (u16 *) vc->vc_softback_curr;
+   if (d == (u16 *) vc->vc_softback_in)
+   d = (u16 *) vc->vc_origin;
+   n = vc->vc_softback_curr + delta * vc->vc_size_row;
+   vc->vc_softback_lines -= delta;
+   if (delta < 0) {
+   if (vc->vc_softback_curr < vc->vc_softback_top
+   && n < vc->vc_softback_buf) {
+   n += vc->vc_softback_end - vc->vc_softback_buf;
+   if (n < vc->vc_softback_top) {
+   vc->vc_softback_lines -=
+   (vc->vc_softback_top - n) / vc->vc_size_row;
+   n = vc->vc_softback_top;
+   }
+   } else if (vc->vc_softback_curr >= vc->vc_softback_top
+  && n < vc->vc_softback_top) {
+   vc->vc_softback_lines -=
+   (vc->vc_softback_top - n) / vc->vc_size_row;
+   n = vc->vc_softback_top;
+   }
+   } else {
+   if (vc->vc_softback_curr > vc->vc_softback_in
+

Re: [gentoo-user] media-libs/babl-0.1.96-r1 compile dies during emerge @world

2022-12-12 Thread Michael
On Monday, 12 December 2022 08:29:50 GMT Walter Dnes wrote:
> On Mon, Dec 12, 2022 at 09:00:42AM +0100, netfab wrote
> 
> > Le 12/12/22 à 07:30, Walter Dnes a tapoté :
> > >   I don't think they should make any difference, but included for
> > > 
> > > completeness.  File-attached is the gzipped build log...
> > > 
> > > (vapigen-0.56:375): GLib-CRITICAL **: 00:58:53.271: PCRE library is
> > > compiled without UTF8 support
> > 
> > You should try to first upgrade/rebuild the dev-libs/glib package.
> > 
> > https://bugs.gentoo.org/883877
> 
>   No change.  dev-libs/glib-2.74.1-r1:2::gentoo was a straight rebuild;
> no upgrade; no USE-flag changes; and the babl compile still dies.  What
> is the "GLib-CRITICAL" bit about PCRE with no UTF8 support?

I don't know about the UTF8 error and if it is related to your failure, but 
since it complains about the vala compiler, it may be worth rebuilding it 
first?  

emerge -1aDv dev-lang/vala


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


Re: [gentoo-user] media-libs/babl-0.1.96-r1 compile dies during emerge @world

2022-12-12 Thread Walter Dnes
On Mon, Dec 12, 2022 at 09:00:42AM +0100, netfab wrote
> Le 12/12/22 à 07:30, Walter Dnes a tapoté :
> >   I don't think they should make any difference, but included for
> > completeness.  File-attached is the gzipped build log...
> 
> > (vapigen-0.56:375): GLib-CRITICAL **: 00:58:53.271: PCRE library is
> > compiled without UTF8 support
> 
> You should try to first upgrade/rebuild the dev-libs/glib package.
> 
> https://bugs.gentoo.org/883877

  No change.  dev-libs/glib-2.74.1-r1:2::gentoo was a straight rebuild;
no upgrade; no USE-flag changes; and the babl compile still dies.  What
is the "GLib-CRITICAL" bit about PCRE with no UTF8 support?

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.



Re: [gentoo-user] media-libs/babl-0.1.96-r1 compile dies during emerge @world

2022-12-12 Thread netfab
Le 12/12/22 à 07:30, Walter Dnes a tapoté :
>   I don't think they should make any difference, but included for
> completeness.  File-attached is the gzipped build log...

> (vapigen-0.56:375): GLib-CRITICAL **: 00:58:53.271: PCRE library is
> compiled without UTF8 support

You should try to first upgrade/rebuild the dev-libs/glib package.

https://bugs.gentoo.org/883877