Message ID | 20191012225404.11901-1-jonathan@terracrypt.net |
---|---|
State | Accepted |
Headers | show |
Series | [bug#37722] python-build-system: Fix build of packages without sbin directory. | expand |
On 10/12/19 6:55 PM, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > guix-patches@gnu.org > > If you wish to submit further information on this problem, please > send it to 37722@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > Ah, my apologies, I seem to have been a bit too trigger-happy with this patch - it doesn't entirely solve the issue I was running into. The 'wrap' phase succeeds at this point but the 'fix-symlinks' phase still fails. I'm not sure what the underlying issue here is yet, but *something* changed recently as Ansible builds succeeded not too long ago... closing this one out though.
diff --git a/guix/build/python-build-system.scm b/guix/build/python-build-system.scm index 09bd8465c8..15c7d2e613 100644 --- a/guix/build/python-build-system.scm +++ b/guix/build/python-build-system.scm @@ -188,9 +188,11 @@ when running checks after installing the package." (define* (wrap #:key inputs outputs #:allow-other-keys) (define (list-of-files dir) - (find-files dir (lambda (file stat) - (and (eq? 'regular (stat:type stat)) - (not (wrapper? file)))))) + (if (not (directory-exists? dir)) + '() + (find-files dir (lambda (file stat) + (and (eq? 'regular (stat:type stat)) + (not (wrapper? file))))))) (define bindirs (append-map (match-lambda