#24 Fix LD_LIBRARY_PATH in %check
Merged 11 months ago by yselkowitz. Opened 11 months ago by yselkowitz.
rpms/ yselkowitz/gettext rawhide  into  rawhide

file modified
+1 -1
@@ -287,7 +287,7 @@ 

  # this takes quite a lot of time to run

  

  # adapt to rpath removal

- export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-tools/intl/.libs

+ export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:$PWD/gettext-runtime/intl/.libs

  

  # override LIBUNISTRING to prevent reordering of lib objects

  make check LIBUNISTRING=-lunistring

gettext-0.22 dropped the second copy of libintl in gettext-tools, and now relies on the copy in gettext-runtime. These are used for the tests, without which a number will fail.

This is needed to fix the build of gettext in ELN. To be honest, I'm not exactly sure how the tests passed in rawhide without this.

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci
https://fedora.softwarefactory-project.io/zuul/buildset/40d5e9d23e6040928a2f8d229d905278

To be honest, I'm not exactly sure how the tests passed in rawhide without this.

It now appears that this worked by accident in Fedora because its binutils defaults to --enable-new-dtags, where RHEL/ELN does not.

Pull-Request has been merged by yselkowitz

11 months ago
Metadata