Re: i386 - 10.0 gecko browsers

2024-05-07 Thread Benny Siegert
According to the latest bulk build data
(https://releng.netbsd.org/bulktracker/build/724/www/), Firefox 123
failed to build, Firefox 115 also failed to build but Firefox 102 was
OK. So in principle, there should be a firefox102 package.

The firefox115 and firefox error is the same:

/pbulk/work/www/firefox115/work/build/dist/include/js/Utility.h:482:20:
error: static assertion failed: over-aligned type is not supported by
JS_DECLARE_NEW_METHODS
  482 | alignof(T) <= alignof(max_align_t),
 \
  | ~~~^~~
/pbulk/work/www/firefox115/work/firefox-115.10.0/js/src/vm/MallocProvider.h:234:3:
note: in expansion of macro 'JS_DECLARE_NEW_METHODS'
  234 |   JS_DECLARE_NEW_METHODS(new_, pod_malloc, MOZ_ALWAYS_INLINE)
  |   ^~

For Seamonkey, there is also a failed assertion in the build log:

In file included from
/pbulk/work/www/seamonkey/work/build/ipc/chromium/Unified_cpp_ipc_chromium0.cpp:110:
/pbulk/work/www/seamonkey/work/seamonkey-2.53.16/ipc/chromium/src/base/message_pump_libevent.cc:
At global scope:
/pbulk/work/www/seamonkey/work/seamonkey-2.53.16/ipc/chromium/src/base/message_pump_libevent.cc:31:40:
error: static assertion failed: bad EVENT__SIZEOF_TIME_T
   31 | static_assert(EVENT__SIZEOF_##TYPE == sizeof(type), \
/pbulk/work/www/seamonkey/work/seamonkey-2.53.16/ipc/chromium/src/base/message_pump_libevent.cc:43:1:
note: in expansion of macro 'CHECK_EVENT_SIZEOF'
   43 | CHECK_EVENT_SIZEOF(TIME_T,time_t);
  | ^~

I don't know how to fix these, but maybe firefox102 works for you?

-- 
Benny

On Tue, May 7, 2024 at 1:14 AM Riccardo Mottola
 wrote:
>
> Hi,
>
> no firefox and seamonkey as binbary packages for pkgin?
>
> Is there any failure reason? At least seamonkey sure runs on 32bit and
> on Linux Firefox does too...
>
> Riccardo



-- 
Benny


Re: OAUTH TOTP

2024-04-29 Thread Benny Siegert

Am 29.04.24 um 19:04 schrieb Patrick Welche:

Apparently I need to "purchase an inexpensive OATH TOTP compatible
token device."

$ wtf oath
wtf: I don't know what `oath' means!


That's because it's OAuth, not oath :)
https://datatracker.ietf.org/doc/html/rfc6749


$ wtf totp
TOTP: time-based one time password


The cheapest way to have TOTP is to install Google Authenticator on your 
phone.


Hopefully, you can use proper Security Keys too (WebAuthn and whatnot), 
in which case I highly recommend a Yubikey.


--
Benny



Re: nice program to make sound

2024-04-23 Thread Benny Siegert
mpg123, or its successor (?) mpg321. There is also mp3blaster if you are 
looking for a TUI with playlists.

-- 
Benny

> Am 23.04.2024 um 19:02 schrieb Todd Gruhn :
> 
> I did:
> 
>  vlc file:///file.mp3 --play-and-exit
> 
> I works -- but I dont want the GUI on the screen.
> 
> Is there another program to do this?


Re: Please forgive a blatant plug: I reviewed v10 for the Reg

2024-04-18 Thread Benny Siegert
On Thu, Apr 18, 2024 at 1:01 PM Liam Proven  wrote:
> NetBSD 10 proves old tech can still kick apps and take names three decades 
> later
>
> Proper old-school Unix, not like those lazy, decadent Linux types
>
> https://www.theregister.com/2024/04/17/30yo_netbsd_releases_v10/
>
> Comments and feedback welcomed!

Wonderful article, thanks for sharing! :D

-- 
Benny


Re: unattended install

2024-04-17 Thread Benny Siegert
You can use Anita (https://github.com/gson1703/anita) for this. I use
this in https://github.com/google/netbsd-gce for creating VM images
for Google Cloud Platform.

-- 
Benny

On Wed, Apr 17, 2024 at 3:26 PM Enrico Weigelt, metux IT consult
 wrote:
>
> Hello folks,
>
> is there any way of unattended installation (eg. from the ISO) ?
>
> Rationale: I need to create VM images by a build pipeline (on kvm).
>
>
>
> thx
> --mtx
>
> --
> ---
> Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
> werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
> GPG/PGP-Schlüssel zu.
> ---
> Enrico Weigelt, metux IT consult
> Free software and Linux embedded engineering
> i...@metux.net -- +49-151-27565287
>


-- 
Benny


Re: NetBSD 10 and framebuffer consoles setup vs 9.3 (font, multiple...)

2024-04-11 Thread Benny Siegert
> does it have consequences to change constty to ttyE0? loosing "console"
> status?

In practice, no, unless you change to serial console in the
bootloader. I do that on all my systems.


-- 
Benny


Re: pkg_add and pkgin install taking extremely long

2024-03-25 Thread Benny Siegert

Am 25.03.24 um 17:40 schrieb Enrico Weigelt, metux IT consult:

I'm currently in process of setting up an CI build process for Xorg
on NetBSD (inside Qemu), but encountering really long delays in package
installations.

A simple `pkg_add pkgin` runs for over a quarter hour, and pkgin install
call took another half an hour, until it recognized a wrong parameter:


I have experience with a similar setup, from setting up the NetBSD CI 
images for the Go project.


Your timing is similar to what I had in some early tests. That said, 
have you measured what is the slow part? I bet it's the network, not 
specifically pkgin.


I don't see timing information in the CI log -- you could wrap the pkgin 
calls with "time", or print timestamps before each command.


Maybe you need to change something in the networking setup on the qemu 
side to get more throughput? There is no dmesg output in the log, so I 
would check if the network uses vioif, or an emulated interface.


--
Benny


Re: How can one add a comment to a wiki page?

2024-03-24 Thread Benny Siegert



>> Any help?
> 
> Well, I'll just avoid the wiki in the future, this experience has shown
> me that it is not reliable. As I said in other thread, no documentation
> is better that wrong documentation.

No need to be so bitter!

IIRC, account creation on the web is disabled because of spam. As a NetBSD 
developer, you automatically have an account. I don't know if it is possible to 
get an account as a non-developer. I added spz@ because she should know :)

-- 
Benny

Re: PKGSRC-Changes

2024-03-22 Thread Benny Siegert
On Fri, Mar 22, 2024 at 4:37 PM Justin Parrott
 wrote:
>
> I am interested in the details of pkgsrc changes, sir.
>
> I disagree with listing every commit.
>
> Generally I disagree with automated Email.

Again, then you should not subscribe to this mailing list.

You could look at CHANGES-2024 instead. It is an abridged list of
changes in chronological order.

-- 
Benny


Re: NetBSD vs. smartphones?

2024-03-21 Thread Benny Siegert
Not if the toaster also runs NetBSD.

On Thu, Mar 21, 2024 at 5:52 PM Todd Gruhn  wrote:
>
> Make the smartphone "smarter".
> But NetBSD on it.
>
> Will the phone be smarter than a toaster ?
>
> On Thu, Mar 21, 2024 at 2:38 PM Justin Parrott
>  wrote:
> >
> > FTP+BlueTooth
> >
> > On Thu, Mar 21, 2024 at 8:21 AM nia  wrote:
> >>
> >> On Tue, Mar 19, 2024 at 09:11:22AM -0500, John D. Baker wrote:
> >> > Without divulging information that might make my (or others) phone open 
> >> > to
> >> > compromise, has anyone else dealt with a  situation like this?
> >>
> >> Unfortunately I've determined that syncthing is the easiest way to get
> >> files on and off a modern smartphone. MTP ain't it.
> >
> >
> >
> > --
> > Justin Allen Parrott
> > The Renegade of Fairfax, Va.
> > The Son of the Mourning
> >



-- 
Benny


Re: Raspberry Pi Zero W almost useless

2024-01-25 Thread Benny Siegert
On Thu, Jan 25, 2024 at 11:06 AM Ramiro Aceves  wrote:
> I see that WIFI bwfm driver works the same as bad as in 10.0_RC1. I
> have read that WIFI drivers are not very stable but I do not know
> whether what I am experiencing is normal or not.

I never had any luck with bwfm Wi-Fi on NetBSD, unfortunately. The
PineBook Pro is just the same. I bought a cheap USB Wi-Fi to use
instead, and that works well.

The symptom I get with bwfm is: either it stops receiving data after a
while, or the system locks up hard. Not great.

-- 
Benny


Re: How to render Groff / troff output directly on the terminal

2024-01-15 Thread Benny Siegert



> I am experimenting with groff and troff on NetBSD. I am able to
> generate a postscript file and view it with the following commands
> 
> groff -ms -Tps test.ms > test.ps
> gs test.ps
> 
> Is there a way to render groff / troff's output directly to the
> terminal similar to the way man outputs to the terminal?

man does the equivalent of

groff -Tascii -mandoc input | less

If you see ANSI sequences in the text, you may need less -r.

-- 
Benny


Re: How big should wd0e (/var) be

2023-12-14 Thread Benny Siegert
On Wed, Dec 13, 2023 at 3:52 AM  wrote:
> p.s. NetBSD does have ZFS, but I haven't tried it, and I seem to recall
> some discussion of stability issues.

I have been using it for a few years, never had any stability issues.
However, root on ZFS remains a bit challenging IIRC. I put ZFS on /usr
instead, which requires having a minimal /usr that is used during
boot.

The one issue I had was that I used numbered dk devices for the pool,
and the numbers ended up changing at some point, which broke the ZFS
mount.

-- 
Benny


Re: How big should wd0e (/var) be

2023-12-11 Thread Benny Siegert
The correct size is "not on its own partition". Why not have /var
along with / on the same filesystem?

-- 
Benny

On Mon, Dec 11, 2023 at 3:31 PM Todd Gruhn  wrote:
>
> My /var is currently 32MB ...
>
> I keep getting errors when I reboot system.
>
> Correct size for a personal system is what??



-- 
Benny


Re: How to add to an existing PR?

2023-11-30 Thread Benny Siegert
The trick is to post to gnats-bugs@ (IIRC) with a subject line like

Re: pkg/54321

This will turn into a PR update and be sent to all subscribers of the PR.

-- 
Benny

On Thu, Nov 30, 2023 at 2:27 PM  wrote:
>
> I may be dumb, but I don't find anywhere a way to _add_ to a PR...
>
> Do one have to send a mail to pr--@gnats.netbsd.org ?
>
> Or do we have to install pkgsrc databases/gnats but, in this case,
> what are the identifiers for the database (host:port) to be put
> in /usr/pkg/etc/gnats/databases---after modifying the permissions on
> the file since it is installed only readable by root?
>
> TIA for any tip,
> --
> Thierry Laronde 
>  http://www.kergis.com/
> http://kertex.kergis.com/
> Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C



-- 
Benny


Re: NetBSD 9.3 amd64 Intel Nuc 8i7BEH xorg problem

2023-10-11 Thread Benny Siegert
> Yes, that's the correct procedure, but, I've never tried an update like
> that using `sysupgrade'--I generally do a fresh install from scratch.

I have used this procedure recently (with 10_BETA), and it worked flawlessly.

> And, unless you're fine with compiling your applications from source, I
> would hold off on the upgrade until the binary packages for 10.x arrive:

Technically, you can also stop after the kernel upgrade, continue
using a 9.x userland, and use binary packages compiled for NetBSD-9.
The kernel must be the same version or newer than the userland, but
nothing says they need to be exact matches.

I did that for a while on a Pinebook Pro, to avoid having to build my
own packages.


-- 
Benny


Re: NetBSD-archive 503 Backend Unavailable

2023-08-29 Thread Benny Siegert
On Mon, Aug 28, 2023 at 7:16 PM Bradley Benson  wrote:
>
> Has anyone else noticed that https://archive.netbsd.org/ has been basically
> broken for days now? I can browse many of the directories but most of the
> file and a large portion of the directories all come back with an "Error 503
> Backend unavailable, connection timeout".

There was a response on another thread: the NetBSD archive server had
a corrupted file system. Restoration is ongoing.

-- 
Benny


Re: would anybody use binary packages for NetBSD/i386 10?

2023-08-13 Thread Benny Siegert
I would like to create NetBSD 10 based CI images for Go in the near future. 
Having binary packages for i386 makes this immensely easier.

-- 
Benny

> Am 13.08.2023 um 14:32 schrieb Greg Troxel :
> 
> In contemplating bulk builds and resources, I wonder if there are still
> people who:
> 
>  are running NetBSD/i386 (as opposed to amd64)
> 
>  are using the binary packges from quarterly branches on ftp.netbsd.org
> 
>  are running NetBSD 10 already, or who intend to move to it soon or
>  after release
> 
> If you have a system that meets the above, please either reply here (the
> first few people :-) or just answer me privately.  (I'd also be
> interested in which category below your use is.)
> 
> Basically, I would think about not doing bulk builds if very few want
> them, relative to the effort/resources required to create them.
> 
> 
> My guess is that at this point, i386 use is limited to
> 
>  a) old embedded-type systems (soekris)
>  b) systems that are running i386 because they were first installed many
> years ago and haven't been converted to amd64 for no good reason or
> for some odd special case odd reason
>  c) build systems to support category a/b systems, for testing or
> building private binary package sets
>  d) retrocomputing
> 
> and that the amount of use with ftp.n.o binary packages is extremely
> small.
> 
> As a personal example -- and I am somewhat trailing edge -- I know of
> two NetBSD/i386 systems in category b (one each no good reason and one
> special case odd reason), and 2 in category c.  I have one system that
> would be category a, replaced several years ago and powered off because
> it was underpowered, that I might or might not ever power up again, and
> if I did I wouldn't use ftp.n.o packages on it.
> 
> 


Re: Talking to an external CD

2023-07-24 Thread Benny Siegert


> port 3 addr 7: high speed, self powered, config 1, Mass Storage
> Device(0xa120), USB2.0 External(0x1c6b), rev 1.60(0x0160), serial
> 00101016404027C00

Part of the line, the actual device name, is missing. Most likely, you also 
have something like 

cd0 at 

You should be able to mount it with

mount_cd9660 /dev/cd0a /mnt

For playing audio, try cdplay on the command line.

For VLC, there was a trick. I think File > Open medium or something like that.

Benny

Re: Which ARM SBC would work well with NetBSD?

2023-03-05 Thread Benny Siegert
On Sun, Mar 5, 2023 at 8:53 AM Mayuresh  wrote:
>
> I am in need of an SBC - like the raspberry pi. Ethernet, analog speaker
> output and 2/3 USB ports (2.0 will do) is the requirement. RAM 1G should
> suffice. HDMI output only for configuration and setup. Wifi not required.
>
> I am using one each of RPI2,3,4 for different purposes, RPI2 running
> NetBSD and RPI3,4 running Raspbian.
>
> For a new requirement I can either use one of the RPI models or look for
> others like orange pi, nano pi, banana pi and so on - more out of
> curiosity.
>
> Feedback on any of the low cost SBC devices that you may be using
> successfully with NetBSD will be of great help. Please do share.

I highly recommend the Pine64 devices. I have an A64-LTS, which has
been rock-solid. The RockPro64 is the one with the highest
performance.

All of these are well-supported by NetBSD. I don't know how well
supported the newest generation is, notably the Quartz64.

-- 
Benny


Re: firefox resource hog

2023-01-09 Thread Benny Siegert
On Sun, Jan 8, 2023 at 12:16 PM Riccardo Mottola
 wrote:
> I too notice things are slower on NetBSD with Firefox and ArcticFox seems to 
> do better, so the hint that "threads" and "processes" might be an issue is a 
> hint.

I think this has something to do with the relative slowness of
synchronization primitives in NetBSD, which in turn has to do with the
HZ setting in the kernel. For instance (not directly related), every
time the Go runtime needs to to a short wait -- say, 100 ns -- it ends
up being a 5-10 ms wait. Because Go and Rust are a lot more
multi-threaded, they use these primitives a lot more.

All this to say: if you want faster Firefox, ultimately you need to
look into making Rust run faster on NetBSD.

The difference is obvious if you compile lang/rust on NetBSD vs. Linux
on the same machine.

-- 
Benny


Re: NetBSD basics.

2023-01-05 Thread Benny Siegert
On Thu, Jan 5, 2023 at 7:32 PM  wrote:
> * In Linux, systemd is contentious.  NetBSD appears to have init but
> not systemd. What's the situation in NetBSD?

The situation is very simple, in that there is no systemd.

However, this occasionally means trouble when porting some software
from Linux that assumes that systemd is present. IIRC, GNOME is one of
those.

> * Some systems allow choice of alternatives glibc and musl. What's the
> situation in NetBSD?

Neither. It comes with its own libc.

One important difference between any BSD operating system and Linux is
that the BSDs ship kernel, userland, libraries etc. as a single unit,
the "base system". Any additional apps are installed via ports,
packages or pkgsrc. So there is typically a single libc -- the one in
the base system -- and that's it.

You might find yourself enjoying this tighter integration of system
components :)

-- 
Benny


NetBSD on older Macbook Pro: Wi-Fi and trackpad

2022-12-22 Thread Benny Siegert

Hi!

Has anyone tried out NetBSD on an Intel Macbook Pro? I installed 9.3 on an 
external SSD on a 2012 model. It's running fairly well, just with two 
issues:


1. The integrated Wi-Fi is not recognized at all. Should there be a driver 
for it? I tried the first 10_BETA build but there was no difference.


2. Trackpad gestures do not work at all. Basic pointing and clicking is 
okay but no two-finger scroll and no right click.


Any tips?

--
Benny


Re: NetBSD and old nvidia laptop card / crash and unusable X11

2022-12-08 Thread Benny Siegert

Hi Riccardo,

On Thu, 8 Dec 2022, Riccardo Mottola wrote:

I have a fine and nice laptop which unfortunately has an older nvidia card. I 
updated to 9.3, but the same issue persist as older versions.


is it any better if you try booting a NetBSD-current snapshot?

--
Benny


Running a service on a console in the foreground

2022-11-20 Thread Benny Siegert

Hi!

Is it possible to have some program running in the foreground on one of 
the VTs on startup, instead of getty? I would like it to start up on boot 
and use the console for input and output. How do you set up such a thing, 
or is this simply not supported?


--
Benny


Re: btrsf

2022-10-19 Thread Benny Siegert
On Wed, Oct 19, 2022 at 1:55 PM Todd Gruhn  wrote:
>
> IS BTRFS in pkgsrc? Where?

It's a Linux thing. On NetBSD, there is ZFS, which does the same thing
except it doesn't lose your data :)


-- 
Benny


Re: Low power server ideas

2022-09-02 Thread Benny Siegert
> https://blog.netbsd.org/tnf/entry/making_rockpro64_a_netbsd_server
>
> Using a 128gig internal MMC would be plenty for OS and some local
> storage then I would add some other disks, possibly SSD.

The RockPro would also be my recommendation. Solid and very low power.


-- 
Benny


Re: Need with NetBSD-9.99.98

2022-06-25 Thread Benny Siegert
On Sat, Jun 25, 2022 at 7:10 PM Todd Gruhn  wrote:
> I get barfs about .X* and .xadr*. .

Could you paste the exact error messages please?

> But CTAM worts -- why?

What?


-- 
Benny


Call for Proposals: EuroBSDCon 2022

2022-04-04 Thread Benny Siegert

Hi all,

apologies if you are getting this message more than once. EuroBSDCon 2022 
CfP is now open, the conference is planned to be in person. Please 
consider submitting a talk proposal if you have something NetBSD-related 
to speak about.




The EuroBSDcon program committee is inviting BSD developers and users to submit
innovative and original talk proposals not previously presented at other
European conferences. Topics of interest to the conference include, but are not
limited to applications, architecture, implementation, performance and security
of BSD-based operating systems, as well as topics concerning the economic or
organizational aspects of BSD use. Presentations are expected to be 45 minutes
and are to be delivered in English.

EuroBSDCon is the European technical conference for users and developers of
BSD-based systems. The conference is scheduled to take place September 15-18,
2022 in Vienna, Austria. The tutorials will be held on Thursday and Friday to
registered participants and the talks are presented to conference attendees on
Saturday and Sunday.

The Call for Talk and Presentation proposals period will close on May 26th,
2022.  Prospective speakers will be notified of acceptance or otherwise by June
1st, 2022.

The EuroBSDcon program committee is also inviting qualified practitioners in
their field to submit proposals for half or full day tutorials on topics
relevant to development, implementation and use of BSD-based systems.

Half-day tutorials are expected to be 2.5 to 3 hours and full-day tutorials 5
to 6 hours. The tutorials and talks are to be held in English.

Submit your proposal through the registration system at
https://registration.eurobsdcon.org.

Proposals should contain a short and concise text description in about 100
words as well as a short speaker bio.

Accepted papers and presentations will be published on the conference web site
as soon as feasible during or after the conference. We encourage submitters to
consider writing up a formal paper for this purpose in addition to making a
presentation.

While we urge prospective speakers to seek funding from employers or other
benevolent sources, the conference does have a budget for covering reasonable
travel and accommodation expenses for speakers, with accommodation to the
extent possible provided at the primary speaker hotel (see the Accommodation
page on the conference website). Speakers who will be applying for travel
funding should also submit an estimate of expected travel expenses. Use the
‘Requirements’ field (follow the ‘Do you require something special?’ link).
Please see the Speaker Reimbursement Policy page at
https://eurobsdconfoundation.org/speaker-reimbursement-policy/ for details.

Please also note that due to visa issues in the past, we would like to know as
early as possible of any visa requirements for speakers. Please check the
Austrian Visa Application Requirements site at
https://www.schengenvisainfo.com/austria-visa/ for guidance.

--
Benny

Re: BorgBackup manpages

2022-01-21 Thread Benny Siegert
On Fri, Oct 1, 2021 at 8:22 PM Todd Gruhn  wrote:
> I just upgraded BorgBackup to 1.1.17. When I finished I executed "man
> -a borg". I
> got an error. I foung a mess of manpages  of the form borg*.1 .
> I checked /usr/pkg/man/man1 -- found no pages with the name borg*.1 .
> Were they installed? Is there a prob with the  Makefile in the
> ./pkgsrc/system/py-borgbackup
> dir?

They were indeed not installed before, but I just added this in
py-borgbackup-1.1.17nb4. Thanks for the report!

-- 
Benny


solved (was: Re: UEFI dual-boot with Windows)

2022-01-01 Thread Benny Siegert

On Thu, 30 Dec 2021, Pedro Pinho wrote:


Not adding anything here but, this is something users ask everynow and then on 
different forums.
It would be awesome if the wiki contained a guide on how to set-up a dualboot, 
Windows/NetBSD and
Linux/NetBSD. Including seting up rEFInd would be the icing on the cake.


As an update to my initial post, I now made this work. The trick was to 
use a bootx64.efi from NetBSD-current, which looks much improved from the 
one shipped in -9. Notably, the kernel boots with a low-resolution 
graphical console and switches to the proper console font and resolution a 
bit later.


This how the setup works:

My root partition on the second SSD is a GPT part named "shiso-root" 
(shiso is the host name).


I installed rEFInd according to the "Installing from Windows" section in 
its docs. Then, I copied /usr/mdec/bootx64.efi from an extracted base.tgz 
to \EFI\NetBSD\bootx64.efi on the EFI system partition. In the root 
directory of that partition, I placed the kernel (which ended up not being 
necessary) and a boot.cfg file.


The sequence of commands to boot is

root NAME=shiso-root
boot NAME=shiso-root:/netbsd

The rEFInd boot menu is graphical and nicer than manually hitting the key 
for selecting the boot device at the right point :)


--
Benny


UEFI dual-boot with Windows

2021-12-29 Thread Benny Siegert

Hi!

I re-installed Windows 10 on my machine, and it insisted on UEFI boot, 
which killed my previous dual-booting setup with GRUB and legacy boot.


NetBSD is on the second NVMe drive, while the first one is all Windows.

After installing Windows, I manually installed rEFInd into the EFI 
partition. For NetBSD, I copied bootx64.efi to /EFI/NetBSD (so as not to 
overwrite the existing /EFI/Boot/bootx64.efi, which I assume is from 
Windows). I also copied a GENERIC NetBSD-9.2 kernel to  /netbsd.gz on the 
EFI partition.


After selecting NetBSD in rEFInd (which it auto-detects), I see the 
NetBSD/x86 EFI boot (x64) banner. It proceeds to load a kernel from 
"NAME=EFI system partition:netbsd.gz (howto 0x2)".


Unfortunately, after the initial loader line with the sizes, the boot 
seems to hang with no further output.


Any ideas, hints or tips?

--
Benny


Re: sysctl and screen brightness

2021-09-10 Thread Benny Siegert
It depends on what the exact machine is. Try looking through the
output of "sysctl hw" or "sysctl machdep" for options with
"brightness", "backlight", or similar in their names.

-- 
Benny

On Fri, Sep 10, 2021 at 4:12 AM Todd Gruhn  wrote:
>
> Unfortunately,no...
> The graphics card is nVidia.
>
> On Thu, Sep 9, 2021 at 6:36 PM RVP  wrote:
> >
> > On Thu, 9 Sep 2021, Todd Gruhn wrote:
> >
> > > Date: Thu, 9 Sep 2021 18:28:59 -0400
> > > From: Todd Gruhn 
> > > To: Netbsd-Users-List 
> > > Subject: sysctl and screen brightness
> > >
> > > It was mentioned on a post (elsewhere) to set screen brightness
> > > with the kern var "hw.acpi.acpi0.brightness" .
> > >
> > > I can find no such kern var. Is this possible?
> > > If so then what is the correct kern var to set?
> > >
> >
> > If you have an Intel graphics card, install the `intel-backlight'
> > package, then:
> >
> > $ intel_backlight incr
> > $ intel_backlight decr
> >
> > -RVP
> >



-- 
Benny


Re: Firefox (other GTK3 apps?) sends PDF to PostScript printer

2021-08-14 Thread Benny Siegert




On Fri, 13 Aug 2021, John D. Baker wrote:


The result of "Print to LPR", however, spewed PDF to my printer, not
the PostScript it speaks (it is a Real Printer(tm) which lives on my
LAN).


I also have a Real Printer(TM) but it accepts Postscript *and* PDF, so I 
haven't even noticed this problem :)


--
Benny


Re: Regular NetBSD packaging and pkgin

2021-07-12 Thread Benny Siegert
On Mon, Jul 12, 2021 at 2:46 AM Mark Carroll  wrote:
> Does anybody have an idea what I messed up on the
> latter? I first noticed when "pkg_admin audit" was telling me less than
> I expected on that system.

It sounds like pkgin and your pkg_* tools disagree on what the correct
PKG_DBDIR is. Probably one of them is using /var/db/pkg and the other
/usr/pkg/pkgdb. Check if you have both, set the location in the
respective config files explicitly, and try merging the two db dirs.

-- 
Benny


Re: Custom CD mixes

2021-07-10 Thread Benny Siegert



> Am 09.07.2021 um 21:45 schrieb Todd Gruhn :
> 
> If I wanna pull the music off CDs and make a custom album, is there a package
> that would allow me to choose the songs, and play order?

Rhythmbox is a good software for organizing your music collection and creating 
playlists.

If you want to burn an audio CD, the way I used to do it is:

1. Convert to wav (not sure that rhythmbox can do it)
2. Write a cue file and burn the CD with cdrdao. The cue file format is easy 
enough to do by hand, and it allows you to control gaps and such.

There are CD writing GUIs in pkgsrc if you prefer that.

-- 
Benny

Re: getting pkgsrc-wip with CVS

2021-06-13 Thread Benny Siegert

On Sun, 13 Jun 2021, Todd Gruhn wrote:


Is it possible to get  pkgsrc-wip using cvs ?


No. You have to use git.

--
Benny


Re: New kernel config

2021-05-24 Thread Benny Siegert




On Mon, 24 May 2021, Todd Gruhn wrote:


Here is part of the dmesg from a new kernel config.
How do I shut off or remove all these
"... at acpi0 not configured" messages? Is there a specific
driver/probe I need to comment out?


You can disable acpi0, but then you have no ACPI (i.e. power management).

May I ask why you want these messages gone? They are a bit of noise but 
they don't hurt otherwise.


--
Benny


Re: NetBSD on bhyve on TrueNAS Core

2021-04-25 Thread Benny Siegert
> > userconf disable xhci*

Thanks, that did the trick! I submitted a dmesg at
https://dmesgd.nycbug.org/index.cgi?do=view=6024 :)

> I mean, for the installation you will have to quickly go to the vnc
> window, interrupt the boot to command line and enter 'boot -c'; then

There is a trick for this: in the VNC settings, you can enable a
checkbox that pauses the boot until you have connected to VNC.

-- 
Benny


Re: NetBSD on bhyve on TrueNAS Core

2021-04-24 Thread Benny Siegert
On Sat, Apr 24, 2021 at 6:30 PM Chavdar Ivanov  wrote:
> My -current (still 9.99.79) runs under TrueNAS just fine, with UEFI
> and VNC, as you say.

That sounds good. What settings do you use? In particular, the web UI
gives me Windows, Linux and FreeBSD as the choice of host OS. I chose
FreeBSD but perhaps that was a mistake?

> I use the VNC connection via the browser I am accessing the TrueNAS
> interface with.

Same.



-- 
Benny


NetBSD on bhyve on TrueNAS Core

2021-04-24 Thread Benny Siegert
Hi!

Has anyone had any success with running a NetBSD VM in bhyve under
TrueNAS? I tried booting the install CD-ROM (both 9 and current,
amd64) with UEFI and VNC.

In each case, I see the bootloader, then the graphical console and the
kernel starts booting. Then about 5 seconds later, VNC simply
disconnects and does not let me reconnect. I assume that the
hypervisor is crashing at that point.

All the how-tos I found look somewhat stale and go through all sorts
of gymnastics (such as using grub) to get non-UEFI boot working.

Any suggestions?

-- 
Benny


Re: MWM and cut-and-paste

2021-03-08 Thread Benny Siegert
On Mon, Mar 8, 2021 at 2:09 AM Todd Gruhn  wrote:
> I recall doing cut-and-paste with MWM/NetBSD many years ago.
> Is it poss to cut-and-paste long commands instead of retyping them?

mwm is a window manager. Where do you want to copy and paste commands?

If this is about a Motif-based terminal program, such as dtterm that
comes with CDE, Copy is Ctrl+Insert and Paste is Shift+Insert by
default.

-- 
Benny


Re: AWS EC2 AMIs

2021-01-22 Thread Benny Siegert
I believe Jeff Rizzo maintains (or used to maintain) them.

Side note:
I maintain https://github.com/google/netbsd-gce for Google Compute
Engine. Unfortunately, we do not have official machine images
available on GCE. That requires some sort of "blessed" status for a
Cloud project. FreeBSD has it, we don't. Maybe it is time to inquire
again how to get that.

-- 
Benny

On Fri, Jan 22, 2021 at 6:00 AM Christos Zoulas  wrote:
>
> In article <20210121202419.gi29...@netmeister.org>,
> Jan Schaumann   wrote:
> >Hello,
> >
> >https://wiki.netbsd.org/amazon_ec2/amis/ shows the
> >latest AMIs as being NetBSD 7.0; the latest stable
> >release is NetBSD 9.1.
> >
> >Would it be possible to get official NetBSD AMIs of
> >NetBSD 9.0 uploaded?
> >
> >I would really like that to be part of the release
> >process, ideally.
>
> Yes, but who maintains these and where are the instructions to build them?
>
> christos
>


-- 
Benny


Re: GPIO programs for Raspberry Pi in Python and C

2021-01-14 Thread Benny Siegert
On Thu, Jan 14, 2021 at 3:19 PM Rocky Hotas  wrote:
> As an alternative, are there some C libraries available for NetBSD, to
> manage the GPIO pins?

NetBSD uses the gpio(4) device to talk to the GPIO pins:
http://man.netbsd.org/gpio.4

So your program opens /dev/gpio and uses ioctl to do things. This
should be relatively straightforward in C (or perhaps in Go).

-- 
Benny


Re: Any package to populate image from raw data?

2020-12-31 Thread Benny Siegert
You can build something with the Go image package quite easily. Create an
image in memory and fill it with raw values, then write to an image format
of your choice. If you prefer C++, OpenCV can do this too.

Mayuresh  schrieb am Do. 31. Dez. 2020 um 17:54:

> I recently wrote a pyusb based driver to interact with an X ray camera.
> The driver gives me a byte array of a 16 bit grayscale image. I want to
> put this byte array into an image format. No specific format required as I
> can always convert it using ImageMagick.
>
> [The python pillow package almost did the job except for one glitch. This
> data is 16 bit grayscale data and pillow is able to handle only 8 bit data
> i.e. the image gets formed fine, but gets saved only with 8 bit depth. Saw
> posts somewhere saying that this is a limitation with pillow.]
>
> Looking for alternative to pillow to create image from byte array,
> preferably pkgsrc based, but otherwise is also fine. Python based
> preferably as the driver is in python, but otherwise is also fine.
>
> --
> Mayuresh
>
-- 
Benny


Re: Mini-PC for NetBSD

2020-12-08 Thread Benny Siegert
On Tue, Dec 8, 2020 at 3:23 PM Matthias Petermann  wrote:
> today a small hardware question. I would like to buy a Mini-PC, on which
> NetBSD should be used as primary desktop operating system. I thought
> about an Intel NUC. Such a device from the lower end of the performance
> scale with Celeron-CPU I already have in use as a home server (model
> NUC5PPYH). But for the desktop it may be a bit more power. An i5 with
> SSD and 8 GB RAM or more seems to be a good choice. While I assume that
> the often used Realtek-LAN-chipsets and USB 3.0 are no longer a big
> problem, I am more concerned about the support of the integrated
> graphics. In intel(4) the Intel Iris and Intel Iris Pro chipsets and
> Intel HD are mentioned as supported. Not included are Intel UHD, which
> is used in some of the newer NUCs. Is there any way to find out in
> advance if the respective integrated graphics will be supported by
> NetBSD's Xorg? I would like to use the Intel driver and I would not like
> to switch to the less performant VESA driver. I would also be grateful
> for a concrete model name, if one of you has such a NUC with a
> specification of my choice and can confirm that everything works fine.

Not all NUCs have crappy processors. I have one with an i7 (the 6i7KYK
or something like that), and it works just fine with NetBSD. 9.0 was
the first release that supported the Intel on-board graphics (Iris, I
believe).

-- 
Benny


Re: Large size console font possible?

2020-11-08 Thread Benny Siegert




On Sun, 8 Nov 2020, Michael Huff wrote:

On a laptop with an intel card. During boot the font resizes into something 
really tiny and barely readable -which gives me intense eyestrain really 
quickly, and makes console troubleshooting a problem.


The console font is determined by the fonts which are compiled into the 
kernel. By default, there is a font called BOLD8x16 and a pixel-doubled 
version.


What I do is to create a new kernel config with "option FONT_SPLEEN16x32", 
build a kernel and run that.


There is also a way to select a different font (including a different 
size) at runtime (using wsfontload, I believe) but I have not played with 
that.


--
Benny



Re: Filesystem checks with noauto

2020-10-27 Thread Benny Siegert
The last two numbers in the line are the order in which to run fsck and
backups. So if you replace "1 2" with "0 0", it will do what you want.

Benny

Dima Veselov  schrieb am Di., 27. Okt. 2020,
18:37:

> Greetings,
>
> I have a Gluster volume on NetBSD box. It has long
> description in fstab
>
> /usr/pkg/sbin/mount_glusterfs#gfs01:/gva  /gvapuffs
> noauto,direct-io-mode=false,rw,backup-volfile-servers=gfs02:gfs03:gfs04:gfs05:gfs06
>
> 1 2
>
> I assume noauto should disable filesystem checks, but the
> server can not boot. The first actual problem is checking
> filesystem that may not be available, and second that it
> tries to mount glusterfs before /usr is available and
> /usr/pkg/sbin/mount_glusterfs exists.
>
> What may I do to workaround this? For now I have to mount
> it manually. And will it be fixed in future release?
>
> --
> Sincerely yours,
> Dima Veselov
> Physics R Establishment of Saint-Petersburg University
>


Re: Missing files for browsers in -current

2020-08-20 Thread Benny Siegert
On Sun, Aug 16, 2020 at 8:37 AM Clay Daniels  wrote:
> I've been trying to get a browser working in -current. I tried Firefox the
> other day but it did not work the other day. Tonight I loaded the new
> snapshot of NetBSD 9.66.70 and I thouht I would try Tor instead. I get the
> same message:

Which repository are you using? This looks like you are trying to use
packages built for NetBSD 9.

You can fix this by downloading a base.tgz for NetBSD 9 and extracting
the libraries in question from there into /usr/lib.


-- 
Benny


Re: How to "turn on" fonts in X?

2020-07-17 Thread Benny Siegert
If you are talking about bitmap fonts (the kind that you can select in
xfontsel), they should be part of base X11. For TrueType fonts, look in the
"fonts" category in pkgsrc. You probably need Bitstream Vera and
msttcorefont.

Bob Bernstein  schrieb am Fr., 17. Juli 2020,
20:29:

> On Fri, 17 Jul 2020, Bob Bernstein wrote:
>
> > Are there some basic font configuration steps I need to take?
>
> I believe Hegel wrote that the owl of Minerva spread its wings
> only at dusk, meaning of course that enlightenment comes at the
> end of the day.
>
> Having removed all the packages from this system it of course
> has no font packages installed. Duh Bob.
>
> So I am in the market for a list of font packages I should
> install to give me a start at helping my X apps function. Where
> might such a list be found?
>
> Thank you
>
> --
>   A test of right and wrong must be the means, one would
>   think, of ascertaining what is right or wrong, and not a
>   consequence of having already ascertained it.
>
>J. S. Mill
>


Re: pkg_admin usage

2020-06-29 Thread Benny Siegert
On Mon, Jun 29, 2020 at 10:43 AM Bob Bernstein  wrote:
>
> The man page for pkg_admin contains this line:
>
> set variable=value pkg ...
>
> Do the three final "..." indicate that if it is desired to set
> that variable to that value for more than one package, then can
> be named in a whitespace-separated list?

Yes.

I have used command lines such as

some_command | xargs pkg_admin set rebuild=YES

in the past.


-- 
Benny


Re: cvs better than git?

2020-06-17 Thread Benny Siegert
Please read the archives of the tech-repository list. This has been
discussed to death.

mayur...@kathe.in  schrieb am Mi., 17. Juni 2020, 10:40:

> i am not an expert at version control systems to understand this by myself.
> would like to understand why 'cvs' is preferred over "git" under netbsd.
>
>


Re: "hg clone https://anonhg.netbsd.org/src/" still aborts, but...

2020-06-12 Thread Benny Siegert
On Fri, Jun 12, 2020 at 10:28 AM Greg A. Woods  wrote:
> The suggestion earlier on this list (netbsd-users) was to do exactly:
>
> hg clone https://anonhg.netbsd.org/src/
>
> a) That doesn't actually work at the moment (and hasn't, ever?).
>
> b) Even when you work around the problem, it's TERRIBLY slow.  Arguably
>it is unusably slow.

