install -v

2024-05-09 Thread Thomas Klausner
Hi! Some install(1) tools have a -v (verbose) option that describes what they did, and some software uses it. FreeBSD supports it too. I'd like to add this to NetBSD's install(1). I based the changes on FreeBSD's version. Please review & comment! Thanks, Thomas Index: install.1

Re: CVS commit: src/bin/csh

2024-04-24 Thread Thomas Klausner
On Wed, Apr 24, 2024 at 03:46:20PM +, Nia Alarie wrote: > Module Name: src > Committed By: nia > Date: Wed Apr 24 15:46:20 UTC 2024 > > Modified Files: > src/bin/csh: alloc.c extern.h > > Log Message: > csh: add a reallocarray function for using inside csh Why not use

log2l() missing

2023-03-13 Thread Thomas Klausner
Hi! py-numpy can't be updated to 1.24.x because it wants to use log2l() but NetBSD doesn't provide it. Even worse, the definition even exists in /usr/include/math.h, so a configure check that only looks in the headers might find that. I found

SHA3 implementation problem

2023-03-07 Thread Thomas Klausner
Hi! https://eprint.iacr.org/2023/331 says "This paper describes a vulnerability in several implementations of the Secure Hash Algorithm 3 (SHA-3) that have been released by its designers. The vulnerability has been present since the final-round update of Keccak [...] It affects all software

Re: unhide reallocarray

2022-10-28 Thread Thomas Klausner
On Tue, Aug 30, 2022 at 10:13:51PM +, RVP wrote: > On Tue, 30 Aug 2022, Thomas Klausner wrote: > > > So I'd like to put it outside of the _OPENBSD_SOURCE #ifdef so it is > > available without _OPENBSD_SOURCE being defined. > > > > Comments? > >

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Sat, Sep 03, 2022 at 01:51:57PM +0200, Martin Husemann wrote: > How about fixing the bsd version we have in tree instead? Maybe FreeBSD or > OpenBSD already did that and we can borrwo? At least OpenBSD has this behaviour. But I'm not volunteeering to evaluating what changes there are between

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Sat, Sep 03, 2022 at 11:26:18AM +0200, Roland Illig wrote: > Am 03.09.2022 um 11:06 schrieb Thomas Klausner: > > On Fri, Sep 02, 2022 at 07:08:23PM +0200, Thomas Klausner wrote: > > > I'd like the change the behaviour to match what GNU grep does. > > > > Sinc

Re: grep -r: add default "."

2022-09-03 Thread Thomas Klausner
On Fri, Sep 02, 2022 at 07:08:23PM +0200, Thomas Klausner wrote: > I'd like the change the behaviour to match what GNU grep does. Since I saw only positive feedback, here's my proposed patch. Comments? Cheers, Thomas ? bin/.gdbinit ? bin/grep ? bin/grep.html1 ? bin/grep.info Index: dist/

grep -r: add default "."

2022-09-02 Thread Thomas Klausner
Hi! I often forget the "." at the end of my 'grep -r'. GNU grep automatically adds it, i.e.: # grep -r foo # is the same as # grep -r foo . # The grep we have in NetBSD recognizes that something is wrong, but is not that helpful: # grep -r foo grep: warning: recursive search of stdin (stops

unhide reallocarray

2022-08-30 Thread Thomas Klausner
hi! Some years ago, NetBSD got reallocarray. But it is hidden in an ifdef. (from stdlib.h) #ifdef _OPENBSD_SOURCE ... void*reallocarray(void *, size_t, size_t); #endif reallocarray() will now be part of the next POSIX release: https://austingroupbugs.net/view.php?id=1218 So I'd like to

crypt_r()?

2022-02-07 Thread Thomas Klausner
Hi! I've been asked by the filezilla software developer if NetBSD will add crypt_r() as a thread-safe crypt() replacement. Is anyone interested in working on this? Thomas

Re: vndconfig vs mount_cd9660

2020-12-29 Thread Thomas Klausner
On Tue, Dec 29, 2020 at 08:02:19AM +0100, Martin Husemann wrote: > On Mon, Dec 28, 2020 at 10:43:10PM +0100, Thomas Klausner wrote: > > I wanted to mount an ISO image (on 9.99.77/amd64), so I did, following the > > guide: > > > > # vnconfig -c vnd0 file.iso > >

vndconfig vs mount_cd9660

2020-12-28 Thread Thomas Klausner
Hi! I wanted to mount an ISO image (on 9.99.77/amd64), so I did, following the guide: # vnconfig -c vnd0 file.iso # mount -t cd9660 /dev/vnd0a /mnt mount_cd9660: /dev/vnd0a on /mnt: Invalid argument # mount -t cd9660 /dev/vnd0d /mnt mount_cd9660: /dev/vnd0d on /mnt: Invalid argument but that

Re: ftp -q 60 not working (well)

