util-linux-2.39-GCCcore-13.3.0.eb 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. easyblock = 'ConfigureMake'
  2. name = 'util-linux'
  3. version = '2.39'
  4. homepage = 'https://www.kernel.org/pub/linux/utils/util-linux'
  5. description = "Set of Linux utilities"
  6. toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
  7. toolchainopts = {'pic': True}
  8. source_urls = ['%s/v%%(version_major_minor)s' % homepage]
  9. sources = [SOURCELOWER_TAR_GZ]
  10. patches = [
  11. 'util-linux-%(version)s_fix_waitpid.patch',
  12. 'util-linux-2.39-fix-build-centos7.patch'
  13. ]
  14. checksums = [
  15. {'util-linux-2.39.tar.gz': 'b1f597ad172a2ee17b0a7ae4be7ab7e1b1a6f9394ddbd3d8ec90ae4ed7333579'},
  16. {'util-linux-2.39_fix_waitpid.patch': '99cbd4ee8293f3ffad4467e9f245d0da4e10a98b6599f5e5f9d4cb99c7eebbd2'},
  17. {'util-linux-2.39-fix-build-centos7.patch': '21587513f0f5f5efe790396ac39450c7f30dd55063929bb430a77352ba99f57f'},
  18. ]
  19. builddependencies = [
  20. ('binutils', '2.42'),
  21. ('Autotools', '20231222'), # for fix_waitpid patch
  22. ('pkgconf', '2.2.0'), # for fix_waitpid patch
  23. ]
  24. dependencies = [
  25. ('ncurses', '6.5'),
  26. ('zlib', '1.3.1'),
  27. ]
  28. # disable account related utilities (they need OS dependent pam-devel files)
  29. # disable wall and friends (requires group changing permissions for install user)
  30. # install systemd service files in install dir
  31. # install bash completion files in install dir
  32. configopts = "--disable-chfn-chsh --disable-login --disable-su --disable-rfkill "
  33. configopts += "--disable-wall --disable-use-tty-group "
  34. configopts += "--disable-makeinstall-chown --disable-makeinstall-setuid "
  35. configopts += "--with-systemdsystemunitdir='${prefix}/systemd' "
  36. configopts += "--with-bashcompletiondir='${prefix}/share/bash-completion/completions' "
  37. # disable building Python bindings (since we don't include Python as a dep)
  38. configopts += "--without-python "
  39. sanity_check_paths = {
  40. 'files': ['lib/lib%s.a' % x for x in ['blkid', 'mount', 'uuid']],
  41. 'dirs': ['include', 'bin', 'share', 'sbin'],
  42. }
  43. moduleclass = 'tools'