Re: relayd first try: redirection based on Host: header

2025-08-03 Thread Marc Chantreux
ent. Even books. However I'll be glad to spend money and/or time in free documentation. Plus: now that I found the problem in the way I read the relayd config file, I improved mine the way I want. My next step is the interaction with pf. Regards, -- Marc Chantreux signature.asc Description: PGP signature

Re: program to indent C code?

2025-07-27 Thread Marc Chantreux
you can indent only the current block (for example with =a{ regards -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue René Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79 signature.asc Description: PGP signature

Re: here one more array in the pipe prisoner..

2025-07-27 Thread Marc Chantreux
features of every other shells from sh to rc thru ksh, tcsh, ... so you feel more confortable whatever the shell. the problem of zsh is it's so powerfull you write the whole thing in pure zsh and you lose the habits of the other unix commands. regards. -- Marc Chantreux Pôle CESAR (Calcul

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
or free on busybox/toybox based systems like alpine. regards -- Marc Chantreux signature.asc Description: PGP signature

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
$myfile ) such a fragile version! it will be word splitted! > An other wondering you need to check its portability.. :) the code I bought to you was dash/mksh/oksh compatible. regards -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue Re

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
;last ent was $last_ent" you can use the result of any abritrary command by using a named fifo rm -rf datastream mkfifo datastream getent passwd > datastream & while read ent;do last_ent="$ent" done < datastream echo "ent is $ent (empty by the failed read)&

Re: here one more array in the pipe prisoner..

2025-07-26 Thread Marc Chantreux
echo "a = $a (already gone)" echo "b = $b (already gone)" } <<% those are values I expected % regards -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue René Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79 signature.asc Description: PGP signature

Re: relayd first try: redirection based on Host: header

2025-07-20 Thread Marc Chantreux
ciate the warning but port dispatching with application level rules for multiple protocols seems to be complete enough for me (and probably for 90% of us). I'll admit I reached an end whenever I will find it. regards, -- Marc Chantreux signature.asc Description: PGP signature

Re: relayd first try: redirection based on Host: header

2025-07-20 Thread Marc Chantreux
So I'm confident: I think I'll be rewarded to pay the price. regards -- Marc Chantreux signature.asc Description: PGP signature

nginx "server_name" (virtual hosting) with relayd

2025-07-20 Thread Marc Chantreux
uot; is like "return" in a programming langage: we're done searching for what to do with the thing. so what we wrote here is: if ( header "Host" value "something.codelib.re" ) return forward to ) return forward to thanks everyone for helping! regards Marc signature.asc Description: PGP signature

Re: relayd first try: redirection based on Host: header

2025-07-20 Thread Marc Chantreux
On Sun, Jul 20, 2025 at 01:47:16PM -, Stuart Henderson wrote: > On 2025-07-19, Marc Chantreux wrote: > > but the more I read the doc, the less I'm confident about the fact > > I understood a single word. > welcome to relayd ;) thank you but it's too early: I'

Re: relayd first try: redirection based on Host: header

2025-07-20 Thread Marc Chantreux
this was the thing I tried to do in the last version I posted but it seems the first forward is the used one. I tried both with or without "quick". I'm now trying to read the relayd code … regards -- Marc Chantreux signature.asc Description: PGP signature

Re: relayd first try: redirection based on Host: header

2025-07-19 Thread Marc Chantreux
didtions so I wondered if it's based on already selected bases. I tried relay katzele { ___ listen on vio0 port 8200 ___ protocol katzele ___ forward to port 8200 ___ forward to prometheus port 80 } now everything goes to :8200. I feel I'm getting closer. regards -- Marc Chantreux signature.asc Description: PGP signature

relayd first try: redirection based on Host: header

2025-07-19 Thread Marc Chantreux
nexion is a request quick # always true, will shortcut the other rules header "Host" value "something.codelib.re" # Host is "something" forward to www1 port 8200 # the next step is to forward it but the more I read the doc, the less I'm con

[done] OpenBSD from linux qemu

2025-07-06 Thread Marc Chantreux
e questions # to setup an http source: # ? to get the list of the sources # then select the repo by its number --- run your OpenBSD machine -- # I do it from a tmux pane so I can watch/use the console $qemu $net $disks -- Marc Chantreux signature.asc Description: PGP signature

Re: OpenBSD from linux qemu:

2025-07-05 Thread Marc Chantreux
here was a way to fix it but nothing seems to > > be mounted. Found nothing in the FAQ and not much but dead end posts > > from google. now I'm not even sure were to ask for help as it seems to > > be really related to the relation between openbsd and qemu. > > > >

