unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#37722] [PATCH] python-build-system: Fix build of packages without sbin directory.
@ 2019-10-12 22:54 Jonathan Frederickson
       [not found] ` <handler.37722.B.157092086718725.ack@debbugs.gnu.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Frederickson @ 2019-10-12 22:54 UTC (permalink / raw)
  To: 37722; +Cc: Jonathan Frederickson

Prior to this change, some packages (at least Ansible for example) would fail
to build with an error like:

starting phase `wrap'
find-files: /gnu/store/va1qkgv1qwv1hy6iynzjafqshakqkjs7-ansible-2.8.1/sbin: No
such file or directory

That directory in the store contained a 'bin' directory, but not an 'sbin
directory, and 'find-files' throws an error in that case.

* guix/build/python-build-system.scm (list-of-files): Handle case in which
  directory passed as argument does not exist.
---
 guix/build/python-build-system.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

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
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#37722: Acknowledgement ([PATCH] python-build-system: Fix build of packages without sbin directory.)
       [not found] ` <handler.37722.B.157092086718725.ack@debbugs.gnu.org>
@ 2019-10-12 22:59   ` Jonathan Frederickson
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Frederickson @ 2019-10-12 22:59 UTC (permalink / raw)
  To: 37722-close


[-- Attachment #1.1: Type: text/plain, Size: 1076 bytes --]

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.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-12 23:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-12 22:54 [bug#37722] [PATCH] python-build-system: Fix build of packages without sbin directory Jonathan Frederickson
     [not found] ` <handler.37722.B.157092086718725.ack@debbugs.gnu.org>
2019-10-12 22:59   ` bug#37722: Acknowledgement ([PATCH] python-build-system: Fix build of packages without sbin directory.) Jonathan Frederickson

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).