I just want to say that I second both points. Cloning from anonhg
failed for me with a short read, same as for you, some time near the
end of the download.

Cloning from the developer-only master repo worked and took several
hours, on an i7 with fast local SSD and 10-gigabit internet.

That said, now that I have the tree, I am happy with how fast "hg
pull" is (though for some reason, you also have to "hg checkout" after
it) and how quickly you can switch branches, e.g. from -9 to current.

-- 
Benny


Is the PR sender form on www.netbsd.org broken?

2020-06-12 Thread Benny Siegert
This is the second time that I tried to submit a PR via the web form,
fill out all the fields and get

"Bad Data

You need to specify at least your electronic mail address, your name,
a synopsis of the of the problem and choose an appropriate selection
for category, severity, priority and class. Please return to the form
and add the missing information. Thank you."

Unfortunately, with this level of detail, it is hard what I am
missing. Does this work for anyone else?

-- 
Benny


Re: Where do I get the source tree tarball from?

2020-06-11 Thread Benny Siegert
I recommend Mercurial:

hg clone https://anonhg.netbsd.org/src/

On Thu, Jun 11, 2020 at 2:50 PM mayur...@kathe.in  wrote:
>
> On Thursday, June 11, 2020 05:34 PM IST, xpetrl  wrote:
>
> >
> >
> > On 6/11/20 1:27 PM, mayur...@kathe.in wrote:
> > > i wish to try-out martin huseman's response to my query and get down to 
> > > compiling the netbsd source tree under a gnu/linux distribution.
> > > where do i point my web browser to get the netbsd source tree?
> > >
> >
> > NetBSD guide, Chapter 30. Obtaining the sources:
> >
> > https://www.netbsd.org/docs/guide/en/chap-fetch.html
>
> i understand that "cvs" is the preferred mechanism for version control for 
> netbsd, but do you provide a "git" interface too?
>


