mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
* psmisc => 23.7 Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Re-add autotools_pre_configure_options Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add statx patch Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update reversed patches Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust patch strategy Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust patch strategy Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust psmisc build Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Update to top of tree Signed-off-by: Satadru Pramanik <satadru@gmail.com> * build adjustments Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to branch psmisc. * build adjustments Signed-off-by: Satadru Pramanik <satadru@gmail.com> * adjust build Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add new patch. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/amd64 to branch psmisc. * Add built packages for linux/arm/v7 to branch psmisc. * cleanup Signed-off-by: Satadru Pramanik <satadru@gmail.com> * cleanup Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.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' # R
|
|
depends_on 'ncurses' # R
|
|
|
|
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
|