Re: OpenBSD from linux qemu:

2025-07-05 Thread Marc Chantreux
irtual Machines. OK. i'll take a look on the documentation and try this way (who knows: maybe it will install then). regards -- Marc Chantreux signature.asc Description: PGP signature

OpenBSD from linux qemu:

2025-07-05 Thread Marc Chantreux
mu. anyone to help me on this? regards marc signature.asc Description: PGP signature

openbsd qemu host on debian trixie

2025-04-04 Thread Marc Chantreux
ed to read the official doc but any help to make this script work would be very welcome. regards -- Marc Chantreux

Click and drag not working on Thinkpad x1 gen5 touchpad

2025-03-15 Thread Marc Lasch
oking around in different forums, it looks like the issue is also present on other Thinkpads of the same generation. I tried various settings, but none worked so far, does anybody has an idea how to get this work or how I debug this further? Cheers, Marc

Re: portslist in the ports tree?

2025-03-01 Thread Marc Espie
On Wed, Feb 19, 2025 at 08:14:21PM +1000, Stuart Longland VK4MSL wrote: > Hi all, > > I've dusted off my old Lemote Yeeloong and gotten OpenBSD 7.6 going on it > (it was running 6.9 I think… I just did a fresh install) and am in the > process of installing software. > > I note there seem to be no

Re: openBSD on netcup vps

2025-02-07 Thread Marc Peters
at uhub0 port 1 configuration 1 interface 0 "QEMU QEMU USB Tablet" rev 2.00/0.00 addr 2 uhidev0: iclass 3/0 ums0 at uhidev0: 3 buttons, Z dir wsmouse1 at ums0 mux 0 vscsi0 at root scsibus3 at vscsi0: 256 targets softraid0 at root scsibus4 at softraid0: 256 targets root on sd0a (6205a9ca96cb294e.a) swap on sd0b dump on sd0b fd0 at fdc0 drive 1: density unknown hth, Marc

Re: Missing vlan interfaces in OPENBSD-PF-MIB::pfIfTable

2025-01-16 Thread Marc Boisis
Thank you, it was a faulty snmpd_metrics Marc > On 16 Jan 2025, at 13:30, Martijn van Duren > wrote: > > Just installed a fresh OpenBSD 7.6 machine and created >64 interfaces > with: > i=0; while [ $i -le 80 ]; do doas ifconfig trunk$i create; i=$((i+1)); done > >

Re: Missing vlan interfaces in OPENBSD-PF-MIB::pfIfTable

2025-01-15 Thread Marc Boisis
Hello, Yesterday updated my router to 7.6 and the 64 interfaces limit reappeared. I downloaded the 7.6 sources , and the patch on libexec/snmpd/snmpd_metrics/pf.c is applied correctly. So the bug has moved elsewhere.. but where ? Marc > On 11 Jun 2024, at 17:41, Martijn van Duren >

Re: Log nat translation

2024-11-12 Thread Marc Boisis
Hello, Thank you all for your help. Since version 7.4, the solution is to run a tcpdump on the pfsync parent interface. For those who are interested in logging nat translation you can find our (dirty) code to do it here: https://github.com/solune/logNat/blob/main/logNat.c Regards Marc >

Re: 7.6 MariaDB packages version is EOL

2024-11-07 Thread Marc Peters
Am Wed, Nov 06, 2024 at 04:05:47PM +0100, schrieb Stuart Henderson: > > [1] https://mariadb.com/kb/en/release-notes-mariadb-10-9-series/ > > [2] https://mariadb.com/kb/en/changes-improvements-in-mariadb-11-4/ > > btw, note the changes in binary logging in 11.4 will mean that log files > stack up u

Log nat translation

2024-11-07 Thread Marc Boisis
Hello, In openBSD 7.3 and before we used tcpdump on pfsync0 to log NAT translation . Since 7.4 , tcpdump only show "16:57:17.115752 PFSYNCv69 len 1488" Have you got a solution to log NAT translation since OpenBSD 7.4 ? Marc

Re: Review about this code ?

2024-09-27 Thread Marc Chantreux
On Fri, Sep 27, 2024 at 01:26:30PM +0200, Страхиња Радић wrote: > Дана 24/09/26 11:04AM, Marc Chantreux написа: > > I don't know how far misc is misc but those kind of threads are those I > > like to read: examples of code (shell, C, awk, …), unix philosophy and > &g

Re: Review about this code ?