-- 
Benny


Re: Update /usr/pkgsrc

2020-06-08 Thread Benny Siegert
That, or just rebuilding all packages from source:

pkg_admin set rebuild=YES \*
pkg_rolling-replace -v

On Mon, Jun 8, 2020 at 10:31 AM Ottavio Caruso
 wrote:
>
> On Mon, 8 Jun 2020 at 05:13, Jay Patel  wrote:
> >
> > Check this out : 
> > https://www.netbsd.org/docs/pkgsrc/getting.html#uptodate-cvs
> >
> > On Mon, 08 Jun 2020 at 9:42 am nottobay wrote:
> >
> > I was trying to build wine earlier and it seems my /usr/pkgsrc is from a 
> > prior install of NetBSD 8 and I'm on 9. Is there anyway to fix that without 
> > reinstalling?
>
> The OP probably wanted to know if they had to rebuild pkgsrc now that
> they moved from NetBSD 8 to NetBSD 9. In which case the answer is: I
> would just make a new bootstrap and rebuild all packages, but there is
> a chance packages might just work as they are.
>
> (Jay: top-posting and html make a mess of keeping replies in context.)
>
> --
> Ottavio Caruso



-- 
Benny


Re: Controlling pkg_rolling-replace

2020-04-17 Thread Benny Siegert
On Fri, Apr 17, 2020 at 2:49 AM Bob Bernstein  wrote:
> 1. www/ikiwiki
>
> and
>
> 2. Any perl package on which it depends. (There are many.)

