Package Details: fatx 1.17-2

Git Clone URL: https://aur.archlinux.org/fatx.git (read-only, click to copy)
Package Base: fatx
Description: XBox filesystem support for linux
Upstream URL: http://sourceforge.net/projects/fatx/
Keywords: filesystem xbox
Licenses: GPL
Provides: fatx
Submitter: t3kk3n
Maintainer: t3kk3n
Last Packager: t3kk3n
Votes: 10
Popularity: 0.003025
First Submitted: 2014-08-09 19:19 (UTC)
Last Updated: 2024-04-17 15:37 (UTC)

Dependencies (7)

Required by (0)

Sources (1)

Pinned Comments

Bakasura commented on 2021-07-24 22:05 (UTC)

@everyone this package works again!

Latest Comments

1 2 3 4 Next › Last »

kyndair commented on 2024-12-13 07:04 (UTC) (edited on 2024-12-13 07:07 (UTC) by kyndair)

For anyone wanting to run the 1.18 version the following should work.

PKGBUILD
pkgname=fatx
pkgver=1.18
_tag=17d7403f0b23fa43cd71e90cf22273ae7f53c9db
pkgrel=1
pkgdesc='XBox filesystem support for linux'
arch=('i686' 'pentium4' 'armv7h' 'aarch64' 'x86_64')
url='http://sourceforge.net/projects/fatx/'
license=('GPL')
provides=($pkgname)
depends=('fuse')
makedepends=('boost' 'boost-libs' 'doxygen')
source=("git+https://git.code.sf.net/p/fatx/code#tag=$_tag"
    'fatx.patch')
sha256sums=('SKIP'
    '68b26b38b725a682477ff062ce2de69c930f88482b69ffd7a30cf991448748d5')

build() {
    patch -p0 -d "${srcdir}"/code <"${srcdir}"/fatx.patch
    mkdir -p "${srcdir}"/code/build
    cd "${srcdir}"/code/build
    cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/usr
    make
}

package() {
    cd "${srcdir}"/code/build
    make DESTDIR="$pkgdir" install
}
fatx.patch
--- CMakeLists.txt   2024-12-05 13:19:00
+++ CMakeLists.txt  2024-12-05 13:19:00
@@ -1,7 +1,7 @@
 cmake_minimum_required(VERSION 3.0)
 project(
   fatx
-  VERSION 1.17
+  VERSION 1.18
   LANGUAGES C CXX)
 set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
 if(CMAKE_BUILD_TYPE STREQUAL "")

--- CMakeLists.txt  2024-12-05 13:19:00
+++ CMakeLists.txt  2024-12-05 13:19:00
@@ -32,5 +32,5 @@
  add_compile_options(
   -D_FILE_OFFSET_BITS=64
-  -std=c++2b
+  -std=c++20
   -fdiagnostics-color
   -Werror

--- CMakeLists.txt  2024-12-05 13:19:00
+++ CMakeLists.txt  2024-12-05 13:19:00
@@ -192,11 +192,11 @@
    ${i} ALL
    COMMAND ${CMAKE_COMMAND} -E create_symlink fatx ${i}
    DEPENDS fatx)
-install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE SBIN)
+install(FILES ${PROJECT_BINARY_DIR}/${i} TYPE BIN)
 endforeach(i)

 include(GNUInstallDirs)
