[2023-08-06T07:46:59Z] illiliti: emacs 29.1 for community - https://0x0.st/H_Hy.PGgLFC [2023-08-06T08:13:16Z] what does esources file do? [2023-08-06T08:13:27Z] > # Determine whether we are the -nox package or not... [2023-08-06T08:14:21Z] i wouldn't do it [2023-08-06T08:15:57Z] also isn't ./configure script smart enough to make all these pkg-config checks without assistance? [2023-08-06T08:16:46Z] the esources file is my own thing - i can rm that [2023-08-06T08:17:14Z] and the configure script does *not* check for libgccjit automatically so that option at least has to stay [2023-08-06T08:17:34Z] and fair enough on the -nox check, i figured if i could share the build script i should [2023-08-06T08:19:15Z] more context on esources: https://github.com/ehawkvu/kiss-personal/blob/master/bin/kiss-echecksum [2023-08-06T08:20:00Z] i've been using it to much success over in kiss-xorg [2023-08-06T08:23:35Z] i'm kinda against using kiss in build scripts, so if there is a more agnostic way to check for it please remove kiss in favor of it [2023-08-06T08:25:09Z] hmm [2023-08-06T08:25:16Z] esources file - sorry but non standard extensions are definitely no go [2023-08-06T08:30:39Z] illiliti: figured that [2023-08-06T08:31:29Z] if there is no better way to check for libgccjit don't bother. i won't block your patch because of that [2023-08-06T08:32:57Z] I have a hacky solution - https://0x0.st/H_H0.mMbaJM [2023-08-06T08:33:16Z] When you compile and run that it'll tell you whether or not libgccjit is installed [2023-08-06T08:33:23Z] but I really don't like it lol [2023-08-06T08:36:06Z] me too [2023-08-06T08:36:27Z] i feel it could be simplified but not sure how [2023-08-06T08:37:01Z] Here's the manifest of libgccjit - https://0x0.st/H_H5.BBAJaj [2023-08-06T08:40:03Z] also should -nox be committed? I don't mind adding it but i think most ppl will be using the gui version anyways [2023-08-06T08:42:03Z] yeah we shouldn't rely on the fact that it's exists in /usr/lib [2023-08-06T08:43:14Z] personally i think that -nox is redundant because we have kiss-fork which can be used to tweak package how you like [2023-08-06T08:43:30Z] right [2023-08-06T08:45:57Z] case $("$CC" -print-file-name=libgccjit.so) in */*) [2023-08-06T08:48:19Z] basically if $CC produces output with path, then library exists. if no, then doesn't exist [2023-08-06T08:48:26Z] we use this trick in main repo, so there is nothing wrong to use it in community as well [2023-08-06T08:48:33Z] sweet [2023-08-06T08:48:47Z] should I just check for the exit code? [2023-08-06T08:49:14Z] no, you should check output. exit code should be ignored [2023-08-06T08:49:27Z] ok [2023-08-06T08:51:17Z] https://codeberg.org/kiss-community/repo/src/branch/master/extra/rust/build#L118 [2023-08-06T08:54:17Z] new patch - https://0x0.st/H_Xr.FCecjj [2023-08-06T08:54:28Z] also ty illiliti [2023-08-06T09:09:31Z] merged, thanks! [2023-08-06T09:10:32Z] btw why emacs is so prone to segfaults as you noted in build script? [2023-08-06T09:13:28Z] that is something I have been trying to find out myself tbh [2023-08-06T09:14:16Z] based off of what ive read in the repo & my own testing, all of the segfaults [2023-08-06T09:14:23Z] happen with the executable `temacs' [2023-08-06T09:14:46Z] which, from what I understand, is the pure C version that is used to bootstrap the full elisp version [2023-08-06T09:15:03Z] but for some reason, that C version is very picky with how it likes to be built [2023-08-06T09:15:42Z] i remember reading the ASLR stuff in etc/PROBLEMS [2023-08-06T09:17:07Z] lol: https://github.com/emacs-mirror/emacs/blob/1e8322bb26e4945de460780168732250bbd083d0/configure.ac#L6524 [2023-08-06T09:17:11Z] apparently they don't know either [2023-08-06T09:17:12Z] lmao [2023-08-06T09:20:19Z] amazing shit [2023-08-06T09:21:23Z] what's even better is that you can build with -O3 -march=native if you use clang [2023-08-06T09:21:45Z] I haven't tested trying to use -flto though [2023-08-06T09:21:54Z] that may be the breaking point [2023-08-06T09:22:25Z] and iirc it doesn't require the -no-pie flag [2023-08-06T21:43:33Z] hi my favorite people i have a really niche question about kexec and heads if anyone knows about it? i tried asking in coreboot but nobody knew at all [2023-08-06T22:52:53Z] never mind the lovely reddit man helped x