If you want full control over what pkg_rr does, manually mark the
packages to rebuild with "pkg_admin set rebuild=YES $pkgname".

For instance, you can run pkg_chk -n (IIRC) to print the list of
packages to update into a file, do whatever transformations you want
and then feed the list to "xargs pkg_admin set rebuild=YES".


-- 
Benny


Re: NetBeans Unexpected error: the trustAnchors parameter must be non-empty

2020-04-08 Thread Benny Siegert
On Wed, Apr 8, 2020 at 2:45 PM Greg Troxel  wrote:
>  Given the Ubuntu package is
> called java-cet, I would guess that it does something to configure the
> jre.

John, could you provide more information on the Ubuntu package? I was
unable to find a trace of this package on packages.ubuntu.com.


-- 
Benny


Re: Resetting X windows

2020-04-02 Thread Benny Siegert
This sounds like your window manager crashed, or is not running. If
you can get into an xterm, try running mwm, or whatever window manager
you are using.

On Thu, Apr 2, 2020 at 7:16 AM Todd Gruhn  wrote:
>
>
> I tried to set pointer colors under LessTif.
>
> I used  "xsetroot" ; now I cant access and resize windows, and my
> menus wont show.
>
> I already tried:
>
> xsetroot 
> xsetroot -def 
>
> These did not fix anything. Do I need to reinstall?
>
> My goal is to change the colors of the root-pointer, and the 
> window/xterm-pointer so they are more obvious.



-- 
Benny


Re: Pkgtools setup

2020-03-22 Thread Benny Siegert
On Sun, Mar 22, 2020 at 3:02 PM Todd Gruhn  wrote:
> How much has pkgtools changed since 2010?

A lot.

> Are any vars set in /etc/profile?
>
> I have mk.conf copied to the /etc dir.

Look, if I were you, and I have weird inexplicable performance issues,
I would start with an empty /etc/mk.conf and no custom settings in the
profile. Then try again :)

-- 
Benny


Re: Using pkgsrc; execution speed

2020-03-21 Thread Benny Siegert
This is definitely not normal. Can you tell a bit more about what OS
version on what hardware?

On Sat, Mar 21, 2020 at 9:31 AM Todd Gruhn  wrote:
>
> I finally got the pkg tools system to work.
>
> When I compiled bootstrap, it took 4hrs -- so I killed it and restarted it 
> when I went to
> bed. The following morning, bootstrap was still compiling. Each 
> step/instruction takes about
> 15 seconds.
>
> I downloaded lesstif.tar.gz from sourceforge. /bin/ksh .configure was half 
> done in about 30s.
> It did not complete because a required lib was not found.
>
> Why am I seeing such a discrepancy in execution speeds?



-- 
Benny


Re: green lines hell

2020-02-26 Thread Benny Siegert
On Tue, Feb 25, 2020 at 9:36 PM Andrei M.  wrote:
> In all recent major versions of NetBSD/amd64, incl. NetBSD 9.0 error
> notifications from the kernel are forwarded in green colour to the
> first vt. In my case it mostly concerns notifications about hardware
> probing going on or when a connection change happens to the net card
> (I use an ASUS K70ID laptop). It happens every few minutes, looks
> terrible from the aesthetic point of view, when you're typing
> something and then this breaks your line, even within vi, and can even
> be some sort of security threat when it messes up the password prompt.

When I last installed OpenBSD, it did the same, except in white on
blue. Worse, it would print it onto whichever console you were on (I
think).

In NetBSD, kernel messages go to a VT called "console", which is the
first VT by default. Once you finish the installation, you can edit
/etc/ttys, set console to "off" and ttyE0 to "on". This turns the
first VT into a regular VT, and kernel messages go nowhere by default.
Or you could connect the console to a serial port. Or if you run X,
Xconsole is typically able to show kernel messages in a window.