-install(TARGETS fatx RUNTIME DESTINATION sbin)
+install(TARGETS fatx RUNTIME DESTINATION bin)
 install(DIRECTORY man8 TYPE MAN)
 install(
   FILES README

--- src/fatx.hpp    2024-12-05 13:19:00
+++ src/fatx.hpp    2024-12-05 13:19:00
@@ -56,13 +56,14 @@
-#include <fstream>
-#include <iostream>
-#include <filesystem>
-#include <thread>
-#include <string>
-#include <vector>
-#include <memory>
-#include <map>
-#include <set>
-#include <cassert>
-#include <functional>
-#include <cstdint>
-#include <shared_mutex>
+#include <bitset>
+#include <cassert>
+#include <cstdint>
+#include <filesystem>
+#include <fstream>
+#include <functional>
+#include <iostream>
+#include <map>
+#include <memory>
+#include <set>
+#include <shared_mutex>
+#include <string>
+#include <thread>
+#include <vector>

GalacticDirtbag commented on 2024-06-18 18:56 (UTC)

Adding sed -i 's/format(/boost\:\:format(/g' "${srcdir}/src/fatx.cpp" sed -i '184,927s/format(/boost\:\:format(/' "${srcdir}/src/fatx.hpp" to the PKGBUILD build() section, before the cmake commands allows this package to compile and install successfully.

t3kk3n commented on 2024-06-02 15:41 (UTC)

@Halian - You say version 1.17 is outdated (I saw the email about you marking this package out of date), yet I can't find a download for 1.18 - yes, the page on sourceforge notes 1.18 was released, but there is no download for that version.

Also took notice you created a ticket on the project page on sourceforge. Post logs for me?

Halian commented on 2024-06-02 03:03 (UTC)

Throws a litany of “reference to ‘format’ is ambiguous” errors when attempting to build, because there are such-named functions in both std and boost.

t3kk3n commented on 2024-04-29 22:38 (UTC)

Past week ended up getting slightly busy on my end, didn't forget about this.

So, I can replicate the issue with the cmake tests using "pkgctl build", yet if I disable the tests, it compiles as expected. It's definitely a weird issue, as installing the compiled binaries and running them, work as one would think.

I do notice however, there is decent change in file size, from compiling via pkgctl, versus compiling on my daily driver laptop. I'm a tiny bit stuck, as I have never troubleshot cmake tests or the like, letalone this is my first time working with pkgctl officially. If anyone has any input, I am all ears!

@katt - That being said, if you comment out the tests and compile, are you able to successfully use fatx?

katt commented on 2024-04-20 09:38 (UTC)

@t3kk3n Sure, here's the output: https://gist.github.com/kattjevfel/39581c185f7d9a24ec634d48e5ace952

To try and cut down on any customization this was built with pkgctl build, which anyone with devtools can do.

Also given your responses thus far, do the tests work on your machine then?

t3kk3n commented on 2024-04-19 17:50 (UTC)

@katt - Could you add the --verbose argument to ctest in the check function and rerun?

Side note - technically I could remove the check function, but would rather not.

katt commented on 2024-04-19 14:20 (UTC)

@t3kk3n I am building for x86_64-v3 with aurutils in a chroot. Skipping the tests would obviously work since that's what's failing.

As for information that would help, build in a chroot I guess :P

t3kk3n commented on 2024-04-19 11:32 (UTC)

katt - I'm unable to replicate what you are experiencing; What architecture are you compiling on? Have you tried compiling without running the tests? Any other information that could help?

katt commented on 2024-04-18 22:15 (UTC)

Tests are failing:

24% tests passed, 16 tests failed out of 21

Total Test time (real) =   1.05 sec

The following tests FAILED:
          1 - Fuse_simple_file_creation (Failed)
          2 - Fuse_moving_file (Failed)
          3 - Fuse_removing_file (Failed)
          4 - Fuse_multiple_file_access (Failed)
          5 - Fuse_directory_copies (Failed)
          6 - Fuse_simultaneous_copies (Failed)
          7 - Fuse_directory_max_entries (Failed)
          8 - Fuse_recover_mode (Failed)
          9 - Fuse_FAT_stress (Failed)
         10 - Fuse_directory_entries_stress (Failed)
         11 - Fuse_simultaneous_creations (Failed)
         12 - Fuse_check_statfs (Failed)
         14 - Label_check_noname (Failed)
         18 - Unrm_remote_recovery (Failed)
         19 - Unrm_remote_dir_recovery (Failed)
         20 - Unrm_local_recovery (Failed)
Errors while running CTest
==> ERROR: A failure occurred in check().
    Aborting...
==> Removing chroot copy [/var/lib/aurbuild/x86_64/katt-229284]...done
==> ERROR: Build failed