2024-09-27 Thread Marc Chantreux
ople can like web interfaces and it's fine but please don't try to push people away from mailing lists or newsgroups. thank you -- Marc Chantreux Pôle CESAR (Calcul et services avancés à la recherche) Université de Strasbourg 14 rue René Descartes, BP 80010, 67084 STRASBOURG CEDEX 03.68.85.60.79

Re: Pf congestion troubleshooting

2024-09-17 Thread Marc Boisis
Hi, thank you very much for your help, it was a NAS sending 4000pps of "arp who-as" to all of this clients. Marc > On 13 Sep 2024, at 12:16, Peter N. M. Hansteen wrote: > > Hi, > > As Tom mentioned, one of the least resource consuming ways to identify sources > and

Pf congestion troubleshooting

2024-09-12 Thread Marc Boisis
bc:97:e1:d8:55:b0 841039615 0 1905162366 31036 0 Thanks for your help. Marc

Re: Missing vlan interfaces in OPENBSD-PF-MIB::pfIfTable

2024-06-11 Thread Marc Boisis
gt; wrote: > > On Tue, 2024-06-11 at 14:56 +0300, Kapetanakis Giannis wrote: >> On 10/06/2024 18:43, Marc Boisis wrote: >>> Hello, >>> >>> I've a 7.5 openBSD router, when I'm asking OPENBSD-PF-MIB I have only 64 >>> physicals and carp in

Missing vlan interfaces in OPENBSD-PF-MIB::pfIfTable

2024-06-10 Thread Marc Boisis
st all interfaces (carp and vlan). Is there a setting or a limit to configure to see vlan interfaces in OPENBSD-PF-MIB and especialy in OPENBSD-PF-MIB::pfIfTable ? Ps: In openbsd 6.5, OPENBSD-PF-MIB::pfIfTable contain all interfaces Regards Marc

Re: ubnt edgerouter 8

