Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions dotslash/loong.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
diff --git a/PKGBUILD b/PKGBUILD
index f4f8acf..6d4c2ac 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -19,6 +19,7 @@ sha256sums=('c80f7ce8b659c8f510659298ef5427bfaf7ee3258760bcffe2c45f7628de858e')

prepare() {
cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i "${srcdir}/Add-linux-loongarch64-platform-support.patch"
cargo fetch --locked --target "$(rustc --print host-tuple)"
}

@@ -29,7 +30,23 @@ build() {

check() {
cd "$srcdir/$pkgname-$pkgver"
- cargo test --frozen --all-features
+ # Needs print_argv executable in https://github.com/zertosh/dotslash_fixtures
+ skip_tests=(
+ clean_command_ok
+ fetch_simple
+ get_extracted_cache_path_simple
+ http__arg0
+ http__gz__valid_executable
+ http__nonexistent_url
+ http__plain__valid_executable
+ http__tar_gz__valid_executable
+ http__tar_xz__valid_executable
+ http__tar_zst__valid_executable
+ http__xz__valid_executable
+ http__zip__valid_executable
+ http__zst__valid_executable
+ )
+ cargo test --frozen --all-features -- $(printf -- '--skip %s ' "${skip_tests[@]}")
}

package() {
@@ -38,3 +55,6 @@ package() {
install -Dm644 LICENSE-MIT LICENSE-APACHE \
-t "$pkgdir/usr/share/licenses/$pkgname/"
}
+
+source+=("Add-linux-loongarch64-platform-support.patch::https://github.com/facebook/dotslash/commit/29a62b898befca9aacd8818121536d051c1dc925.diff")
+sha256sums+=('2e875905e7eff3f39a6fbeaa0d90c6387ad0219c42755e3a0c7df4885196a377')
Loading