Re: problems setting up PORTS_PRIVSEP
The man page of bsd.port.mk, particular PORTS_PRIVSEP provides this suggestion 'permit nopass setenv {} user cmd pkg_add' I don't know much about what pkg_add can do, but when building packages with many dependencies, password prompt greets for every dependency, persist option doesn't work across the dependencies for the above command, so it becomes a pain in the ass. I think persist doesn't work because of the setenv part, since it is different for every package/sub-package What do you suggest?
update a port
I just mailed a update diff for a package, now how does the diff get accepted, does the project maintainer look into it? Is there a maintainer for all packages? I have never tried this before, but I hope to get into some serious porting. Also can anyone guide me on how to get diff format with the INDEX,RCS,Version,etc.
Re: problems setting up PORTS_PRIVSEP
I didn't knew anything about the mystuff directory. Anyway I tried it. mkdir /usr/ports/mystuff mkdir /usr/ports/mystuff/x11 cp -r /usr/ports/x11/dmenu /usr/ports/mystuff/x11/dmenu chown -R user:wsrc /usr/ports/mystuff cd /usr/ports/mystuff/x11/dmenu make install And it was successfull, so you should check the file permissions in and of mystuff dir. If build was successfull in /usr/ports/x11/dmenu, then permission could be skewed in mystuff.("local user":"wsrc") If no conflict in that, I think you could have messed up your /usr/ports/x11/dmenu dir before copying it, did you edit it?
Porting from linux
I want to get into porting, I have experience installing from source particularly on linux. Is there a difference in how package works on linux and openbsd? Is there a guide anyone can point me to porting linux packages to openbsd? Are there different syscalls? Directory systems are almost the same, in concern to packages. Is there a need to edit the source?
Re: problems setting up PORTS_PRIVSEP
I don't understand the logic of this mkdir /usr/ports/mystuff/x11 cp -R /usr/ports/x11/dmenu /usr/ports/mystuff/x11/ cd /usr/ports/mystuff/x11/dmenu make package to build a package, one usually just runs command cd /usr/ports/x11/dmenu make install try and see if this gives an error.
Re: problems setting up PORTS_PRIVSEP
You only need to change permissions on the /usr/obj Run these as root install -dm0775 -o _pbuild -g _pbuild /usr/obj install -dm0775 -o _pbuild -g _pbuild /usr/obj/ports Also the variables DISTDIR and PACKAGE_REPOSITORY are redundant, since those are the default values anyway. In /etc/doas.conf, replace the three commands with their complete paths. This will save a headache, believe me. Setting WRKOBJDIR is not really usefull, the default location(/usr/ports/pobj) works fine, unless it's an aesthetic issue, since it deals mostly with temporary data Only real use according to me, is to set /usr/ports as read-only by pushing all work directories out of it.
ports: pkg_add as root
I'm have never tried the ports system before. I have read through the faq and the man pages, but I get stuck at building dependencies. I follow through the fetch,checksum steps and then for 'make prepare' as local user, I'm greeted with following message. This is for the 'rsnapshot' package ===> Building package for rsync-3.1.3 Create /usr/ports/packages/amd64/all/rsync-3.1.3.tgz Creating package rsync-3.1.3 Link to /usr/ports/packages/amd64/ftp/rsync-3.1.3.tgz ===> Cleaning for rsync-3.1.3 ===> Verifying specs: c ===> found c.95.1 ===> Installing rsync-3.1.3 from /usr/ports/packages/amd64/all/ pkg_add: pkg_add must be run as root *** Error 1 in /usr/ports/net/rsync (/usr/ports/infrastructure/mk/bsd.port.mk:2028 '/var/db/pkg/rsync-3.1.3/+CONTENTS': @/usr/bin/env -i PKG...) *** Error 1 in /usr/ports/net/rsync (/usr/ports/infrastructure/mk/bsd.port.mk:2451 'install') *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:2135 '/usr/ports/pobj/rsnapshot-1.4.2/.dep-net-rsync') *** Error 1 in /usr/ports/net/rsnapshot (/usr/ports/infrastructure/mk/bsd.port.mk:2451 'prepare') I have successfully installed programs with no dependencies using command 'doas make install' as the final step, after fetch,patch,gen,configure,etc. Is this the right way? Why doesn't a make install command as a local user while in 'net/rsnapshot' call doas on it's own?
zynaddsubfx plugin in lmms-1.2.0
I installed lmms-1.2.0 using pkg_add command. And the zynaddsubfx plugin which is supposed to be included in lmms is not there. Opening most demo's yields plugin not found error. For those leeway can be suggested, but zynaddsubfx is a very important plugin. I hope the porters of lmms look into this.
Server certificate verification error
After updating to a recent snapshot I faced the following messages upon running fetchmail (ver=6.3.26p3) command. The config .fetchmailrc is the same as before $ fetchmail fetchmail: Server certificate verification error: self signed certificate fetchmail: Missing trust anchor certificate: /OU=No SNI provided; please fix your client./CN=invalid2.invalid fetchmail: This could mean that the root CA's signing certificate is not in the trusted CA certificate location, or that c_rehash needs to be run on the certificate directory. For details, please see the documentation of --sslcertpath and --sslcertfile in the manual page. fetchmail: Warning: the connection is insecure, continuing anyways. (Better use --sslcertck!) fetchmail: No mail for putridsou...@gmail.com at pop.gmail.com >From this I can extract that the certs on this snapshot are not configured properly. A snapshot before the most recent one the messages were quite different - there was ssl socket error now it's the above. $ dmesg OpenBSD 6.6-current (GENERIC.MP) #613: Thu Jan 16 13:52:56 MST 2020 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Re: ttyC0 floods with error messages
I'm the original poster of this thread, don't mean to whip a dead horse, but this post is to confirm the state of this issue. The most recent -current release before this post has fixed this issue for me. OpenBSD 6.6-current (GENERIC.MP) #573: Sat Dec 28 19:13:57 MST 2019 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP I'm longer greeted with the given train of messages from kernel. >wsmouse0 at ums0 mux 0 >wsmouse0 detached >ums0 detached >uhidev2 detached >uhidev2 at uhub5 port 2 configuration 1 interface 0 "Logitech USB Optical >Mouse" rev 2.00/72.00 addr 3 >uhidev2: iclass 3/1 >ums0 at uhidev2: 3 buttons, Z dir Major props to the OpenBSD Devs for dealing with this successfully and in such a short time.
Re: pipe html mail to links
> Should this not just need a .mailcap entry: > > text/html; /usr/local/bin/lynx -dump -force_html %s I tried your way only changed: lynx -> links .mailcap text/html; /usr/local/bin/links -dump %s But mail did not call links when I tried to read a html mail using "p [message]" command.
Set colors in links-1.03p0
Is it possible to edit the color codes for various html elements in links. Like the options available in w3m browser active_link: blue image_link:green link:purple ... etc I failed to find any info on this in the man page.
pipe html mail to links
I wish to pipe my mails from the standard openbsd mail command to links. But I failed to find any way to pipe in message or file from stdin to links Following three lines are edits I want to do expect use links instead to lynx .mailrc # Reading HTML mail set pipe-text/html="lynx -dump -force_html /dev/stdin" I tried this with "links -dump /dev/stdin" I'm greeted with following error Unkown file type
Re: netsurf-fb fails on framebuffer console
The port maintainer has confirmed both sdl and x interface for netsurf-fb require X. Is it possible to modify sdl source code to work with openbsd framebuffer driver? In my case it's inteldrm driver. Anyway here is dmesg. OpenBSD 6.6-current (GENERIC.MP) #563: Tue Dec 24 02:24:52 MST 2019 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 8449933312 (8058MB) avail mem = 8181399552 (7802MB) mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xc9cc7000 (90 entries) bios0: vendor American Megatrends Inc. version "C4" date 12/03/2018 bios0: Gigabyte Technology Co., Ltd. H110M-H acpi0 at bios0: ACPI 6.0 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC FPDT FIDT MCFG SSDT SSDT HPET SSDT SSDT UEFI SSDT LPIT SSDT SSDT SSDT SSDT SSDT DBGP DBG2 BGRT WSMT acpi0: wakeup devices PS2K(S3) RP09(S4) PXSX(S4) RP10(S4) PXSX(S4) RP11(S4) PXSX(S4) RP12(S4) PXSX(S4) RP13(S4) PXSX(S4) RP01(S4) PXSX(S4) RP02(S4) PXSX(S4) RP03(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 3601.35 MHz, 06-9e-0b cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu0: 256KB 64b/line 8-way L2 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges cpu0: apic clock running at 24MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 3600.01 MHz, 06-9e-0b cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu1: 256KB 64b/line 8-way L2 cache cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 3600.01 MHz, 06-9e-0b cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu2: 256KB 64b/line 8-way L2 cache cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz, 3600.01 MHz, 06-9e-0b cpu3: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,PAGE1GB,RDTSCP,LONG,LAHF,ABM,3DNOWP,PERF,ITSC,FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,XSAVEC,XGETBV1,XSAVES,MELTDOWN cpu3: 256KB 64b/line 8-way L2 cache cpu3: smt 0, core 3, package 0 ioapic0 at mainbus0: apid 2 pa 0xfec0, version 20, 120 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xf800, bus 0-63 acpihpet0 at acpi0: 2399 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (PEG0) acpiprt2 at acpi0: bus -1 (PEG1) acpiprt3 at acpi0: bus -1 (PEG2) acpiprt4 at acpi0: bus 5 (RP09) acpiprt5 at acpi0: bus 6 (RP10) acpiprt6 at acpi0: bus -1 (RP11) acpiprt7 at acpi0: bus -1 (RP12) acpiprt8 at acpi0: bus -1 (RP13) acpiprt9 at acpi0: bus -1 (RP01) acpiprt10 at acpi0: bus -1 (RP02) acpiprt11 at acpi0: bus -1 (RP03) acpiprt12 at acpi0: bus -1 (RP04) acpiprt13 at acpi0: bus 1 (RP05) acpiprt14 at acpi0: bus 2 (RP06) acpiprt15 at acpi0: bus 3 (RP07) acpiprt16 at acpi0: bus 4 (RP08) acpiprt17 at acpi0: bus -1 (RP17) acpiprt18 at acpi0: bus -1 (RP18) acpiprt19 at acpi0: bus -1 (RP19) acpiprt20 at acpi0: bus -1 (RP20) acpiprt21 at acpi0: bus -1 (RP21) acpiprt22 at acpi0: bus -1 (RP22) acpiprt23 at acpi0: bus -1 (RP23)
netsurf-fb fails on framebuffer console
I'm running openbsd 6.6-current Dec24 snapshot The browser works perfectly within X. But fails without it. Following output is given by command:netsurf-fb -v (0.00) utils/log.c:264 nserror nslog_init(nslog_ensure_t *, int *, char **): NetSurf version '3.9 (17th July 2019)' (0.59) utils/log.c:275 nserror nslog_init(nslog_ensure_t *, int *, char **): NetSurf on , node , release <6.6>, version , machine (0.000144) utils/messages.c:140 nserror messages_add_from_file(const char *): Loading Messages from '/usr/local/share/netsurf-fb/Messages' (0.002182) content/handlers/image/image_cache.c:432 nserror image_cache_init(const struct image_cache_parameters *): Image cache initialised with a limit of 3145728 hysteresis of 629145 (0.002204) content/handlers/html/html_css_fetcher.c:70 _Bool html_css_fetcher_initialise(lwc_string *): html_css_fetcher_initialise called for x-ns-css (0.002310) content/fetchers/curl.c:1493 nserror fetch_curl_register(void): curl_version libcurl/7.67.0 LibreSSL/3.0.2 zlib/1.2.3 nghttp2/1.40.0 (0.004905) utils/useragent.c:69 void user_agent_build_string(void): Built user agent "NetSurf/3.9 (OpenBSD)" (0.004914) content/fetchers/curl.c:1584 nserror fetch_curl_register(void): cURL linked against openssl (0.004931) content/fetchers/curl.c:177 _Bool fetch_curl_initialise(lwc_string *): Initialise cURL fetcher for http (0.004936) content/fetchers/curl.c:177 _Bool fetch_curl_initialise(lwc_string *): Initialise cURL fetcher for https (0.004943) content/fetchers/data.c:61 _Bool fetch_data_initialise(lwc_string *): fetch_data_initialise called for data (0.004983) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for adblock.css (0.005008) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for default.css (0.005027) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for internal.css (0.005043) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for quirks.css (0.005077) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for credits.html (0.005097) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for licence.html (0.005122) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for welcome.html (0.005139) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for maps.html (0.005191) content/fetchers/resource.c:288 _Bool fetch_resource_initialise(lwc_string *): redirect url for netsurf.png (0.005279) content/llcache.c:3510 nserror llcache_initialise(const struct llcache_parameters *): llcache initialising with a limit of 9437184 bytes (0.005302) frontends/framebuffer/gui.c:469 _Bool process_cmdline(int, char **): argc 1, argv 0x7f7f7488 WSCONS error: ioctl WSDISPLAYIO_LINEBYTES: Inappropriate ioctl for device Unable to init SDL: ioctl WSDISPLAYIO_LINEBYTES: Inappropriate ioctl for device (0.008676) frontends/framebuffer/framebuffer.c:609 nsfb_t *framebuffer_initialise(const char *, int, int, int): Unable to initialise nsfb surface Unable to initialise framebuffer
Re: ttyC0 floods with error messages
The error does not seem to be a faulty mouse and I don't use a KVM switch anyway so it is not the source. Following on pervious reply, I tried on a new mouse. But was greeted with the same error: wsmouse0 detached ums0 detached uhidev0 detached uhidev0 at uhub0 port 4 configuration 1 interface 0 "PixArt USB Optical Mouse" rev 2.00/1.00 addr 2 uhidev0: iclass 3/1 ums0 at uhidev0: 3 buttons, Z dir wsmouse0 at ums0 mux 0 Unless I'm the unfortunate person destined to own all faulty mice in the world, I look forward to a solution. Is there anyone here who uses a desktop setup with a mouse, not greeted with these pesky errors. Are experts on here sure this is not a bug, or lack of proper driver. More info on the latter, this test consisted of Logitech M90 and Dell MS111-P mouse.
Re: cvs checkout of src,ports and xenocara gives duplicate key msg
Currently I'm running the -stable OPENBSD-6.6 I want to set up the ports repository so I followed the faqs to set up a /usr/ports partition, changed the group to wsrc and file modes to 775. Then I added my local user to wsrc group. After changing directory to /usr, I hit the following command cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs checkout \ -rOPENBSD_6_6 -P ports The output; cvs server: duplicate key found for 'y' U ports/.cvsignore U ports/Makefile ..and then the normal output followed.
cvs checkout of src,ports and xenocara gives duplicate key msg
I recently did a checkout of the src,ports and xenocara repositories and was greeted by the following message on each checkout. After this the command proceeds smoothly. Also doing "echo $?" gives "0" so it's not a error. cvs server: duplicate key found for 'y' A quick search online tied this message to file corruption. On further testing, the message repeated itself. Can anyone indicate if this has something to do with my hard disk or anoncvs server.
ttyC0 floods with error messages
After boot, the following error message floods the virtual console on ttyC0 repeatedly, rest of virtuals console stay clear somehow. Is there a way to treat this permanently, other than Ctrl-l everytime, or disconnecting the mouse. There must be some config to disable this direct dumping of errors onto console. wsmouse0 at ums0 mux 0 wsmouse0 detached ums0 detached uhidev2 detached uhidev2 at uhub5 port 2 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/72.00 addr 3 uhidev2: iclass 3/1 ums0 at uhidev2: 3 buttons, Z dir
Openssh over a mobile network
I am not able to ssh into my home computer connected to router, the client device (termux on android) is on a mobile network. Is there something I am supposed to know?. Because I can ssh into my computer easily when when both devices are on the same router network.