2024-04-30 Thread Marc Peters
Am Tue, Apr 30, 2024 at 12:03:10PM UTC, schrieb Stuart Henderson: > Do be aware that they often have less airflow than the original fans. > > Sometimes that is not a problem, but sometimes you might want to think > twice (especially in, say, the power supply in poe switches, which might > end up g

Re: ubnt edgerouter 8

2024-04-30 Thread Marc Peters
eg. https://noctua.at/en/nf-a4x10-flx hth, Marc

Re: mountd

2024-01-09 Thread Marc Espie
On Tue, Jan 09, 2024 at 07:27:47AM +0100, Otto Moerbeek wrote: > resreved means that the port number is below 1024. The RPC system, > (which is used to implement NFS) iuses portmapper to determine which > service runs on which port. What problem are you trying to solve? I'm not a fan of that termi

Re: cumbersome mtree

2023-11-28 Thread Marc Espie
We used to use mtree for packages at well. At some point, it was simpler to just give up and roll our own format for the same thing. There are many many limitations to mtree

Re: Why is BRE still around? (Re: Porting shell scripts from Tiny Tools)

2023-11-19 Thread Marc Chantreux
else >&2 echo "$awk don't" fi <<-% baaab baab % for awk in gawk mawk "busybox awk"; do does done which leads me to gawkdoes mawkdon't busybox awk does Sorry about the fake news :/ Regards, Marc

Re: Why is BRE still around? (Re: Porting shell scripts from Tiny Tools)

2023-11-17 Thread Marc Chantreux
, causing > a great deal of confusion. It would be nice to compare all those langages. I just googled and found this: https://gist.github.com/CMCDragonkai/6c933f4a7d713ef712145c5eb94a1816 Regards and thanks again for enlightening me today. Marc

Why is BRE still around? (Re: Porting shell scripts from Tiny Tools)

2023-11-17 Thread Marc Chantreux
r good reason for BRE to be still alive? (perfomance, simplicity, or anything else). Regards. Marc

Re: Upgrading, release by release, from 6.8 to 7.4 -- my experience

2023-11-16 Thread Marc Espie
On Wed, Nov 15, 2023 at 03:12:09PM -0700, Austin Hook wrote: > One little glitch from all the process is that somehow I must have lost a > file or failed to delete a file that has something to do the default > character set files or pointers for xterm under "fvwm". A new xterm > starts automati

Re: __dead

2023-11-07 Thread Marc Espie
On Tue, Nov 07, 2023 at 03:08:18PM +, Lucretia wrote: > I've seen __dead a few places in the source code, does this mean it isn't > functional anymore, or maybe just deprecated? > It's the old non-standard representation for __attribute__(__noreturn__) in code, to stop the compiler whining

Re: mount softdep — does it improve the situation for unexpected shutdowns?

2023-11-05 Thread Marc Espie
Not quite sure how much has been discussed publically, but we don't currently have the manpower to handle lots of complicated parts, and it seems that softdep, in its current state, needs the hand of Kirk McKusick to work. So the current strategy has been to make the moving parts simpler (softdep,

Re: ldd error with setuid/setgid binaries

2023-10-18 Thread Marc Espie
On Wed, Oct 18, 2023 at 09:38:32PM +0200, Theo Buehler wrote: > On Thu, Oct 19, 2023 at 01:39:00AM +0900, Yoshihiro Kawamata wrote: > > From: Marc Espie > > Subject: Re: ldd error with setuid/setgid binaries > > Date: Wed, 18 Oct 2023 18:04:45 +0200 > > > > &

Re: ldd error with setuid/setgid binaries

2023-10-18 Thread Marc Espie
On Wed, Oct 18, 2023 at 11:41:12PM +0900, Yoshihiro Kawamata wrote: > From: "Theo de Raadt" > Subject: Re: ldd error with setuid/setgid binaries > Date: Wed, 18 Oct 2023 06:35:51 -0600 > > > You don't explain why you need to do this. You just completely skipped > > that. > > You don't justify w

Re: Understanding -current as 7.4 is released

2023-10-06 Thread Marc Espie
On Thu, Oct 05, 2023 at 12:45:56PM -0400, Ronald Dahlgren wrote: > Hello friends, > > I’ve been running -current for several months now. Recently I started using > “-D snap” when updating packages with pkg_add. > > I ask the list to help me understand what, if anything, I need to do with > my mac

Re: undocumented command switches -OR- fix documentation fully

2023-09-25 Thread Marc Espie
On Mon, Sep 25, 2023 at 09:05:40PM +0200, Rudolf Leitgeb wrote: > If you document a switch, you are basically required to keep that > functionality around forever. Given that the OpenBSD devs don't like > these --options all that much, I don't see that happening. Submitting > a patch won't change t

Re: undocumented command switches -OR- fix documentation fully

2023-09-25 Thread Marc Espie
Don't rant that long. Sometimes, documentation and code get out-of-synch for a lot of reasons. - trying out stuff and documenting later. - plain forgetting to update the documentation. - having some stuff for a transition period, and then killing it. Your point that stuff that stays around, shou

Re: undocumented command switches -OR- fix documentation fully

2023-09-23 Thread Marc Espie
Apart from the obvious troll, I believe there is a point. >From time to time, I go to other projects and try to figure out how far we are from compatibility... Not documenting compat options means that somebody outside the project would have to guess at stuff, instead of just reading the manpage

Re: pkg_add -vV slow progression

2023-09-19 Thread Marc Espie
On Sun, Sep 17, 2023 at 09:17:58PM +0300, Mihai Popescu wrote: > Hello, > > Is there any recent major change in base packages or pkg_add? > I ask because the pkg_add -vV is slower than usual at each package, > most of the time spent in Extracting ... phase. > I use amd64 recent snapshot. I checked

Re: Update from 6.5 to 7.3

2023-09-08 Thread Marc Espie
On Fri, Sep 08, 2023 at 06:36:57PM +0200, Alessandro Baggi wrote: > > > Il 08/09/23 18:24, Peter N. M. Hansteen ha scritto: > > On Fri, Sep 08, 2023 at 10:01:45AM +0200, Alessandro Baggi wrote: > > > I've a problem. I need to upgrade OpenBSD from 6.5 to 7.3 on an APU2D. > > > This > > > is a fir

Re: Why does `pkg_info -m` show quirks?

2023-08-20 Thread Marc Espie
On Sat, Aug 19, 2023 at 07:21:58PM +0200, Ingo Schwarze wrote: > Hi, > > Stuart Henderson wrote on Fri, Aug 18, 2023 at 05:52:07PM -: > > On 2023-08-18, l...@ena.re wrote: > > >> Also, what is the reason the quirks package does not have a man page? > > Usually, there is no manual page docum

Re: error when pkg_add'ing

2023-07-02 Thread Marc Espie
On Tue, Jun 27, 2023 at 08:56:41PM +0100, li...@xza.fr wrote: > > Having A LOTS of problems in pkg_check usually means something in your > > process is REALLY BAD. > > > > As the guy who wrote (most of) pkg_add/pkg_check, I don't need pkg_check > > all that often. > > > Just wanted to say: thank

Re: error when pkg_add'ing

2023-06-25 Thread Marc Espie
On Sat, Jun 24, 2023 at 06:44:11PM +0200, Pau A.S. wrote: > thanks so much, Marcus; pkg_check helped to identify a LOT of corrupted > files, which I deleted; after that I ran pkg_add -vu and it looks that one > file survived: Having A LOTS of problems in pkg_check usually means something in your p

ifconfig vs lladdr

2022-11-25 Thread Marc Espie
Maybe I'm stupid, but the way we proceeded with disks was with making euids integral part of mount(8). Why not do the same with lladdr and ifconfig (and lower parts) (possibly with an option, though 60a44ce81465 is rather recognizable as a MAC) ?

Re: xine's ffmpegaudio doesn't downmix, sio_getpar() reports 6 channels instead of 2

2022-10-03 Thread Marc Espie
On Mon, Oct 03, 2022 at 09:26:31AM +0200, Alexandre Ratchov wrote: > On Thu, Sep 22, 2022 at 04:31:58PM +, adr wrote: > > Hi, > > > > first of all, I've never contributed to the xine project, and > > I don't have any experience with sndio, so bear with me... > > > > Frustrated with the bad so

inaccuracy in the faq regarding ntpd

2022-09-26 Thread Marc Beste
t; message will appear in /var/log/daemon' it should say: 'a "clock is now synced" message will appear in /var/log/daemon' I have observed this on OpenBSD 7.1 amd64. Thank you very much for your time and effort. Best regards, Marc

Re: A minimal browser in base

2022-09-14 Thread Marc Espie
We used to have lynx in the base system. It was removed because of security concerns and no-one willing to audit/replace it. This is a fairly common pattern in OpenBSD. Considering the complexity of the web, I don't see this ending any differently with any other text browser.

Re: port builds with inline source

2022-07-05 Thread Marc Espie
On Wed, Jun 29, 2022 at 04:51:49PM -0700, Lyndon Nerenberg (VE7TFX/VE6BBM) wrote: > We have a number of in-house utilities that we push out as packages. > Right now these are built using the standard make framework, with > a bunch of hand-crafted glue to build and sign the packages before > pushin

reminder: ports snapshots go with base snapshots

2022-06-04 Thread Marc Espie
If you don't update base first (as you should always do), recent package snapshots will break. Code to parse the hash after @option always-update was added on May 26. Package snapshots built after May 28 use that new syntax. You will notice fairly early, as quirks uses @option always-update th

Re: broken Compress::Bzip2 module in OpenBSD 7.1

2022-05-31 Thread Marc Espie
On Mon, May 30, 2022 at 08:22:27PM -0300, Alceu Rodrigues de Freitas Junior wrote: > Hello folks, > > I think I might have found a bug with OpenBSD 7.1 (7.1 GENERIC.MP#465 amd64) > default perl, but first I would like to at least investigate a bit further. > > During a execution of a CPAN Smoker

Re: OpenBSD ftp and libtls: how to use session resumption with -S

2022-05-08 Thread Marc Espie
On Sun, May 08, 2022 at 10:42:52AM +0200, Hiltjo Posthuma wrote: > On Sat, May 07, 2022 at 10:13:40PM +0200, Marc Espie wrote: > > On Fri, May 06, 2022 at 08:13:42AM -, Stuart Henderson wrote: > > > On 2022-05-06, Theo Buehler wrote: > > > > While we could readil

Re: OpenBSD ftp and libtls: how to use session resumption with -S

2022-05-07 Thread Marc Espie
On Fri, May 06, 2022 at 08:13:42AM -, Stuart Henderson wrote: > On 2022-05-06, Theo Buehler wrote: > > While we could readily make libssl fall back to the legacy stack if > > SSL_OP_NO_TICKET is disabled, I don't think this optimization outweighs > > the overall benefit of TLSv1.3 - better pro

Re: Howto do "a detailed cleanup with the aid of the sysclean package"?

2022-05-06 Thread Marc Espie
Look, can we all just agree it is just a question of adding appropriate verbiage to the port/package, sticking a huge CAVEAT on the documentation leading to it, and go back to writing actual code ?

Re: Howto do "a detailed cleanup with the aid of the sysclean package"?

2022-05-04 Thread Marc Espie
On Wed, May 04, 2022 at 07:45:32AM -0400, Raul Miller wrote: > On Wed, May 4, 2022 at 4:15 AM Sebastien Marie wrote: > > The main problem I am seeing would be maintaining such lists, and it > > necessary > > means manual addition to add only "safe" files to remove (no libraries at > > least). >

Re: pkg-readmes missing for gnome and kde?

2022-05-02 Thread Marc Espie
On Sun, May 01, 2022 at 11:31:07PM +0300, Mihai Popescu wrote: > On Sun, May 1, 2022 at 11:17 PM Antoine Jacoutot > wrote: > > > > On Sun, May 01, 2022 at 11:06:15PM +0300, Mihai Popescu wrote: > > > On Sun, May 1, 2022 at 9:05 PM Antoine Jacoutot > > > wrote: > > > > > > > > On Sun, 2022-05-01

Re: Font Path prompt in pkg_add

2022-04-29 Thread Marc Espie
On Thu, Apr 28, 2022 at 02:37:39PM -0500, Christopher Turkel wrote: > I'm on OpenBSD AMD64 7.1, fresh install > I noticed when adding fonts via pkg_add it no longer prints out "You may > wish to" after installation is finished. It's related to the evolution of X windows. Quite a few years ago

Re: OpenBSD and multitasking

2022-04-27 Thread Marc Espie
On Tue, Apr 26, 2022 at 01:40:46PM +0200, Stefan Hagen wrote: > Mihai Popescu wrote (2022-04-26 01:13 CEST): > > I use OpenBSD amd64 snapshots on the following dmesg hardware. > > The download rate on a browser was slow and I figured out with some > > memory mapped partition that disk transfer rate

syspatch brought system to 7.1-stable (was Re: Sprurios errors from syspatch -c)

2022-04-22 Thread Marc Peters
eady hit by that mishap. Best, Marc

Re: Auto layout for disk partitions - a new user's perspective

2022-04-19 Thread Marc Espie
For people who really want to tinker with the ports system, perhaps non intuitively, bulk(8) is the manpage that contains the most exhaustive set of information about how you might want to configure your system and the choices involved.

Re: [www] ports: delete note about $OpenBSD$

2022-04-07 Thread Marc Espie
On Thu, Apr 07, 2022 at 02:33:36PM +0300, Mikhail wrote: > This advice no longer needed. > > diff --git a/faq/ports/guide.html b/faq/ports/guide.html > index 9cfe0db80..ae3d1d79c 100644 > --- a/faq/ports/guide.html > +++ b/faq/ports/guide.html > @@ -1303,12 +1303,6 @@ OpenBSD is strongly security-

Re: chroot for go webserver with pledge and unveil

2022-03-16 Thread Marc Espie
On Tue, Mar 15, 2022 at 11:32:19PM +0100, i...@tutanota.com wrote: > Since Go has support for pledge and unveil, I was thinking about > "imitating" the setup for httpd. > > I basically need to run a Go webserver with access to MariaDB, > but would like to chroot the Go webserver. > > I was thinki

Re: Please put vi in base

2022-03-14 Thread Marc Espie
On Sun, Mar 13, 2022 at 05:54:03PM -0700, Jacqueline Jolicoeur wrote: > Hi, > > On Mar 12 16:39, i...@tutanota.com wrote: > > I know I am not going to get any points for this, but I had to fix a broken > > OpenBSD box today that could not boot and I didn't have any network for a > > couple of ho

Re: What happened to www/art on CVSWeb? Why is it empty?

2022-02-10 Thread Marc Espie
On Thu, Feb 10, 2022 at 11:25:40AM -0500, Nick Holland wrote: > On 2/10/22 6:34 AM, Kacper Wilgus wrote: > > I tried to download some artwork from these pages: > > > > https://www.openbsd.org/art1.html > > https://www.openbsd.org/art2.html > > https://www.openbsd.org/art3.html > > > > But only th

Re: pkg_add -u fails with "failed to open CA file '/etc/ssl/cert.pem': Permission denied"

2022-01-24 Thread Marc Espie
On Mon, Jan 24, 2022 at 10:21:33AM +0100, Harald Dunkel wrote: > I highly appreciate the carefulness, but the error message doesn't > indicate a user "_pkgfetch", nor is it mentioned on pkg_add(1). > Please reconsider my suggestion made on 2022-01-14: > Note that smtpd(8) doesn't mention all the

Re: pkg_add -u fails with "failed to open CA file '/etc/ssl/cert.pem': Permission denied"

2022-01-18 Thread Marc Espie
On Tue, Jan 18, 2022 at 04:37:00PM +0100, Harald Dunkel wrote: > On 2022-01-17 18:02:25, Marc Espie wrote: > > > > Lol. > > > > cert.pem only contains public certificates. Insisting on only root being > > able to read it means you are going to run code as root

Re: pkg_add -u fails with "failed to open CA file '/etc/ssl/cert.pem': Permission denied"

2022-01-17 Thread Marc Espie
On 2022-01-14, Harald Dunkel wrote: > On 2022-01-14 10:42:56, Harald Dunkel wrote: >> >> Hi folks, >> >> trying to upgrade the installed packages I get >> >> # pkg_add -u >> https://cdn.openbsd.org/pub/OpenBSD/7.0/packages-stable/amd64/: TLS connect >> failure: failed to open CA file '/etc/ssl

Re: Install latest package without prompts on OpenBSD 7.0

2022-01-10 Thread Marc Espie
On Mon, Jan 10, 2022 at 10:54:22AM -0500, Ian Darwin wrote: > > > > I am working on OpenBSD 7.0, x86_64. I'm trying to script an install > > > > of developer tools I use, like GCC and Git. When I attempt to install > > > > GCC I am prompted: > > > > > > > > $ sudo pkg_add gcc g++ > > > > q

Re: Install latest package without prompts on OpenBSD 7.0

2022-01-10 Thread Marc Espie
[forgot to Cc the list] On Mon, Jan 10, 2022 at 11:36:04AM +0100, Marc Espie wrote: > On Sun, Jan 09, 2022 at 10:03:01PM -0500, Jeffrey Walton wrote: > > Hi Everyone, > > > > I am working on OpenBSD 7.0, x86_64. I'm trying to script an install > > of developer too

Re: pkg_add issues

2022-01-03 Thread Marc Espie
On Mon, Jan 03, 2022 at 12:21:17PM -, Stuart Henderson wrote: > On 2022-01-02, Jon Fineman wrote: > > I am in New Jersey. Is there a way for me to tell what the cdn was > > pointing to to help find the slow/sick server? > > It's shown in HTTP response headers from cdn. Almost certainly > it

Re: Exit status of pkg_add

2021-10-21 Thread Marc Espie
On Tue, Oct 19, 2021 at 10:42:04AM +0900, Yuichiro NAITO wrote: > Following patch changes pkg_add to return a error code, > if a package name is wrong. > > diff --git a/usr.sbin/pkg_add/OpenBSD/AddDelete.pm > b/usr.sbin/pkg_add/OpenBSD/AddDelete.pm > index 7a968cbf05d..39bee874ff1 100644 > --- a/u

Re: Keeping a personal ports branch

2021-10-15 Thread Marc Espie
On Fri, Oct 15, 2021 at 10:25:17AM -, Rubén Llorente wrote: > Hi there! > > I am wondering how does people around here keep local branches of the ports > tree for personal use. > > The reason I am asking is because I keep some patched ports which are suited > to solve my problems, but not sui

Re: pkg_add still reporting incorrect actions

2021-10-12 Thread Marc Espie
On Sun, Oct 10, 2021 at 09:29:24AM -, Stuart Henderson wrote: > On 2021-10-10, Otto Moerbeek wrote: > > On Sun, Oct 10, 2021 at 11:09:58AM +0300, Mihai Popescu wrote: > > > >> On Sat, Oct 9, 2021 at 11:55 PM Chris Bennett < > >> cpb_m...@bennettconstruction.us> wrote: > >> > >> > On Sat, Oct

Re: Why is tmpfs not working on OpenBSD?

2021-09-13 Thread Marc Espie
to get people to look at it, especially when it is not the most used port in the world. (I do follow the "okay required to new ports rule" and I have to nag to get things in as well) -- Marc

Re: Why is tmpfs not working on OpenBSD?

2021-09-06 Thread Marc Espie
On Sun, Sep 05, 2021 at 10:12:33PM +, iio7 wrote: > > On 2021-09-05, iio7 < > i...@protonmail.com > > wrote: > >> # mount -t tmpfs tmpfs /home/foo/tmp/ > >> mount_tmpfs: tmpfs on /home/foo/tmp: Operation not supported > > > It isn't built into the standard kernels, disabled with this commit::

Re: vi: count occurrences of a substring

2021-09-04 Thread Marc Chantreux
> Otherwise, if I try to just type > :!sed s/abc/abc\/g % | grep -c abc > and press enter, I only get the same output I also get out of same here! I so much wish it worked! regards marc

(technology sucks anyway) Re: vi: count occurrences of a word

2021-09-04 Thread Marc Chantreux
go :) > Is anyone able to make sense of this? Does anyone know if there's a > reason or rationale behind the BSD sed implementation when it comes to > newlines? life is made of trades off :) sorry. regards, marc

Re: vi: count occurrences of a word

2021-09-04 Thread Marc Chantreux
Your new subject line is slightly imprecise, as words are usually > whitespace-delimited, and I was "looking for a way to count > occurrences of > 'abc' in FILE". Not every substring is a word. right ... wasn't thinking that much to the name. sorry :) regards marc

Re: vi: count occurrences of a word

2021-09-04 Thread Marc Chantreux
ditor but it's really helpful for simple sysop tasks. >From time to time, someone starts a new clone to try to reach a new balance but vim and nvi pleases enough people so those projects are doomed. regards, marc

vi: count occurrences of a word

2021-09-03 Thread Marc Chantreux
, ( length $$_{name} ? $$_{name} : "NONAME" ) ), @{ decode_json $_ } ' $1 | fzf | awk '{print "bu "$1}' > $2 } regards marc