Re: Epson M200 printer

2020-01-23 Thread Benny Siegert
On Thu, Jan 23, 2020 at 3:44 AM Dmitrii Postolov  wrote:
> It is possible to port epson-inkjet-printer-escpr to pkgsrc from FreeBSD or 
> OpenBSD?

I just ported this driver and added it to pkgsrc-wip as
wip/epson-inkjet-printer-escpr. Please build it from source and report
back if it works!

-- 
Benny


Re: State of ZFS in 9.0_BETA

2019-08-09 Thread Benny Siegert
Is root-on-zfs supported at all? I do not need a ZFS-capable
bootloader, I can load the kernel from a different partition via GRUB,
but can the zpool be at the root?

On Fri, Aug 9, 2019 at 9:54 PM Chavdar Ivanov  wrote:
>
> FYI I switched all my nvmm virtual machines to use zvols under
> -current, seems to be working rather well. I haven't yer tried
> snapshotting them, I'll do that later, but so far haven't had any
> problems, including performancewise. Previously they used either gpt
> partitions or disk images.
>
> On Fri, 9 Aug 2019 at 06:28, Alistair Crooks  wrote:
> >
> > Working with a VM. Added 1 CPU and 3GB memory to the instance, 4 GB RAM 
> > total
> >
> > Added a 50GB disk, presents as wd2
> >
> > Commands (edited to show kinda relevant ones) I also have a full backup of 
> > my home dir in case I fat fingered anything
> >
> >   9986  19:24dmesg
> >   9987  19:24sudo zpool create z /dev/wd2d
> >   9989  19:25sudo zfs create z/home
> >   9990  19:30sudo zfs set compression=lz4 z/home
> >   9991  19:30sudo zfs set atime=off z/home
> >   9992  19:30sudo zpool get all z
> >   9993  19:31sudo zfs get all z/home
> >   9994  19:31df
> >   9995  19:31du -h ~agc/
> >   9996  19:32cd /home
> >   9998  19:32sudo pax -rwpe . /z/home/
> >     19:33df
> >  1  19:35cd /
> >  10004  19:36sudo rm -rf /home
> >  10007  19:37sudo zfs snapshot z/home@20190802
> >  10009  19:38sudo zfs list
> >  10011  19:38ls -al /z/home
> >  10012  19:38ls -al /z
> >  10013  19:39sudo zfs set mountpoint=/home z/home
> >
> > This is all on 9.99.something, BTW, but near enough to 9.0_BETA
> >
> > On Thu, 8 Aug 2019 at 10:55, Ron Georgia  wrote:
> >>
> >> How did you move your home directory? Did you create /tank/home then 
> >> symlink the /home -> /tank/home?
> >>
> >>
> >>
> >> From: Alistair Crooks 
> >> Date: Thursday, August 8, 2019 at 11:53 AM
> >> To: Ronald Georgia 
> >> Cc: Marc Baudoin , NetBSD Users  
> >> 
> >> Subject: Re: State of ZFS in 9.0_BETA
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> On Thu, 8 Aug 2019 at 07:52, Ronald Georgia  wrote:
> >>
> >> Same here. I have two 9BETA machines using zfs. Both have a mirrored pool 
> >> of two disks. So far things seem to be working. This weekend I will be 
> >> testing snapshots and send/receive.
> >>
> >>
> >>
> >> BTW, nice job with zfs.
> >>
> >>
> >>
> >> On Thu, Aug 8, 2019 at 10:47 AM Marc Baudoin  
> >> wrote:
> >>
> >> Hi,
> >>
> >> ZFS has been updated for 9.0_BETA.  I've tried it and it seems
> >> usable (I couldn't make it work in 8.0 so it's a real progress).
> >> Now I'd like to know what's its state in 9.0_BETA (still
> >> experimental, quite stable, production ready --- might be too
> >> early) and what's the goal for the future?
> >>
> >> Thanks.
> >>
> >>
> >>
> >> I have no idea of official status, but I've moved the home directory on my 
> >> main development machine to zfs, and am extremely happy so far with the 
> >> results - snapshots and compression ftw
> >>
> >>
> >>
> >> Having said that, I did have issues copying some larger files from ffs to 
> >> zfs until I added more memory.
> >>
> >>
> >>
> >> Best,
> >>
> >> Alistair
>
>
>
> --
> 



-- 
Benny


Re: amd64 SBCs on which NetBSD would run ?

2019-05-04 Thread Benny Siegert
If you really want to go with amd64, I'd suggest an Intel NUC. It's
what I have been using for the last few years. They are small, fast
but not very cheap. NetBSD-current supports mine really well, except
for its Thunderbolt port.


Re: upgrade - what will happen?

2019-04-28 Thread Benny Siegert
> However I've a question regarding pkgsrc. There are several own-backed pkgsrc 
> packages (build is performed always on the backup machine, and pkgin is used 
> to update the online server) installed.

What do you mean by own-backed? Using builtin libraries?

When you upgrade, the old library versions stay around, so old
packages continue to work -- with the exception of things depending on
osabi, which might break.

To be in a supported configuration, it would make sense to rebuild all
packages in the right order. For instance, do

pkg_admin set rebuild=YES \*
pkg_rolling-replace -v

on the backup, then copy over the resulting binary packages and
install them on the other machine.

Or change the pkgin repository to 8.0_2019Q1 and do a "pkgin full-upgrade".




-- 
Benny


Re: Alternative DVCS to git: hg?

2019-04-17 Thread Benny Siegert
Please do not turn this thread into a discussion about the merits of
various VCSes for use in NetBSD. These discussions should take place
on the tech-repository list. Thank you.

On Wed, Apr 17, 2019 at 12:26 PM Sad Clouds  wrote:
>
> On Tue, Apr 16, 2019 at 8:26 PM Greg Troxel  wrote:
> >
> > Sad Clouds  writes:
> >
> > > Does it actually need to be distributed? If no, then what's wrong with
> > > Subversion? Personally, I can't stand Git.
> >
> > I think any open-source project needs a distributed VCS, so that people
> > without commit bits can fully prepare changes.  With CVS, and it would
> > be the same, people send patches, and they often lack commit messages,
> > and sending them means going out of tool.  With git and similar, anyone
> > can publish a repo, and/or can export a commit so that it can be merged
> > as is.
> >
>
> Does it really save that much time and effort? I mean the code change
> still needs to be reviewed and tested by someone with commit rights,
> and the time to do that would probably dwarf the time to apply a patch
> with commit message.
>


-- 
Benny


Re: problems upgrading go112 (and go111) on NetBSD-8.99.32/amd64

2019-04-15 Thread Benny Siegert
Try rebuilding lang/go14 perhaps?

You could also try editing lang/go112/Makefile and setting
GOROOT_BOOTSTRAP to /usr/pkg/go111.

