mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-05-01 03:00:26 -04:00
* gparted -> 1.8.1 in updater-gparted-1.8.1 * updater-gparted-1.8.1: Package File Update Run on linux/amd64 container. * updater-gparted-1.8.1: Package File Update Run on linux/arm/v7 container. * updater-gparted-1.8.1: Package File Update Run on linux/amd64 container. * Cleanup gparted. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update dependencies to use :executable instead of :executable_only Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: github-merge-queue <github-merge-queue@users.noreply.github.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com>
46 lines
1.7 KiB
Ruby
46 lines
1.7 KiB
Ruby
require 'buildsystems/autotools'
|
|
|
|
class Psmisc < Autotools
|
|
description 'PSmisc is a set of some small useful utilities that use the proc filesystem.'
|
|
homepage 'https://gitlab.com/psmisc/psmisc'
|
|
version '23.7-252db9b'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'https://gitlab.com/psmisc/psmisc.git'
|
|
git_hashtag '252db9b91d0cdbc4bbdbd8c645f7df30235dc36f'
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'd6f8043297d27dbcaad331dca5555196f0bbcd23743474ec3131fa37cb692333',
|
|
armv7l: 'd6f8043297d27dbcaad331dca5555196f0bbcd23743474ec3131fa37cb692333',
|
|
i686: '5e291a92be499d81f802d75031443397eb2f3d52b0672142110e58c873107a8c',
|
|
x86_64: 'b5667069faed36497d54a3d0e5b717d7d19b6854765cd78d9c663bf671fb64e3'
|
|
})
|
|
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'glibc' => :executable
|
|
depends_on 'ncurses' => :executable
|
|
|
|
autotools_pre_configure_options "CFLAGS+=' -I#{CREW_PREFIX}/include/ncurses'"
|
|
autotools_configure_options '--disable-statx'
|
|
|
|
def self.patch
|
|
# See: https://gitlab.com/psmisc/psmisc/-/merge_requests/42
|
|
File.write 'statx.patch', <<~STATX_PATCH_EOF
|
|
diff -Npaur a/src/fuser.c b/src/fuser.c
|
|
--- a/src/fuser.c 2025-07-15 13:58:53.377148922 -0400
|
|
+++ b/src/fuser.c 2025-07-15 14:00:15.721147920 -0400
|
|
@@ -1387,7 +1387,7 @@ int main(int argc, char *argv[])
|
|
continue;
|
|
}
|
|
|
|
-#if defined(HAVE_DECL_SYS_STATX) && HAVE_DECL_SYS_STATX == 1
|
|
+#if defined(WITH_STATX) && defined(HAVE_DECL_SYS_STATX) && HAVE_DECL_SYS_STATX == 1
|
|
if ((opts & OPT_ALWAYSSTAT))
|
|
stat_flags = 0; /* Triggers sync with e.g. remote NFS server even on autofs */
|
|
#endif
|
|
STATX_PATCH_EOF
|
|
system 'patch -Np1 -i statx.patch'
|
|
end
|
|
end
|