Re: vi golf: command on a motion?

2021-09-03 Thread Marc Chantreux
ng the same replacement via a vi command is using the > & command which operates on one line. i forgotten & (not that useful in vim) but yes! now you reminds me, it makes perfect sense to use it in nvi. thanks. marc

vi golf: command on a motion?

2021-09-03 Thread Marc Chantreux
to replace the ! by s/foo/bar and i get the job done. anything i missed in the doc to be that concise with vi? regards. marc

Re: Why 16 year old zlib 1.2.3 in OpenBSD 6.9 released May 2021 please?

2021-07-06 Thread Marc Espie
On Thu, Jun 24, 2021 at 02:56:16PM -0600, Theo de Raadt wrote: > > I think the easiest path here is to incorporate the new upstream into a > > port, unless someone is familiar with zlib and can cherrypick out the > > commit(s) that resolve the issue. (I didn't find zlib in ports already.) > > That

Re: Who is responsible for ports.su? (admittedly a non-canon resource)

2021-06-15 Thread Marc Espie
I think that his approach is doomed to fail. There are a lot of tricky parts to flavors and multipackages and normalization. If you don't use the actual ports/packages framework code, you have to figure it out all over again by yourself. and there are lots of gremlins. The official code is bas

Re: Packages/libraries in disarray after sysupgrade

2021-05-14 Thread Marc Espie
On Thu, May 13, 2021 at 10:47:11PM +, tetrahe...@danwin1210.me wrote: > After upgrading 6.8->6.9 (stable, not current) using sysupgrade, I am > finding it not possible to install packages via pkg_add > > When I try to install something, I get a series of errors like " dependency library name>:

Re: Can't compile php from ports

2021-05-08 Thread Marc Espie
On Fri, May 07, 2021 at 11:08:00PM +, Mik J wrote: > Hello, > Does anyone knows why compiling php from ports systematically fails ? It's > been since openbsd 6.8 that it acts this way Why do you ask this on misc@ instead of ports@ ? Second, it actually works for all of us... so it must be so

Re: Fwd: rethinking terminal login with security in mind

2021-05-05 Thread Marc Espie
On Wed, May 05, 2021 at 01:44:24AM +0200, Alessandro Pistocchi wrote: > Sorry, my keyboard went crazy and the message was sent incomplete. > > Continuing: normally the entry of username is immediately followed by the > password entry. > However, if the OS is busy for any reason between the two ent

Re: Cultural underground legende Seymour Cray and his legacy

2021-04-22 Thread Marc Espie
Is this a new UMF experiment ?

Re: Documentation on OpenBSD's 3-process privsep model?

2021-03-30 Thread Marc Espie
es pointed to skeleton examples at > > github.com/krwesterback/newd and github.com/krwesterback/newdctl, but > > those repos are now dead and it's unclear how authoritative they were > > in the first place. > > > > > > Blind leading the blind here, but I t

Re: GCC only on OpenBSD adds -L/usr/lib as prefix, why? Re: OpenBSD: Failing to link custom libpng to custom libz, any thoughts how fix?

2021-03-03 Thread Marc Espie
On Wed, Mar 03, 2021 at 06:10:22PM +, Bob wrote: > Does that -L/usr/lib really need to be in the leading position??? I have zero idea how to do that purely in specs. Have fun tinkering. This is probably something we'll adopt but low priority. > * Where is GCC's default specs file say fo

  1   2   3   4   5   6   7   8   9   10   >