al12gamer / deckscript

Script to set up the Deck for work and play
GNU General Public License v3.0
2 stars 0 forks source link

Possibly missing headers for fastfetch #2

Closed al12gamer closed 1 year ago

al12gamer commented 2 years ago

fastfetch is a faster alternative to neofetch...while you can install neofetch from this script fine, you have to compile fastfetch and it seems we're missing some things here for it: https://asciinema.org/a/525124

al12gamer commented 2 years ago

Now that #1 is closed, working on installing this using yay Looks like we need to rebuild dconf and glib2? ...and zlib.h? https://asciinema.org/a/525247 Still getting:

/home/deck/.cache/yay/fastfetch/src/fastfetch-1.7.2/src/detection/media.c:13:10: fatal error: dbus/dbus.h: No such file or directory
   13 | #include <dbus/dbus.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/libfastfetch.dir/build.make:412: CMakeFiles/libfastfetch.dir/src/detection/media.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/libfastfetch.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: fastfetch
al12gamer commented 2 years ago

Adding the three above-mentioned packages to the 2-possibly-missing-headers-for-fastfetch branch

al12gamer commented 2 years ago

Looks like reinstalling pipewire might be required? Scary...don't want to mess with sound as it currently is on the deck...

/home/deck/.cache/yay/fastfetch/src/fastfetch-1.7.2/src/detection/media.c:13:10: fatal error: dbus/dbus.h: No such file or directory
   13 | #include <dbus/dbus.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/libfastfetch.dir/build.make:412: CMakeFiles/libfastfetch.dir/src/detection/media.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:87: CMakeFiles/libfastfetch.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: fastfetch
(1)(deck@gabegear ~)$ 
exit
asciinema: recording finished
asciinema: press <enter> to upload to asciinema.org, <ctrl-c> to save locally

View the recording at:

    https://asciinema.org/a/525247

(deck@gabegear dev)$ sudo pacman -Fy dbus.h
[sudo] password for deck: 
:: Synchronizing package databases...
 jupiter is up to date
 holo is up to date
 core is up to date
 extra is up to date
 community is up to date
 multilib is up to date
 home_ungoogled_chromium_Arch                                       3.0 KiB  3.83 KiB/s 00:01 [#######################################################] 100%
jupiter/pipewire 1:0.3.50-2 [installed]
    usr/include/spa-0.2/spa/support/dbus.h
holo/pipewire 1:0.3.45-1.2 [installed: 1:0.3.50-2]
    usr/include/spa-0.2/spa/support/dbus.h
core/dbus 1.12.20-1 [installed]
    usr/include/dbus-1.0/dbus/dbus.h
extra/ell 0.48-1 [installed]
    usr/include/ell/dbus.h
extra/libblockdev 2.26-3 [installed]
    usr/include/blockdev/dbus.h
extra/pipewire 1:0.3.44-1 [installed: 1:0.3.50-2]
    usr/include/spa-0.2/spa/support/dbus.h
extra/telepathy-glib 0.24.2-2
    usr/include/telepathy-1.0/telepathy-glib/dbus.h
extra/telepathy-qt 0.9.8-2
    usr/include/telepathy-qt5/TelepathyQt/dbus.h
community/dbus-c++ 0.9.0-9
    usr/include/dbus-c++-1/dbus-c++/dbus.h
community/libtg_owt 0.git10.6708e0d-2
    usr/include/tg_owt/third_party/pipewire/spa/include/spa/support/dbus.h
al12gamer commented 2 years ago

Will reinstall jupiter/pipewire today and add an asciinema install to the script so things can be recorded earlier, for those who use asciinema like me

al12gamer commented 2 years ago

After factory resetting the Deck to see how this script would run from a fresh install, it looks like we may be getting some cmake errors: https://asciinema.org/a/525436

cmake: /usr/share/doc/cmake/html/variable/UNIX.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/WIN32.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/WINCE.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/WINDOWS_PHONE.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/WINDOWS_STORE.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/XCODE.html exists in filesystem
cmake: /usr/share/doc/cmake/html/variable/XCODE_VERSION.html exists in filesystem
cmake: /usr/share/emacs/site-lisp/cmake-mode.el exists in filesystem
cmake: /usr/share/emacs/site-lisp/cmake-mode.elc exists in filesystem
cmake: /usr/share/icons/hicolor/128x128/apps/CMakeSetup.png exists in filesystem
cmake: /usr/share/icons/hicolor/32x32/apps/CMakeSetup.png exists in filesystem
cmake: /usr/share/licenses/cmake/LICENSE exists in filesystem
cmake: /usr/share/man/man1/ccmake.1.gz exists in filesystem
cmake: /usr/share/man/man1/cmake-gui.1.gz exists in filesystem
cmake: /usr/share/man/man1/cmake.1.gz exists in filesystem
cmake: /usr/share/man/man1/cpack.1.gz exists in filesystem
cmake: /usr/share/man/man1/ctest.1.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-buildsystem.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-commands.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-compile-features.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-developer.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-env-variables.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-file-api.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-generator-expressions.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-generators.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-language.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-modules.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-packages.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-policies.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-presets.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-properties.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-qt.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-server.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-toolchains.7.gz exists in filesystem
cmake: /usr/share/man/man7/cmake-variables.7.gz exists in filesystem
cmake: /usr/share/man/man7/cpack-generators.7.gz exists in filesystem
cmake: /usr/share/mime/packages/cmakecache.xml exists in filesystem
cmake: /usr/share/vim/vimfiles/indent/cmake.vim exists in filesystem
cmake: /usr/share/vim/vimfiles/syntax/cmake.vim exists in filesystem
Errors occurred, no packages were upgraded.
al12gamer commented 1 year ago

Still seeing errors when trying to install fastfetch, will work on more in the future

al12gamer commented 1 year ago

Will update Steam Deck OS soon and try this again.

al12gamer commented 1 year ago

Now working