Your message dated Sun, 19 Feb 2023 01:03:08 +0000 with message-id <[email protected]> and subject line Bug#1031519: Removed package(s) from unstable has caused the Debian Bug report #1024143, regarding gitlab: postinst fails silently within rake-tasks, if /var/lib/gitlab/.cache/yarn/v6 does not exist to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 1024143: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1024143 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: gitlab Version: 15.2.3+ds1-2~fto11+1 Severity: normal Tags: patch Dear Maintainer, during gitlab's package installation, the following line in `rake-tasks.sh` causes a failure of the postinst processing: > -runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" > && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w > -exec chmod 644 {} \;' The above fails, if the directory does not exists. Due to the shell's exit-on-error (`set -e`), this failure is fatal. Attached you find a patch, which ensures the proper exitcode for the line above. Cheers, Lars--- /usr/lib/gitlab/scripts/rake-tasks.sh.orig 2022-11-15 05:16:06.185030967 +0100 +++ /usr/lib/gitlab/scripts/rake-tasks.sh 2022-11-15 05:16:32.504552974 +0100 @@ -45,7 +45,7 @@ runuser -u ${gitlab_user} -- sh -c 'if ! grep nodeLinker .yarnrc.yml >/dev/null; then echo "nodeLinker: \"node-modules\"" >>.yarnrc.yml; fi' runuser -u ${gitlab_user} -- sh -c 'yarnpkg install' # Remove write permissions of .yarn-metadata.json files -runuser -u ${gitlab_user} -- sh -c 'test -d "/var/lib/gitlab/.cache/yarn/v6" && find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;' +runuser -u ${gitlab_user} -- sh -c 'if test -d "/var/lib/gitlab/.cache/yarn/v6"; then find /var/lib/gitlab/.cache/yarn/v6/ -name .yarn-metadata.json -perm -a=w -exec chmod 644 {} \;; fi' cd /usr/share/gitlab
--- End Message ---
--- Begin Message ---Version: 13.4.7-2+rm Dear submitter, as the package gitlab has just been removed from the Debian archive unstable we hereby close the associated bug reports. We are sorry that we couldn't deal with your issue properly. For details on the removal, please see https://bugs.debian.org/1031519 The version of this package that was in Debian prior to this removal can still be found using https://snapshot.debian.org/. Please note that the changes have been done on the master archive and will not propagate to any mirrors until the next dinstall run at the earliest. This message was generated automatically; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]. Debian distribution maintenance software pp. Scott Kitterman (the ftpmaster behind the curtain)
--- End Message ---
_______________________________________________ Pkg-ruby-extras-maintainers mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers
