12:46:44 Is there a package for pkgsrc for emacs-nox11 that has support for dynamic modules? 13:06:18 neirac: I don't use emacs, what does that look like in practice and what errors, if any, are our current packages outputting? 13:12:18 jperkin I use vterm in emacs and that pop ups an error : Your build of Emacs lacks dynamic modules support 13:13:50 that should be a flag when compiling, I'm trying to build it myself to get used to the process, this is still valid? https://www.perkin.org.uk/pages/pkgsrc-binary-packages-for-osx.html , I don't want to do the pbulk way I'm just building one package, is that possible ? 13:14:30 just git clone pkgsrc, go to the directory of the software and bmake ? 13:15:56 I just migrated from homebrew I found a couple of packages that should be quick to add once I get use to the process, and at the end I'm using pkgsrc in my servers so is just easier to just consolidate in pkgsrc 13:16:29 for emacs is just add --with-modules on the configure step 13:41:55 that link is pretty old at this point, you can either bootstrap yourself or install my binary packages and then just build emacs 13:48:02 if you're using my binaries then adding DEPENDS_TARGET=bin-install and BINPKG_SITES=https://pkgsrc.smartos.org/packages/Darwin/11.3/arm64 (or x86_64) to /opt/pkg/etc/mk.conf.local will install binary packages as dependenceis 13:48:32 I should probably put those in my release mk.conf 13:50:12 the other thing you may need to add is OSX_SDK_PATH pointing to a valid SDK in /Library/Developer/CommandLineTools/SDKs, as I specifically use an older SDK in my binary packages to make the work across multiple OS releases 13:52:07 I'll ask on the list why it's not enabled and unless there are objections I'll add it 13:53:20 jperkin thanks!, I'll try to make those changes to see if I could build a package in macos, now I'm just getting configure: error: cannot run C compiled programs. 13:54:25 have a look at config.log, but that could be due to the OSX_SDK_PATH thing 13:55:58 jperkin I see clang: error: unsupported option '-V -isysroot' I'll add the OSX_SDK_PATH to mk.conf then 13:57:10 e.g. on my laptop I have OSX_SDK_PATH=/Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk 13:59:49 I just built it --with-modules and it builds and runs at least 14:01:49 jperkin what's the value ofMACOSX_DEPLOYMENT_TARGET in your /opt/pkg/etc/mk.conf 14:02:40 11.3, that's what my build machines use 14:03:07 I could probably ditch that at release time too 14:03:27 be nice if building stuff worked out of the box for everyone 14:05:25 ok, so commenting out MACOSX_DEPLOYMENT_TARGET is probably simplest, then in theory you don't need to set OSX_SDK_PATH 14:15:57 if I comment MACOS_DEPLOYMENT_TARGET bmake fails with ERROR: No suitable Xcode SDK or Command Line Tools installed. 14:17:54 jperkin adding BINPKG_SITES and DEPENDS_TARGET=bin-install make it advance but fails saying there is no dlopen? is odd that should be in every unix as far as I know https://paste.ec/paste/KyT4USHp#maNmXGpw+dwMBeY+bxeHV1PLnul0LrmeOwW+giCFpHH 14:25:36 is "/usr/bin/xcrun --sdk macosx --show-sdk-path" empty or something? 14:26:49 output for that command is: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk 14:29:13 but there's no /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/stdio.h? 14:30:13 there is one, file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk/usr/include/stdio.h: c program text, ASCII text 14:30:39 just trying to figure out how you are reaching here: https://github.com/NetBSD/pkgsrc/blob/trunk/mk/platform/Darwin.mk#L131 14:31:02 oh, do you still have OSX_SDK_PATH set? 14:50:31 I just tried without OSX_SDK_PATH set, same result this is my /opt/pkg/etc/mk.conf file https://termbin.com/a5q2 14:54:14 the last commit for the pkgsrc branch I'm using is ab899660f03794280338b3d7f2f27ba99de4ae80 14:54:33 that's from Thu Oct 13 20:54:47 2022 +0100 , is that ok? 14:55:25 no that's not right, that's the old macos release branch 14:55:39 it's now "release/macos" 14:56:17 that'll explain the SDK issues as the code has been updated since then 15:08:50 jperkin, I copied the fetch repositories part of https://github.com/TritonDataCenter/pkgsrc/wiki/pkgdev:setup#os-setup-macos from joyent/release/macos now it should be just release/macos right? 15:13:44 yeh. I'll review and fix that page 15:18:11 at least now I have a different error: ERROR: No suitable Xcode SDK or Command Line Tools installed. when executing bmake 15:21:23 that's with nothing set related to OSX_SDK_PATH or MACOSX_DEPLOYMENT_TARGET at all? 15:32:39 oh, I know what the problem is 15:37:27 so for now if you just 'git checkout trunk' and remove any OSX_SDK_PATH or MACOSX_DEPLOYMENT_TARGET from your mk.conf it should work 15:38:21 the problem is my release/macos branch has this commit: https://github.com/NetBSD/pkgsrc/commit/ddcfc89cc0c72c71fda3344b002abf092e4ec7d4 15:38:45 which helps speed up my bulk build host, but then messes things up if you're using it on a different system 15:39:07 there are relatively few changes on release/macos compared to trunk so there's no harm in just using trunk 15:44:03 jperkin I'll try using trunk 15:52:20 jperkin I removed OSX_SDK_PATH and MACOSX_DEPLOYMENT_TARGET from /opt/pkg/etc/mk.conf but I'm still getting ERROR: No suitable Xcode SDK or Command Line Tools installed., the last commit I see in this branch is 296ddb24c8d625752094d4d051693cb883110af3 December 28, 2023 15:59:40 git pull should get you newer but shouldn't affect this. what does 'bmake -v OSX_SDK_PATH' say, and does that path exist? 16:00:02 I can't reproduce that here with apparently the same settings, just make sure they aren't set in the environment or similar 16:00:19 bmake -v OSX_SDK_PATH returns nothing 16:07:43 huh, that shouldn't be possible 16:08:03 you're within a pkgsrc directory, right? 16:21:40 jperkin, yes I'm on ~/Projects/OSS/pkgsrc/editors/emacs28-nox11 and typed bmake -v OSX_SDK_PATH 18:28:04 I'm reading an old pkgsrc thread regarding the same I hope it has a happy ending https://mail-index.netbsd.org/tech-pkg/2016/01/06/msg016237.html 18:43:28 jperkin now is working now! 18:44:08 jperkin after I understood your instructions and read this https://www.stix.id.au/wiki/pkgsrc_on_Mac_OS_X it started working 18:44:19 now I have fortunes installed 18:44:26 going for emacs now 18:54:19 finally it worked, now I'm running emacs-29-nox11 with dynamic modules support, thanks jperkin 19:27:49 oh was xcode not installed correctly? 19:28:39 hopefully you shouldn't need to set OSX_SDK_PATH as per that last blog, if you're on trunk then it should work with all the settings removed 19:29:06 thanks for going through this, it's always helpful to get a fresh perspective, I'll clean up the docs and the bootstrap kits so this all works out of the box 19:35:01 jperkin I tried with and without it, it works 20:35:50 I think I have hit some bug on SmartOS install with not being able to make ' zones ' ZFS pool bootable even if option is selected during the install stage. Have done it 2 times on hardware (this time with UUID visible) 21:29:32 Not necessarily a bug. 21:29:45 Is the pool one that's bootable? 21:30:02 (if you escape into a shell during installation, what does `zpool list -v zones` say?) 21:30:41 The automated pool creation can sabotage `zpool create -B` and the installer will dutifully roll back to `zpool create`. 21:31:39 To be fair it's a bug maybe in that we aren't as helpful in detailing the situation. 22:25:41 hello - curious if anyone can point me to some docs or other resources for migrating from a freebsd/bhyve hypervisor to smartOS. i'm specifically curious to see how people imported the freebsd VM's into smartOS. 22:25:54 the challenge is my VM's are raw disk images, not zvols 22:32:31 Is pkgsrc.smartos.org experiencing overload, or is it just me? 22:45:16 oh, sorry for the noise, i should have read the handbook more closely. there seems to be a great example of doing this with vmware images using qemu-im convert.