USE=-exif emerge sxiv fails in the install phase with the following error. >>> Install media-gfx/sxiv-26 into /dev/shm/portage/media-gfx/sxiv-26/image make -j8 -l8 DESTDIR=/dev/shm/portage/media-gfx/sxiv-26/image PREFIX=/usr install GEN version.h CC options.o LINK sxiv /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lexif collect2: error: ld returned 1 exit status make: *** [Makefile:42: sxiv] Error 1 * ERROR: media-gfx/sxiv-26::gentoo failed (install phase): * emake failed * * If you need support, post the output of `emerge --info '=media-gfx/sxiv-26::gentoo'`, * the complete build log and the output of `emerge -pqv '=media-gfx/sxiv-26::gentoo'`. * The complete build log is located at '/dev/shm/portage/media-gfx/sxiv-26/temp/build.log'. * The ebuild environment file is located at '/dev/shm/portage/media-gfx/sxiv-26/temp/environment'. * Working directory: '/dev/shm/portage/media-gfx/sxiv-26/work/sxiv-26' * S: '/dev/shm/portage/media-gfx/sxiv-26/work/sxiv-26' The "make" in the compile phase pass because we invoke with HAVE_LIBEXIF=0. But, the install phase tries to rebuild "sxiv" because version.h is updated, leading to the above link failure. Since the "Makefile" have the following rule and we don't have ".git/index" in the archive, "version.h" is rebuilt unconditionally. version.h: Makefile .git/index @echo "GEN $@" ... We can drop ".git/index" from the rule to fix it. Reproducible: Always Steps to Reproduce: 1. USE=-exif emerge sxiv
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70d37bf7e17f40f7953badc52302065bcc98d3f1 commit 70d37bf7e17f40f7953badc52302065bcc98d3f1 Author: Tim Harder <radhermit@gentoo.org> AuthorDate: 2020-02-06 04:54:11 +0000 Commit: Tim Harder <radhermit@gentoo.org> CommitDate: 2020-02-06 04:54:11 +0000 media-gfx/sxiv: fix build failure due to install phase rebuild Closes: https://bugs.gentoo.org/708450 Signed-off-by: Tim Harder <radhermit@gentoo.org> media-gfx/sxiv/sxiv-26.ebuild | 2 ++ media-gfx/sxiv/sxiv-9999.ebuild | 2 ++ 2 files changed, 4 insertions(+)
*** Bug 708516 has been marked as a duplicate of this bug. ***