On Sun, Apr 14, 2019 at 11:26 PM Greg A. Woods  wrote:
>
> So, the following has been happening (and for go111), but I don't
> understand the errors, nor have I any clue as to their cause.
>
> Note that I do have Go 1.11.1 installed and working A-OK on this same
> machine, but built against somewhat older OS.
>
> 13:31 [510] $ go version
> go version go1.11.1 netbsd/amd64
>
> 13:43 [516] $ /usr/sbin/pkg_info -Q BUILD_HOST go111
> NetBSD future 7.99.34 NetBSD 7.99.34 (XEN3_DOMU) #2: Sun Jul  9 
> 15:31:37 PDT 2017  
> woods@future:/build/woods/future/current-amd64-amd64-obj/building/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU
>  amd64
>
> The host is now a reasonably recent current build (running in a Xen
> domU):
>
> NetBSD future 8.99.32 NetBSD 8.99.32 (XEN3_DOMU) #0: Mon Feb  4 
> 15:01:05 PST 2019  
> woods@future:/build/woods/future/current-amd64-amd64-obj/building/work/woods/m-NetBSD-current/sys/arch/amd64/compile/XEN3_DOMU
>  amd64
>
> The only thing that I think I've done since upgrading (and upgrading
> other packages) is to run "postinstall fix obsolete" to clean out a
> bunch of old cruft, most notably old libraries (there was more than a
> couple of years of cruft lying about).
>
> When building the go111 package I encounter very similar errors.
>
> I'm posting here instead of just submitting a PR or issue on github
> because I've been unable to find very much at all relating to these
> errors, and I don't know how to diagnose it much deeper.  On the other
> hand I'll be first to admit that my installation isn't quite standard
> (it's definitely not an out-of-the-stock-ISO install), and so I would
> really like to dig deeper to find the root cause of the problem as I'm
> guessing this is a problem specific to my system and not something more
> generic as I've found no other complaints about upgrading Go on
> NetBSD/amd64.
>
> The only thing that's close seems to be about the confusing nature of
> some of the linker errors:  https://github.com/golang/go/issues/29852
> (but that's unrelated to the root cause of the specific errors I see)
>
> (Adding '-v' to the "make.bash" invocation doesn't really show anything
> more useful or interesting at all, especially not the exact command-line
> that's failing.)
>
> 13:21 [506] $ cd lang/go112
> /usr/pkgsrc/lang/go112
> 13:21 [507] $ make clean
> ===> Cleaning for go112-1.12.1nb1
> make13:21 [508] $ make
> => Bootstrap dependency digest>=20010302: found digest-20180917
> => Checksum SHA1 OK for go1.12.1.src.tar.gz
> => Checksum RMD160 OK for go1.12.1.src.tar.gz
> => Checksum SHA512 OK for go1.12.1.src.tar.gz
> ===> Installing dependencies for go112-1.12.1nb1
> => Tool dependency gtar-base>=1.13.25: found gtar-base-1.30
> => Build dependency go14-1.4*: found go14-1.4.3nb7
> => Full dependency bash-[0-9]*: found bash-4.4.019
> => Full dependency perl>=5.0: found perl-5.28.0nb2
> ===> Overriding tools for go112-1.12.1nb1 (in 
> /var/package-obj/woods/lang/go112/work/.tools)
> ===> Extracting for go112-1.12.1nb1
> /bin/rm -r -f 
> /var/package-obj/woods/lang/go112/work/go/test/fixedbugs/issue27836*
> ===> Patching for go112-1.12.1nb1
> => Applying pkgsrc patches for go112-1.12.1nb1
> No such line 530 in input file, ignoring
> ===> Creating toolchain wrappers for go112-1.12.1nb1
> => Creating AS wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/as
> ==> Searching for 'AS' program in: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin:/var/package-obj/woods/lang/go112/work/.buildlink/bin:/var/package-obj/woods/lang/go112/work/.gcc/bin:/var/package-obj/woods/lang/go112/work/.tools/bin:/usr/pkg/bin:/home/more/woods/go/bin:/home/more/woods/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/usr/games:
> ==> using '/usr/bin/as' for AS wrapper script
> => Creating CC wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/gcc
> => Linking CC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/cc
> => Linking CC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ada
> => Creating CPP wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/cpp
> => Creating CXX wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/c++
> => Linking CXX wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/g++
> => Linking CXX wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/CC
> => Linking CXX wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/cxx
> => Creating FC wrapper: 
> /var/package-obj/woods/lang/go112/work/.wrapper/bin/gfortran
> => Linking FC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/f77
> => Linking FC wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/g77
> => Creating LD wrapper: /var/package-obj/woods/lang/go112/work/.wrapper/bin/ld
> ==> Searching for 

Re: how to use netbsd with ubuntu?

2019-04-12 Thread Benny Siegert
On Fri, Apr 12, 2019 at 12:04 PM Stephen Borrill
 wrote:
> How is X support with a NetBSD dom0 nowadays?

X works fine but Dom0 is limited to a single core.

-- 
Benny


Re: how to use netbsd with ubuntu?

2019-04-12 Thread Benny Siegert
Another option would be to run Ubuntu as a Xen Dom0 and run NetBSD in
a DomU, which is well-supported. Myself, I use the lazy solution,
which is a NetBSD VM on Google Compute Engine that I spin up when
needed.

On Fri, Apr 12, 2019 at 9:33 AM Mayuresh Kathe  wrote:
>
> as in a previous email, i need to use ubuntu as my primary desktop.
> i researched various options via googling around as well as asking
> this mailing list and it looks like the best thing would be to run
> netbsd in a virtual environment. for the same, would "qemu" be
> considered good enough? if it is, should i upgrade my system memory
> from 4gib to 8gib? i have a 1tib hard disk, would running with a
> 256gib 'ssd' instead pose any unforeseen problems? thanks.



-- 
Benny


Re: change console font size to larger 80x24

2019-04-07 Thread Benny Siegert
You need to compile a Kernel and set an option to include a larger font. I
use

option FONT_SPLEEN16x32

 schrieb am So., 7. Apr. 2019, 00:05:

> Using evbarm on pinebook (NetBSD current as of yesterday).
>
> The font size is too small.
>
> I enabled additional virtual consoles in /etc/ttys
>
> wsconscfg -t 80x24 2
> results in:
> screen 2 is already configured
>
> I remove with
> wsconscfg -dF 2
>
> Then
> wsconscfg -t 80x24 2
> results in
> wsconscfg: WSDISPLAYIO_ADDSCREEN: Device not configured
>
> Try
> wsconscfg -t 80x24 2 -e vt100 2
> and
> wsconscfg -e vt100 -t 80x24 2
> both get Device not configured
>
> wsconscfg -e vt100
> has no error
> but then
> wsconscfg -t 80x24 2
> results in: screen 2 is already configured
>
> I also tried setting 80x24 in /etc/wscons.conf and reboot but nothing
> noticable.
>
> Tried with different screens and with 80x25.
> Luckily startx works and then I can use xterm as Huge but even that is
> too small.
>
> Any hints with wsconscfg?
>
> I couldn't see to setup wireless :)
>
> Other options may be to have a custom kernel (but doesn't help
> when cannot see to get that far :)
> Or boot.cfg menu. Any hints?
>
> Thanks
>
>


Re: netbsd development on a raspberry pi

2019-04-02 Thread Benny Siegert
Basically, any size you can buy, I think it needs to be above 2G. I
have 32G and 64G cards, they were around 30$.

Note that you want the fastest tier cards, look for UHS-1. Example:
https://www.digitec.ch/en/s1/product/samsung-evo-microsd-uhs-i-64gb-class-10-memory-cards-6304644
for 28.50.

I have heard that some cards are advertised as "super robust" or
something like that, which is supposedly better for workloads that
read/write/rewrite a lot of data, such as builds. But I have no
experience with these.

The build machine that I mentioned has a hard drive attached via USB,
which is where the obj directories go.

In general, I recommend a separate partition for WRKOBJDIR, scratch
space or whatever that you can mount with -o async. Having the root
filesystem mounted async is asking for trouble, which I learned the
hard way.

On Tue, Apr 2, 2019 at 12:01 PM Mayuresh Kathe  wrote:
>
> > From bsieg...@gmail.com Tue Apr  2 09:30:51 2019
> > From: Benny Siegert 
> > Subject: Re: netbsd development on a raspberry pi
> > To: Mayuresh Kathe 
> > Cc: NetBSD Users 
> >
> > On Tue, Apr 2, 2019 at 10:55 AM Mayuresh Kathe  wrote:
> > > the question that i don't have an answer to is whether it is possible
> > > to do development on an 'rpi' running netbsd? development would not
> > > be restricted to just userland, but would also spill over into
> > > kernel zone too.
> >
> > Sure! NetBSD runs well on the RPi with the evbarm port. You'll want to
> > run -current for best results. See http://invisible.ca/arm/ for images
> > that you can just dd onto a memory card.
> >
> > Personally, I have an "OrangePi Plus 2E" that I bought based on
> > jmcneill's recommendation. It is a bit faster than the RPi
> > (particularly for storage and network), has been running super stable
> > doing continuous builds and costs about the same as an RPi.
> >
> > --
> > Benny
> >
>
> what could be an ideal storage size for the micro-sd card?



-- 
Benny


Re: netbsd development on a raspberry pi

2019-04-02 Thread Benny Siegert
On Tue, Apr 2, 2019 at 10:55 AM Mayuresh Kathe  wrote:
> the question that i don't have an answer to is whether it is possible
> to do development on an 'rpi' running netbsd? development would not
> be restricted to just userland, but would also spill over into
> kernel zone too.

Sure! NetBSD runs well on the RPi with the evbarm port. You'll want to
run -current for best results. See http://invisible.ca/arm/ for images
that you can just dd onto a memory card.

Personally, I have an "OrangePi Plus 2E" that I bought based on
jmcneill's recommendation. It is a bit faster than the RPi
(particularly for storage and network), has been running super stable
doing continuous builds and costs about the same as an RPi.

-- 
Benny


Re: SOLVED? Re: My first look at nouveau in xorg

2019-03-20 Thread Benny Siegert
Glad to hear it's working for you :)

Bob Bernstein  schrieb am Di. 19. März 2019 um
20:55:

> Amazingly, I typed '/usr/pkg/bin/startx' and lo and behold had in
> front of me the age-old X default of twm with the little clock and
> three impossibly small xterms!
>
> And sure enough, I could tweak /usr/pkg/etc/X11/xinit/xnitrc. A few
> minutes later I was looking at my favorite wm, icewm, launched from
> my very own /home/bob/.xinitrc.
>
> I don't know what video module is responsible for this. I don't know
> what resolution it's using, but it's perfect for me, whatever it is.
> I'm thoroughly gobsmacked, because all I've seen are failure
> messages from xorg in every attempt to configure X for my use.
>
> NOT THAT I'M COMPLAINING OR ANYTHING.
>
> :)
>
> Thank you to everyone who put up with my incessant posts for the
> last couple of weeks!
>
> --
> These are not the droids you are looking for.
>
-- 
Benny


Re: build error in /usr/pkgsrc/meta-pkgs/modular-xorg

2019-03-13 Thread Benny Siegert
Did you set X11_TYPE=modular in your mk.conf?

On Wed, Mar 13, 2019 at 7:13 AM Bob Bernstein  wrote:
>
> I cd'd into the subdir noted above and entered "bmake." Here is the
> bad news from pkgsrc:
>
> --snip---
> Package dependency requirement 'randrproto >= 1.6.0' could not be
> satisfied.
> Package 'randrproto' has version '1.5.0', required version is '>=
> 1.6.0'
>
>  Consider adjusting the PKG_CONFIG_PATH environment variable if you
>  installed software in a non-standard prefix.
>
>   Alternatively, you may set the environment variables
>   XSERVERCFLAGS_CFLAGS
>   and XSERVERCFLAGS_LIBS to avoid the need to call pkg-config.
>   See the pkg-config man page for more details.
>   *** Error code 1
>
>Stop.
>bmake[2]: stopped in /usr/pkgsrc/x11/modular-xorg-server
>*** Error code 1
> --snip--
>
> I do not know what to do at this point. If I knew what values to
> asign to those two suggested env vars I'd be ok shape, I think.
>
> --
> In our age there is no such thing as 'keeping out of
> politics'. All issues are political issues, and
> politics itself is a mass of lies, evasions, folly,
> hatred, and schizophrenia.
>
>   George Orwell "Politics and the English Language" (1946)



-- 
Benny


Re: MULTIBOOT fails w/ GRUB2 and SYS/EXTLINUX

2019-03-12 Thread Benny Siegert
Correct. But does that matter? IIRC, only the Xen Dom0 kernel is
multiboot-compliant, and even then, it is a multiboot _module_ to be
loaded after the Xen kernel. But I could be wrong.

On Tue, Mar 12, 2019 at 10:58 AM pierre-philipp braun
 wrote:
>
> > knetbsd /netbsd root=/dev/wd0e
>
> Hello Benny.  Yes I've tested it and it works both against netbsd and
> netbsd.gz.  But I believe this is NOT multiboot.



-- 
Benny


Re: MULTIBOOT fails w/ GRUB2 and SYS/EXTLINUX

2019-03-12 Thread Benny Siegert
I think that GRUB2 has a special module and command to load NetBSD kernels:

knetbsd /netbsd root=/dev/wd0e


On Tue, Mar 12, 2019 at 10:37 AM pierre-philipp braun
 wrote:
>
> Yolo again
>
> this message closely relates to my two previous ones -- on bootstrapping 
> netbsd from an ext2fs manually -- and I am now  and finally considering 
> MULTIBOOT.
>
> Although I have seen some success reports with GRUB2 *1, all I get is 
> failures.  With GRUB2/multiboot and multiboot2 I get
>
> error: no multiboot header found.
>
> The GRUB2 configurations I tried:
>
> menuentry 'multiboot netbsd' {
> insmod ext2
> set root='(hd0,msdos1)'
> multiboot /netbsd root=/dev/wd0e
> }
>
> menuentry 'multiboot2 netbsd' {
> insmod ext2
> insmod multiboot2
> set root='(hd0,msdos1)'
> multiboot2 /netbsd root=/dev/wd0e
> }
>
> Although it is supposedly the default now, I even tried with a custom kernel 
> (`options MULTIBOOT`).
>
> Note GRUB2 offers some tweaks to workaround things *1.  No change there 
> either.
>
> Now with SYS/EXTLINUX, I get something similar
>
> Invalid Multiboot image: neither ELF header nor a.out kludge found
>
> How get the boot strapping process to load the netbsd kernel fine using 
> multiboot?
>
> I remember I was able to load XEN+NetBSD with the GRUB `kernel` and `module` 
> parameters before, and I believe this was doing MULTIBOOT already.  But maybe 
> that was GRUB legacy.
>
> Thanks
> *1 https://mail-index.netbsd.org/tech-kern/2011/09/13/msg011481.html
> *2 https://www.gnu.org/software/grub/manual/grub/grub.html#multiboot
> --
> Pierre-Philipp Braun
> SNE Russia https://os3.su/



-- 
Benny


Re: Panic: no console device

2019-02-25 Thread Benny Siegert
I assume the CD drive is internal. Look upwards in the green text to see if
you can find a line that says "cd0 at XYZ". If you don't, try finding you
SATA controller and the hard drive (wd0 probably).

If you have an external CD drive, try using that instead. Just writing the
CD image on a USB stick should also work.

-- 
Benny
Bob Bernstein  schrieb am Mo. 25. Feb. 2019 um
06:29:

> After years away from BSDLand, I am attempting an install. I
> used a partitioning tool to create an "unallocated" partition on
> my olde eMachine Windows 7 box, and then burned version 8.0
> boot.iso to a CD and booted the old box with it.
>
> Btw, what is boot-com.iso for?
>
> Do I need to get some blank DVD's?
>
> How reassuring it was to see the screen fill up with peaceful
> green text, until, as noted in the Subject: line above,
> everything ground to a halt. I seemed to land in the debugger, a
> tool with which I am not fluent. But I remember the panic line.
>
> I'm willing to bang away at this. Can someone suggest a useful
> next step for me?
>
> All best,
>
> --
> What can be asserted without evidence can be
> dismissed without evidence.
>   Hitchens' Razor
>


Re: pkgsrc lang/go111 error

2019-02-21 Thread Benny Siegert
There is something wrong with your go14 package. Try deleting that and
installing it from source.

In general, it sounds like your binary package repository is for the wrong
architecture. Can you share your pkgin config and "uname -a" output?

Benny
Jay Patel  schrieb am Do. 21. Feb. 2019 um 09:27:

> hi all
> i am getting error on pkgsrc lang/go111 which is needed for pkglint
> and also pkgin install pkglint gives "download error: pkglint-5.6.10nb1
> size does not match pkg_summary"
> i did "make clean clean-depends" also but still throws me same error.
>
> sudo make install
> => Bootstrap dependency digest>=20010302: found digest-20180917
> ===> Checking for vulnerabilities in go111-1.11.5
> => Checksum SHA1 OK for go1.11.5.src.tar.gz
> => Checksum RMD160 OK for go1.11.5.src.tar.gz
> => Checksum SHA512 OK for go1.11.5.src.tar.gz
> ===> Installing dependencies for go111-1.11.5
> => Tool dependency bsdtar-[0-9]*: found bsdtar-3.3.2
> WARNING: [depends.mk] Unknown object format for installed package
> go14-1.4.3nb7
> => Build dependency go14-1.4*: found go14-1.4.3nb7
> => Build dependency cwrappers>=20150314: found cwrappers-20180325
> => Full dependency bash-[0-9]*: found bash-4.4.019
> => Full dependency perl>=5.0: found perl-5.28.1
> ===> Overriding tools for go111-1.11.5
> ===> Extracting for go111-1.11.5
> ===> Patching for go111-1.11.5
> => Applying pkgsrc patches for go111-1.11.5
> No such line 530 in input file, ignoring
> ===> Creating toolchain wrappers for go111-1.11.5
> ===> Configuring for go111-1.11.5
> => Replacing bash interpreter in doc/articles/wiki/test.bash
> doc/codewalk/run lib/time/update.bash misc/arm/a misc/benchcmp
> misc/cgo/fortran/test.bash misc/cgo/testgodefs/test.bash
> misc/cgo/testplugin/test.bash misc/nacl/go_nacl_386_exec
> misc/nacl/go_nacl_amd64p32_exec misc/nacl/go_nacl_arm_exec
> misc/wasm/go_js_wasm_exec src/all.bash src/androidtest.bash
> src/bootstrap.bash src/buildall.bash src/clean.bash src/cmd/go/mkalldocs.sh
> src/cmd/vendor/github.com/google/pprof/test.sh src/cmd/vendor/
> github.com/google/pprof/internal/binutils/testdata/build_mac.sh
> src/cmd/vendor/golang.org/x/sys/unix/mkall.sh src/cmd/vendor/
> golang.org/x/sys/unix/mkerrors.sh src/internal/trace/mkcanned.bash
> src/iostest.bash src/make.bash src/naclmake.bash src/nacltest.bash
> src/race.bash src/run.bash src/runtime/mknacl.sh src/syscall/mkall.sh
> src/syscall/mkerrors.sh src/syscall/mksysnum_plan9.sh.
> WARNING: [replace-interpreter] Skipping non-existent file "src/cmd/vendor/
> github.com/google/pprof/test.sh".
> => Replacing Perl interpreter in src/cmd/vendor/golang.org/x/sys/unix/*.pl
> src/net/http/cgi/testdata/test.cgi src/regexp/syntax/make_perl_groups.pl
> src/syscall/*.pl test/errchk.
> ===> Building for go111-1.11.5
> cd /home/jay/usr/pkgsrc/lang/go111/work/go/src && env
> GOROOT_BOOTSTRAP=/usr/pkg/go14 GOROOT_FINAL=/usr/pkg/go111
> /usr/pkg/bin/bash ./make.bash
> Building Go cmd/dist using /usr/pkg/go14.
> ./make.bash: line 166: 17930 Segmentation fault  (core dumped)
> GOROOT="$GOROOT_BOOTSTRAP" GOOS="" GOARCH="" "$GOROOT_BOOTSTRAP/bin/go"
> build -o cmd/dist/dist ./cmd/dist
> *** Error code 139
>
> Stop.
>
> Regards,
>
> --
> Jay Patel
> *https://www.unitedbsd.com/ *
>
>
> *usually found @ https://riot.im/app/#/room/#bsd:matrix.org
> *
>
>
>
>


Re: Portable Makefile ideas

2019-02-10 Thread Benny Siegert
My hot take on this: Don't roll your own build system.

No matter how easy and portable you think you made it, it is not going
to be working for part of your users (think Linux, BSD, Solaris, etc.,
with a number of architectures each), and it is not going to be
trivial to understand for packagers. Package maintainers are familiar
with the most important standard build systems.

Perhaps take a look at CMake. I found it to be easier than expected,
and it is common enough that package systems like pkgsrc support it
directly.


On Sun, Feb 10, 2019 at 6:57 PM Sad Clouds  wrote:
>
> Hello, I've been looking into ways of writing portable Makefiles and
> would like to ask for ideas and find out what works for various people.
>
> First, I would like to set out a few basic requirements:
>
> 1. It needs to be small, simple and easy to maintain. So I guess this
> would rule out tools like Libtool, Automake, etc.
>
> 2. It needs to support building C programs and libraries on different
> OSes with different compilers.
>
> Pkgsrc has various Makefiles and bootstrap tools for building software
> on different OSes, but it's too heavyweight for personal hacking
> projects. I won't be distributing my code and don't want to waste too
> much time on various package frameworks/formats.
>
> I also used "GNAT Project Manager", which can build not only Ada, but
> C and C++ projects. It's one of the best build tools I've used, but I
> only used it on Linux and NetBSD, so not sure how well it works on
> other OSes, and it may have heavyweight dependencies like GNAT tools,
> Python, etc. I need to look into this in the future.
>
> My personal research suggests that pure POSIX make is too vague and
> too simplistic, hence not very useful when it comes to larger
> projects. GNU make seems to be quite ubiquitous and many people
> standardize on using that.
>
> When it comes to different OSes and compiler combinations,
> auto-detection seems a bit complicated, so to keep it simple, I'm
> thinking of passing parameters to make, this may be a good way to
> solve this without complex frameworks and configure scripts.
>
> For example
>
> make OS=OS_SOLARIS CC_VENDOR=GCC CC=gcc
> make OS=OS_SOLARIS CC_VENDOR=SUNPRO CC=cc
> make OS=OS_LINUX CC_VENDOR=GCC CC=gcc
> make OS=OS_NETBSD CC_VENDOR=CLANG CC=clang
>
> Then Makefile would have logic like this:
>
> If LINUX and GCC:
> CFLAGS="-D$(OS) -D_FILE_OFFSET_BITS=64 -D_POSIX_C_SOURCE=200809L 
> -D_DEFAULT_SOURCE -O2"
> CFLAGS_PIC="-fPIC"
> CFLAGS_SHARED="-shared"
> CFLAGS_SONAME="-Wl,--default-symver -Wl,-soname,"
> CFLAGS_MT="-D_REENTRANT -lpthread"
> CFLAGS_RPATH="-Wl,-rpath,$(LIB_DIR)"
>
> If SOLARIS and SUNPRO:
> CFLAGS="-D$(OS) -D_FILE_OFFSET_BITS=64 -D__EXTENSIONS__ -xO"
> CFLAGS_PIC="-KPIC"
> CFLAGS_SHARED="-G"
> CFLAGS_SONAME="-h"
> CFLAGS_MT="-D_REENTRANT -lpthread"
> CFLAGS_RPATH="-R$(LIB_DIR)"
>
> So the idea is to keep it small and simple, i.e. a few variable, some
> simple if/else logic and "Bob's your Uncle".
>
> I guess the question I have, can anyone suggest more elegant
> solutions/tools?
>


-- 
Benny


Re: FOSDEM 2019 - Embedded FreeBSD on a five-core RISC-V processor using LLVM

2019-02-02 Thread Benny Siegert
Don't forget that there are two NetBSD talks this yeat at FOSDEM:

https://fosdem.org/2019/schedule/event/netbsd_update/ (by me, 13:00)

and

https://fosdem.org/2019/schedule/event/kleak/ (Thomas Barabosch, 13:25)

On Fri, Feb 1, 2019 at 11:24 PM Dinesh Thirumurthy
 wrote:
>
> Hi,
>
> This talk
>
> https://fosdem.org/2019/schedule/event/testing_freebsd_risc_v5/
>
> is being presented at 1130 UTC Sat Feb 2nd. You can view via streaming.
>
> The BSD track is at https://fosdem.org/2019/schedule/track/bsd/
>
> The RISC-V track is at https://fosdem.org/2019/schedule/track/risc_v/
>
> Thanks.
> Regards
> Dinesh



-- 
Benny


Re: Can not Download NetBSD 8.0 i386 USB Install Image

2019-01-31 Thread Benny Siegert
On Thu, Jan 31, 2019 at 8:20 AM JingYuan Chen  wrote:
> I want to download NetBSD 8.0 i386 Install Image. But the source file
> can not be read. Is there something wrong with it?

Could you provide more details please? Which download URL did you use?
Which file could not be read? What is the error message?

-- 
Benny


Re: How to setup Realtek 8139 10/100BaseTX cardbus?

2019-01-11 Thread Benny Siegert
> rtk0 at cardbus1 function 0: Realtek 8139 10/100BaseTX

"dhcpcd rtk0" should get you an address.

You can create a config for it with
echo dhcp > /etc/ifconfig.rtk0

See https://man-k.org/man/NetBSD-current/5/ifconfig.if?r=2=ifconfig.

-- 
Benny


Re: Lenovo t480 install

2018-12-20 Thread Benny Siegert
Yes, please try a daily build of NetBSD-current. Intel DRM support in
particular has made lots of progress.

On Thu, Dec 20, 2018 at 5:09 AM Michael Jensen  wrote:
>
>
> I can't seem to get Intel DRM driver to work, or the wmi (hot keys).
> I can live without the SD-card reader, but I need the grafx driver.
>
> Any suggestions in getting it working, would switching to current help?
>
>
>
> SIO (PNP0C02) at acpi0 not configured
> PDRC (PNP0C02) at acpi0 not configured
> acpiwmibus at acpiwmi0 not configured
> MEM (PNP0C01) at acpi0 not configured
> acpiwmibus at acpiwmi1 not configured
> acpiwmibus at acpiwmi2 not configured
> acpiwmibus at acpiwmi3 not configured
> IETM (INT3400) at acpi0 not configured
> PTMD (INT3394) at acpi0 not configured
> UBTC (USBC000) at acpi0 not configured
> drm at vga0 not configured
> vendor 8086 product 1903 (miscellaneous DASP, revision 0x08) at pci0 dev 4
> function
> 0 not configured
> vendor 8086 product 1911 (miscellaneous system) at pci0 dev 8 function 0
> not configured
> vendor 8086 product 9d31 (miscellaneous DASP, revision 0x21) at pci0 dev
> 20 function 2 not configured
> vendor 8086 product 9d3a (miscellaneous communications, revision 0x21) at
> pci0 dev 22 function 0 not configured
> vendor 8086 product 9d21 (miscellaneous memory, revision 0x21) at pci0 dev
> 31 function 2 not configured
> IOTR (PNP0C02) at acpi0 not configured
> HKEY (LEN0268) at acpi0 not configured
> ITSD (LEN0100) at acpi0 not configured
> SEN1 (INT3403) at acpi0 not configured
> FWHD (INT0800) at acpi0 not configured
> LDRC (PNP0C02) at acpi0 not configured
> CWDT (INT3F0D) at acpi0 not configured
> SIO (PNP0C02) at acpi0 not configured
> PDRC (PNP0C02) at acpi0 not configured
> acpiwmibus at acpiwmi0 not configured
> MEM (PNP0C01) at acpi0 not configured
> acpiwmibus at acpiwmi1 not configured
> acpiwmibus at acpiwmi2 not configured
> acpiwmibus at acpiwmi3 not configured
> IETM (INT3400) at acpi0 not configured
> PTMD (INT3394) at acpi0 not configured
> UBTC (USBC000) at acpi0 not configured
> drm at vga0 not configured
> vendor 8086 product 1903 (miscellaneous DASP, revision 0x08) at pci0 dev 4
> function
> 0 not configured
> vendor 8086 product 1911 (miscellaneous system) at pci0 dev 8 function 0
> not configured
> vendor 8086 product 9d31 (miscellaneous DASP, revision 0x21) at pci0 dev
> 20 function 2 not configured
> vendor 8086 product 9d3a (miscellaneous communications, revision 0x21) at
> pci0 dev 22 function 0 not configured
> vendor 8086 product 9d21 (miscellaneous memory, revision 0x21) at pci0 dev
> 31 function 2 not configured
>
>
>
> []-[]-[] SDF Public Access UNIX System
>   |[]-[]-[]   http://sdf.org
>   |rednight@};-



-- 
Benny


Re: netbsd-8 build distribution error

2018-10-22 Thread Benny Siegert
It looks like your report only has stdout, not stderr. Can you get a
combined log?

Am So., 21. Okt. 2018, 19:36 hat Gua Chung Lim 
geschrieben:

> Hi all,
>
>
> I'm on netbsd-8 branch tag.
> Normally I cvs everyday and build whenever there are updates.
> Today I end up with build errors.
>
> % uname -a
> NetBSD sirius 8.0_STABLE NetBSD 8.0_STABLE (GENERIC) #3: Thu Oct 18
> 20:59:17 +07 2018  root@sirius:/usr/obj/sys/arch/amd64/compile/GENERIC
> amd64
>
> The command I use is ...
> root@sirius:/usr/src# ./build.sh -O ../obj -T ../tools -U -u distribution
>
> /usr/src/doc/CHANGES-8.1 was updated.
> % tail -n 100 /usr/src/doc/CHANGES-8.1
> https://pastebin.com/raw/j3xjLFbW
>
> And the part of errors at build end,
> https://pastebin.com/raw/PVVnRzZ0
>
> Any suggestion is highly appreciated.
>
> Thanks,
>
> --
> Gua Chung Lim
>
> "UNIX is basically a simple operating system,
> but you have to be a genius to understand the simplicity."
> -- Dennis M. Ritchie
>


Re: i915

2018-09-27 Thread Benny Siegert
On Sun, Sep 23, 2018 at 9:02 AM  wrote:
> If you are using netbsd-current, it will probably have support, but xorg
> needs some workarounds for now:
> - Build pkgsrc xorg deleting old packages, setting X11_TYPE=modular,
>   build meta-pkg/modular-xorg and start /usr/pkg/bin/startx.
> - Get pkgsrc-wip, and build wip/xf86-video-intel-git to replace
>   x11/xf86-video-intel.
> - Now it will work

I just wanted to report back that this procedure has resulted in my
dev machine (Intel NUC) getting a graphical framebuffer and
accelerated X. XFCE and Firefox feel a lot snappier than with VESA
graphics! Thanks for making this finally work.

Note that Skylake graphics (Intel Iris Pro) only got support two weeks
ago in -current, so it needs to be a recent kernel.

-- 
Benny


Re: Package binaries for NetBSD 7.2

2018-09-17 Thread Benny Siegert
On Mon, Sep 17, 2018 at 7:37 PM Greg Troxel  wrote:

> > I can't answer to any specific plans on this front...  It's
> > conceivable that the bulk builds will switch to 7.2 at some
> > point.
>
> It's unfortunate that this happened; generally the plan for release
> branches is not to have ABI changes.  But sometimes that's really
> difficult to avoid depending on how upstream packages behave.  One
> netbsd-7 system i have has newer libraries from about May, and I didn't
> notice this issue.

How about switching the -7 builders to 7.2 after 2018Q3 comes out?

-- 
Benny


Why is TERM=vt100 on the console?

2018-09-13 Thread Benny Siegert
Hi,

this is something which has baffled me for a while. On an amd64 system
at least, when you log in on a text console, $TERM is set to vt100.
This gives a barely functional terminal with notably no support for
colors. The wsvt25 terminal type corresponds much better to, well, the
wsvt driver, so a simple

export TERM=wsvt25

makes a number of console applications display colors.

Why is this not the default?

-- 
Benny


Re: Recommended desktop environment?

2018-09-11 Thread Benny Siegert
On Mon, Sep 10, 2018 at 5:17 PM Steffen Nurpmeso  wrote:
>
> Nothing to continue in my eyes; you can always have more and
> iterate over the code of course.  No drag'n drop, of course.  But
> copy, that is enough for me.  It used to use GNU autoconf;
> i have patches and last i compiled it (a few months ago) it
> compiled smoothly (with default CC flags).  I can give you the
> patch if you want, just ask.

Might be worth throwing the code with your patches onto github and
become the new upstream. Then we can also add it to pkgsrc.

-- 
Benny


Re: cvs broken pipe

2018-09-05 Thread Benny Siegert
On Wed, Sep 5, 2018 at 12:09 PM  wrote:
> Your PC close the connexion (FIN flag at 20:35:14.633195).
>
> Generaly, multiple lines with same ack and sequence may indicate packet loss. 
> It may also indicate a busy line or busy hosts on one end.

Could it be that you need to lower MTU on the connection?

-- 
Benny


Re: reading older disks

2018-08-22 Thread Benny Siegert
On Tue, Aug 21, 2018 at 9:36 PM Mike Pumford  wrote:
> Not really its been a pretty universal experience of very old systems
> for me that they don't like being stressed or powered off. :(

In particular: In hard drives that run continuously for months or
years, the centrifugal forces gradually displace the lubrication of
the spindle outward. When the disk powers down, the axis may get
stuck.

My employer once had a power outage in a datacenter, and about 1/3 of
disks failed to come up when power was restored.

-- 
Benny


Re: port-arm/53537: typo in src/sys/arch/arm/sunxi/sunxi_thermal.c

2018-08-20 Thread Benny Siegert
> I realize that I've maybe made a mistake by assigning a category
> matching a non-existing (ever? http://www.netbsd.org/ports/history.html)
> port to this PR. Would it make sense to offer just existing ports as
> port categories in PR submission form?

No, port-arm is a legitimate category. It is meant for all the ARM
ports, of which evbarm is just one.

> I've also noticed that there is no maintainer listed for the evbarm port
> on the "port maintainers" web page
> (http://www.netbsd.org/people/port-maintainers.html). This seems
> surprising to me as the port is listed among the "Tier I" ports. Does
> this port have a maintainer?

I cannot comment on who the official portmaster is, but the evbarm
port is fairly active. jmcneill@ does quite a bit of work, for
example.

--
Benny


Re: lang/swi-prolog-lite : lighter still

2018-04-17 Thread Benny Siegert
Would you be willing to submit a patch and send a PR?

On Tue, Apr 17, 2018 at 10:05 AM Kathe  wrote:

> can the swi-prolog-lite package be made even more lighter?
> i saw http://pkgsrc.se/lang/swi-prolog-lite and wondered
> if it's dependence on bash, gmp and readline can be removed.
> thanks.



--
Benny


Re: unbootable 7.1.2 amd64

2018-04-13 Thread Benny Siegert
On Fri, Apr 13, 2018 at 2:15 PM Kathe  wrote:
> boot device: 
> root device:

Look further up, if the kernel finds the device you booted from (USB stick,
hard drive?).

> is there anything that can be done to have 7.1.2 installed and run
> smoothly? or is it that i had better wait for 8?

You don't have to wait for anything. Just grab a daily build from
nycdn.netbsd.org.

--
Benny


Re: Native sound system

2018-04-04 Thread Benny Siegert
On Tue, Apr 3, 2018 at 6:28 AM Sid  wrote:
> OSS version 4 from http://developer.opensound.com/ is supposed to allow
multiple sound applications to play simultaneously, and it has improvements
over previous and forked versions. For the most part, it has a BSD license.

NetBSD has an in-kernel audio mixer that allows multiple audio sources to
play at the same time. I think it might only be in 8-BETA or -current
though.0

> There is also sndio, http://www.sndio.org/, from OpenBSD, which can
handle MIDI frontends to a sound server (or directly to the hardware).

Are people still using MIDI?

> It would be nice to see the newest version of OSS put into NetBSD, with
layers of sndio to bridge MIDI and API's to OSSv4.

See above.

> Also, across all BSD's, there is not a simple drop-in BSD replacement of
libcanberra, to act as an API from certain applications to OSS or sndio.

But there is libcanberra itself? Also libao has a native "sunaudio" driver
IIRC.

--
Benny


Re: Backup application recommendations

2018-04-01 Thread Benny Siegert
I don't think it is. Deduplication is pretty fundamental to how Borgbackup
works. For instance, all backups are full ones, and they become incremental
by virtue of duplicated data being stored only once, across backups.
Sad Clouds <cryintotheblue...@gmail.com> schrieb am So. 1. Apr. 2018 um
15:36:

> On Sun, 01 Apr 2018 11:13:06 +0000
> Benny Siegert <bsieg...@gmail.com> wrote:
>
> > I like Borgbackup. It has remote repositories, encryption,
> > deduplication (solving the issue with interrupted backups),
> > checksumming but no GUI, I think.
>
> Thanks for the info. Do you know if it is possible to disable
> deduplication? I don't think I would trust this feature.
>


Re: Backup application recommendations

2018-04-01 Thread Benny Siegert
I like Borgbackup. It has remote repositories, encryption, deduplication
(solving the issue with interrupted backups), checksumming but no GUI, I
think.

-- 
Benny
Sad Clouds  schrieb am So. 1. Apr. 2018 um
11:51:

> Hello, could anyone recommend a backup application for a few desktop PCs
> at home running Linux and NetBSD. Something simple and easy to use:
>
> - NetBSD or FreeBSD will be a central backup server.
>
> - Need fully automated, setup-and-forget application, which can do full
> and incremental backups to a remote server, with various retention
> policies, etc.
>
> - Need to be able to cope with unexpected reboots (i.e. user shutting
> down a PC) and later continue backup where it was interrupted, instead
> of starting from the beginning.
>
> - Would be nice to have periodic checksumming of backup data, in case
> of bit rot. Alternatively I could use FreeBSD + ZFS.
>
> - Would be nice to have GUI and encryption, but not critical.
>
> - Would be nice to have easy, point-and-click restore functionality,
> but not critical.
>
> - Doesn't need to be free, i.e. I'm willing to pay for software, as
> long as it is not too expensive for what it is.
>
> Thanks.
>
>


Re: DHCP client: dhclient vs dhcpcd ?

2018-01-31 Thread Benny Siegert
On Wed, Jan 31, 2018 at 1:18 PM, KIRIHARA Masaharu  wrote:
> NetBSD has two DHCP clients; dhclient(8) and dhcpcd(8).
> What's the difference?
> Which is better to use?

I agree that this is confusing. dhclient is the older tool, while
dhcpcd has been created by a NetBSD developer, is newer and smaller. I
have run into situations (on Google Compute Engine for instance) where
dhclient was unable to interpret some of the more modern DHCP
features.

I recommend using dhcpcd :)

-- 
Benny


Re: Netbsd-7/i386 won't boot on new motherboard/CPU

2017-11-15 Thread Benny Siegert
> The kernel boots just past the first acpi message and then just sits
> there "forever" (minutes is all I've waited).

Try disabling ACPI. There is probably an option in the bootloader menu
to do that.


Re: [pkgsrc] ICU needs configure CFLAGS='-03'

2017-11-14 Thread Benny Siegert
> But for my information, libssp is linked (or not) with gcc but what is
> it supposed to provide?

Stack Smashing Protection. It is a security feature.


  1   2   >