From a8671c226878a32c49ddf8e4f401fb645223d375 Mon Sep 17 00:00:00 2001 From: Mid Favila Date: Sun, 12 Dec 2021 15:40:09 -0400 Subject: [PATCH] work towards libgccjit support --- core-mod/core/gcc/build | 3 +- ports/mid-rc/build | 59 ++++++++++----------------------------- ports/mid-rc/post-install | 7 +++++ 3 files changed, 24 insertions(+), 45 deletions(-) create mode 100644 ports/mid-rc/post-install diff --git a/core-mod/core/gcc/build b/core-mod/core/gcc/build index c0f79ce..f292994 100755 --- a/core-mod/core/gcc/build +++ b/core-mod/core/gcc/build @@ -43,9 +43,10 @@ export libat_cv_have_ifunc=no --enable-default-pie \ --enable-default-ssp \ --enable-shared \ + --enable-host-shared \ --enable-threads \ --enable-tls \ - --enable-languages=c,c++ \ + --enable-languages=c,c++,jit \ --without-included-gettext \ --with-zstd=no \ --with-system-zlib \ diff --git a/ports/mid-rc/build b/ports/mid-rc/build index b036905..496e9c4 100755 --- a/ports/mid-rc/build +++ b/ports/mid-rc/build @@ -1,48 +1,19 @@ #!/bin/sh -e -dest="${1}/${HOME}/.config" +for dir in etc +do + mkdir -p "$1/$dir" + cp -r system/$dir/* "$1/$dir" +done -cd misc +for configdots in $(ls user/configdir/) +do + mkdir -p "$1/home/$USER/.config/" + mv user/configdir/$configdots "$1/home/$USER/.config/" +done -for file in * - do - if [ "${file}" = "legacy" ] - then - true - elif [ "${file}" = "$(echo $file | grep -e "\\\\*.sh")" ] || [ "${file}" = "$(echo $file | grep -e "\\\\*.es")" ] - then - install -Dm755 "${file}" "${dest}/fxde/fxde-core/scripts/${file}" - elif [ "${file}" = "xsession" ] - then - install -Dm755 "${file}" "${dest}/../.xsession" - elif [ "${file}" = "esrc" ] - then - install -Dm644 "${file}" "${dest}/../.esrc" - elif [ "${file}" = "init.el" ] - then - install -Dm644 "${file}" "${dest}/emacs/init.el" - elif [ "${file}" = "gtkrc-2.0" ] - then - install -Dm644 "${file}" "${dest}/../.gtkrc-2.0" - else - install -Dm755 "${file}" "${dest}/fxde/fxde-core/config/${file}" - fi - done - -cd ../terminal - -for file in * - do - if [ $(echo ${file}|grep -e "\\\\*yash\\\\*") ] - then - install -Dm644 "${file}" "${dest}/yash/conf/${file}" - else - install -Dm644 "${file}" "${dest}/${file}" - fi - done - -cd ../xresources -for file in * - do - install -Dm644 "${file}" "${dest}/xresources/${file}" - done +for homedots in $(ls user/homedir/*) +do + mkdir -p "$1/home/$USER/" + mv $homedots "$1/home/$USER/.$(basename $homedots)" +done diff --git a/ports/mid-rc/post-install b/ports/mid-rc/post-install new file mode 100644 index 0000000..205a5f8 --- /dev/null +++ b/ports/mid-rc/post-install @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ $(hostname) == commandante ] +then + sed /etc/asound.conf 's^hw:1,0/hw:0,0/g' > /etc/as + mv /etc/as /etc/asound.conf +fi