Package Details: citron-git 0.8.0.r7.g3152820-1

Git Clone URL: https://aur.archlinux.org/citron-git.git (read-only, click to copy)
Package Base: citron-git
Description: Nintendo Switch emulator forked from yuzu.
Upstream URL: https://citron-emu.org
Keywords: emulator nintendo switch yuzu
Licenses: GPL-2.0-or-later
Conflicts: citron
Provides: citron
Submitter: None
Maintainer: HurricanePootis
Last Packager: HurricanePootis
Votes: 6
Popularity: 0.051779
First Submitted: 2025-01-20 20:17 (UTC)
Last Updated: 2025-10-12 23:50 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

Cerviche commented on 2025-10-30 06:49 (UTC) (edited on 2025-10-30 06:51 (UTC) by Cerviche)

Sorry for the formatting, Im new to sharing my patches on aur, Ill get the hang of it!

Notable differences:

Fix syntax error in main.cpp - missing closing brace
Temporary workaround for compiler warnings
functions in main.cpp (VfsDirectoryCreateFileWrapper, VfsFilesystemCreateDirectoryWrapper)
- ODR violations in formatter templates across translation units

HurricanePootis commented on 2025-10-30 06:43 (UTC)

@Cerviche thanks for the diff. I'll go through it whenever I have the time, but please know that I'm busy rn with schoolwork.

HurricanePootis commented on 2025-10-30 06:27 (UTC)

@Cerviche this diff is not useful at all. Please encapsulate your diff in ``` ```

Cerviche commented on 2025-10-30 06:25 (UTC) (edited on 2025-10-30 06:31 (UTC) by Cerviche)

Compile errors in latest build. See diff below for fix:

 diff --git a/PKGBUILD b/PKGBUILD
 index 1234567..abcdefg 100644
 --- a/PKGBUILD
 +++ b/PKGBUILD
 @@ -115,9 +115,28 @@ prepare() {
    sed -i 's/find_package(Qt6 REQUIRED COMPONENTS Widgets/find_package(Qt6 REQUIRED COMPONENTS Widgets GuiPrivate/g;s/set(CITRON_QT_COMPONENTS2 Core/set(CITRON_QT_COMPONENENTS2 Core GuiPrivate/g' CMakeLists.txt
    sed -i 's/target_link_libraries(citron PRIVATE Boost\:\:headers/target_link_libraries(citron PRIVATE Boost\:\:headers Qt6\:\:GuiPrivate/g' src/citron/CMakeLists.txt
 +
 +  # Fix syntax error in main.cpp - missing closing brace
 +  # This is a temporary workaround for upstream compilation issues
 +  local main_cpp_path="src/citron/main.cpp"
 +  if [[ -f "$main_cpp_path" ]]; then
 +      echo "Checking for syntax errors in main.cpp..."
 +      # Count opening and closing braces to identify imbalance
 +      local open_braces=$(grep -o '{' "$main_cpp_path" | wc -l)
 +      local close_braces=$(grep -o '}' "$main_cpp_path" | wc -l)
 +      
 +      if [[ $open_braces -gt $close_braces ]]; then
 +       echo "Fixing brace imbalance in main.cpp (adding missing closing brace)"
 +          echo "}" >> "$main_cpp_path"
 +      fi
 +  fi
  }

  build() {
    # Forcing GCC since clang currently fails to compile citron
    case $LTOFLAGS in
 @@ -134,32 +153,37 @@ build() {
          ;;
    esac
    cd "$srcdir"

 +  # Temporary workaround for compiler warnings until upstream fixes:
 +  # - Unused functions in main.cpp (VfsDirectoryCreateFileWrapper, VfsFilesystemCreateDirectoryWrapper)
 +  # - ODR violations in formatter templates across translation units
 +  local build_cxxflags="$CXXFLAGS -DNDEBUG"
 +  if [[ "$CXXFLAGS" == *"-Werror"* ]]; then
 +      build_cxxflags="$build_cxxflags -Wno-unused-function -Wno-odr"
 +  fi
 +  
    cmake -B build -GNinja -S "$_pkgname" \
      -DCITRON_USE_BUNDLED_VCPKG=OFF \
 -    -DCITRON_USE_BUNDLED_QT=OFF \
      -DCITRON_USE_BUNDLED_QT=ON \
      -DCITRON_USE_BUNDLED_FFMPEG=OFF \
      -DCITRON_USE_EXTERNAL_VULKAN_HEADERS=OFF \
      -DCITRON_USE_EXTERNAL_VULKAN_UTILITY_LIBRARIES=OFF \
      -DCITRON_USE_BUNDLED_SDL2=OFF \
      -DCITRON_USE_EXTERNAL_SDL2=OFF \
      -DCITRON_TESTS=OFF \
      -DCITRON_CHECK_SUBMODULES=OFF \
      -DCITRON_ENABLE_LTO=ON \
      -DCITRON_USE_QT_MULTIMEDIA=ON \
      -DCITRON_USE_QT_WEB_ENGINE=ON \
      -DENABLE_QT_TRANSLATION=ON \
      -DUSE_DISCORD_PRESENCE=ON \
      -DBUNDLE_SPEEX=ON \
      -DCITRON_USE_FASTER_LD=OFF \
      -DCMAKE_INSTALL_PREFIX=/usr \
 -    -DCMAKE_CXX_FLAGS="$CXXFLAGS -DNDEBUG" \
 +    -DCMAKE_CXX_FLAGS="$build_cxxflags" \
      -DCMAKE_C_FLAGS="$CFLAGS -DNDEBUG" \
      -DTITLE_BAR_FORMAT_RUNNING="citron | ${pkgver} {}" \
      -DTITLE_BAR_FORMAT_IDLE="citron | ${pkgver} {}" \
      -DBUNDLE_SPEEX=ON \
      -DCMAKE_SYSTEM_PROCESSOR=x86_64 \
      -DCMAKE_BUILD_TYPE=None \
      -DCMAKE_C_COMPILER=gcc \
      -DCMAKE_CXX_COMPILER=g++ \
      -DCMAKE_POLICY_VERSION_MINIMUM=3.5

simona commented on 2025-10-20 19:54 (UTC)

boosts upgraded