2020-11-30 Thread Thomas Klausner
On Mon, Nov 30, 2020 at 08:19:00AM -0500, Mouse wrote: > > The hangs from the last two weeks look like this (in ps): > > > pkgmastr 18764 0.0 0.0 33012 4748 ? I15Nov200:00.02 > > /usr/bin/ftp -q 60 -o tzinfo-2.0.3.gem > > https://rubygems.org/gems/tzinfo-2.0.3.gem

ftp -q 60 not working (well)

2020-11-30 Thread Thomas Klausner
Hi! There is a weekly script on ftp.NetBSD.org that downloads mirrors all distfiles currently used by pkgsrc. In the past few weeks I've seen regular hangs, always when fetching ruby gems. The hangs from the last two weeks look like this (in ps): pkgmastr 18764 0.0 0.0 33012 4748 ?

Re: catman (Was: CVS commit: src/games/fortune/datfiles)

2020-11-09 Thread Thomas Klausner
On Mon, Nov 09, 2020 at 04:55:14AM +0300, Valeriy E. Ushakov wrote: > Hold your horses! This started with MKCATPAGES which is ability to > pre-generate cat pages as part of the build. > > Now it's suddenly about eliminatiing support for cat pages entirely?! > > Like, do you plan to remove

Re: catman (Was: CVS commit: src/games/fortune/datfiles)

2020-11-08 Thread Thomas Klausner
On Mon, Nov 09, 2020 at 12:46:42AM +0300, Valeriy E. Ushakov wrote: > Also, come to think of it... Removing catman (i.e. user's ability to > generate cat pages) is rather different from removing MKCATPAGES, > what's going on here? I asked kamil about something else on this topic and he mentioned

perl with -Duselongdouble needs more libm support

2019-09-22 Thread Thomas Klausner
Hi! When compiling perl on NetBSD with -Duselongdouble, some functions are missing. The perl people found that out themselves: https://rt.perl.org/Public/Bug/Display.html?id=134376 here's the smoke test on NetBSD 8.1: http://perl5.test-smoke.org/report/93329 Reading the output, there seems

Re: Leak Sanitizer - how to suppress leaks

2019-09-13 Thread Thomas Klausner
I'm sorry, I totally do not get it the problem with -- in general -- writing the code in such a way that it properly frees any allocations it made. I suspect there will be corner cases where it will be really hard, and we can discuss those separately. But discussing about adding a free() in ps?

Re: UTF-8 capable fmt(1)

2019-07-25 Thread Thomas Klausner
On Thu, Jul 25, 2019 at 08:32:10AM +, i...@netbsd.org wrote: > On Thu, Jul 25, 2019 at 10:28:55AM +0200, Thomas Klausner wrote: > > On Thu, Jul 25, 2019 at 08:02:26AM +, i...@netbsd.org wrote: > > > I investigated the fmt code to find out where it breaks for me. > &g

Re: UTF-8 capable fmt(1)

2019-07-25 Thread Thomas Klausner
On Thu, Jul 25, 2019 at 08:02:26AM +, i...@netbsd.org wrote: > I investigated the fmt code to find out where it breaks for me. > I found this thread when I checked whether my problem was already > discussed. After this discussion, the fmt code was updated in -current. Can you try again if

curses: create panel from stdscr?

2017-11-06 Thread Thomas Klausner
There seems to be a difference in libpanel compared to ncurses: A panel cannot be created from stdscr. At least that's what a python bug report says: "The NetBSD curses library in NetBSD 8 provides the panel extension. compatible with ncurses. But a panel can not be created from stdscr. This

Re: make: order-only prerequisites?

2017-01-22 Thread Thomas Klausner
On Sun, Jan 22, 2017 at 07:12:22PM +, Christos Zoulas wrote: > In article <20170122174627.yjcvgdvn653wvt5d@danbala>, > Thomas Klausner <t...@giga.or.at> wrote: > >Hi! > > > >GNU make supports order-only prerequisites. For details, see > >https://

make: order-only prerequisites?

2017-01-22 Thread Thomas Klausner
Hi! GNU make supports order-only prerequisites. For details, see https://www.gnu.org/software/make/manual/html_node/Prerequisite-Types.html Is there an equivalent in BSD make? Thomas

Re: Possible enhancement to find(1)

2016-06-10 Thread Thomas Klausner
On Fri, Jun 10, 2016 at 02:18:16PM +0800, Paul Goyette wrote: > I often find myself (no pun intended!) wanting to determine which files were > accessed before/since a particular timestamp. There currently exist the > -{a,c}{newer,min,time} primitives, but none of these allow me to say "since >

Re: refine of the GSOC project

2016-05-08 Thread Thomas Klausner
On Mon, May 09, 2016 at 03:05:11AM +0700, Robert Elz wrote: > Date:Sun, 8 May 2016 12:14:57 -0700 > From:Charles Cui > Message-ID: > > > | One more thing, I still need