bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#31719: icedtea-3 binaries contain references to icedtea-2


From: Carlo Zancanaro
Subject: bug#31719: icedtea-3 binaries contain references to icedtea-2
Date: Tue, 20 Apr 2021 21:32:10 +1000
User-agent: mu4e 1.4.15; emacs 27.2

Hi Ludo!

On Tue, Apr 20 2021, Ludovic Courtès wrote:
                     (find-library (lambda (name)
-                                    (or (search-path
-                                         library-path
- (string-append "lib" name ".so")) - (string-append "lib" name ".so")))))
+                                    (search-path
+                                     library-path
+ (string-append "lib" name ".so")))))
                (for-each

As discussed on IRC, the "or" is actually important here to avoid substituting #f as the library name. I've attached a patch on top of yours that adds the "or" back (including the other two that I missed in my earlier patch), and also switches to "string-append" which is less sensitive to this problem.

I have built up to openjdk11 with this patch, and I see less #f's in the result. There are still some in the compiled libraries, but I haven't investigated thoroughly as to whether they're correct or not.

Carlo

Attachment: 0001-gnu-Fix-openjdk-library-substitution-when-libraries-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]