News for hackers. Stuff that matters.
Re:Emacs 29.1 Released by Y_Y on Sunday July 30, 2023 @12:32PM (#36932961)
I have a script to build it myself, took a little but of time to get right, but now it works nicely and I can stay at the bleeding edge.
Re:Emacs 29.1 Released by adr1an on Sunday July 30, 2023 @05:07PM (#36935984)
All these answers got me inspired. Might as well try this. But for the sake of not reinventing the wheel, Would you mind sharing? Maybe as a github gist or any pastebin would suffice. (PS. I'm already afraid the GCC version of my Ubuntu 20 throws issues hehe! Let's see!!)
Re:Emacs 29.1 Released by Y_Y on Monday July 31, 2023 @11:03AM (#36943683)
Sure, here's the gist of it with some unrelated stuff removed. This was made for Ubuntu 18.04, but the deb will work on 20.04 as well.

    apt-get update
    apt-get install  -y git software-properties-common make checkinstall autoconf texinfo

    add-apt-repository -y ppa:ubuntu-toolchain-r/ppa 
    add-apt-repository -y ppa:ubuntu-toolchain-r/test 
    apt-get update

    apt-get install -y gcc-10 g++-10 libgccjit0 libgccjit-10-dev libjansson4 libjansson-dev libgtk-3-dev
    apt-get install -y libjpeg-dev libxpm-dev libgif-dev libtiff-dev libgnutls28-dev libncurses-dev

    update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
    update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10

    git clone --depth=1 git://git.sv.gnu.org/emacs.git  --branch=master # or use emacs-28.1 or whatever tag
    cd emacs || exit

    ./autogen.sh
    ./configure \
     --with-cairo \
     --with-gnutls \
     --with-harfbuzz \
     --with-jpeg \
     --with-json \
     --with-mailutils \
     --with-modules \
     --with-native-compilation \
     --with-pgtk \
     --with-png \
     --with-rsvg \
     --with-tiff \
     --with-wide-int \
     --with-x-toolkit=gtk3 \
     --with-xft \
     --with-xml2 \
     --with-xpm \
     --without-compress-install \
     --without-gconf \
     --without-gsettings \
     --without-imagemagick \
     --without-toolkit-scroll-bars \
     --without-xaw3d \
     --without-xwidgets \
     CFLAGS="-O3 -mtune=native -march=native -fomit-frame-pointer" \
     prefix=/usr/local

    make -j"$(nproc)" NATIVE_FULL_AOT=1

    checkinstall -y -D --install=no \
      --pkgname=${pkgname}-nativecomp \
      --pkgversion=1"$(git rev-parse --short HEAD)" \
      --requires="libjansson-dev,libharfbuzz-dev,libgccjit-10-dev" \
      --pkggroup=emacs \
      --gzman=yes \
        make install-strip