1
0

0001-fix-version.sh.patch 402 B

123456789101112131415161718192021
  1. --- a/squashfs-tools/version.sh
  2. +++ b/squashfs-tools/version.sh
  3. @@ -27,13 +27,11 @@ if [ -z "$OUTPUT" ] ; then
  4. fi
  5. our_date() {
  6. -case $(uname) in
  7. -NetBSD|OpenBSD|DragonFly|FreeBSD|Darwin)
  8. - date -r "$1" "$2"
  9. - ;;
  10. -*)
  11. - date -d "@$1" "$2"
  12. -esac
  13. + if date --version 2>&1 | grep -q "GNU coreutils"; then
  14. + date -d "@$1" "$2"
  15. + else
  16. + date -r "$1" "$2"
  17. + fi
  18. }
  19. try_version() {