Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 572490 - app-text/zathura-0.3.x - fails at src_install with: x86_64-pc-linux-gnu-gcc: error: zathura.o: No such file or directory
Summary: app-text/zathura-0.3.x - fails at src_install with: x86_64-pc-linux-gnu-gcc: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mikle Kolyada (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-21 08:48 UTC by Franz Trischberger
Modified: 2018-12-23 09:28 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,53.86 KB, application/octet-stream)
2016-01-21 08:48 UTC, Franz Trischberger
Details
zathura-0.3.5_fix_Makefile.patch (zathura-0.3.5_fix_Makefile.patch,572 bytes, patch)
2016-02-27 08:34 UTC, Franz Trischberger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Franz Trischberger 2016-01-21 08:48:32 UTC
Created attachment 423468 [details]
build.log

>>> Install zathura-0.3.4 into /var/tmp/portage/app-text/zathura-0.3.4/image/ category app-text
make -j11 WITH_SYSTEM_SYNCTEX=0 WITH_MAGIC=1 WITH_SQLITE=0 WITH_SYNCTEX=1 PREFIX=/usr LIBDIR=${PREFIX}/lib64 CC=x86_64-p
c-linux-gnu-gcc SFLAGS= VERBOSE=1 DESTDIR=/var/tmp/portage/app-text/zathura-0.3.4/image/ install 
zathura build options:
x86_64-pc-linux-gnu-gcc -Wl,-O1 -Wl,--as-needed -rdynamic  zathura.o build/release/bin/zathura   -o zathura
CFLAGS  = -march=corei7-avx -O2 -pipe -ggdb -std=c11 -pedantic -Wall -Wno-format-zero-length -Wextra -pthread -I/usr/inc
lude/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/incl
ude -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/har
fbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freety
pe2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/gli
b-2.0/include -I/usr/include/json-c -pthread -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi
-2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/in
clude/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/incl
ude/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/in
clude/libpng16 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-
2.0/include -pthread -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0
/include  -I/usr/include/synctex
LIBS    = -lgirara-gtk3 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 
-lgio-2.0 -lgobject-2.0 -lglib-2.0 -lgthread-2.0 -pthread -lglib-2.0 -lgmodule-2.0 -pthread -lglib-2.0 -lglib-2.0 -lpthr
ead -lm -lmagic -lsynctex
DFLAGS  = -g
CC      = x86_64-pc-linux-gnu-gcc
make -C po
x86_64-pc-linux-gnu-gcc: error: zathura.o: No such file or director
Comment 1 Franz Trischberger 2016-02-27 08:33:39 UTC
zathura-0.3.5 is still affected.
I had a look at the Makefile and created the following patch:

diff --git a/zathura-0.3.5/Makefile.old b/zathura-0.3.5/Makefile
index 9fc1fcc..3766b87 100644
--- a/zathura-0.3.4/Makefile
+++ b/zathura-0.3.5/Makefile
@@ -288,7 +288,7 @@ uninstall: uninstall-headers
        $(QUIET)rm -f $(DESTDIR)$(APPDATAPREFIX)/$(PROJECT).appdata.xml
        $(MAKE) -C po uninstall
 
-DEPENDS = ${DEPENDDIRS:^=${DEPENDDIR}/}$(addprefix ${DEPENDDIR}/,${OBJECTS:.o=.o.dep})
+DEPENDS = ${DEPENDDIRS:^=${DEPENDDIR}/}$(addprefix ${DEPENDDIR}/,${OBJECTS:.o=.dep})
 -include ${DEPENDS}
 
 .PHONY: all options clean doc debug valgrind gdb dist doc install uninstall \


I don't understand Makefiles, especially I don't understand what that line exactly does, but it fixes my issue. So review carefully.
Comment 2 Franz Trischberger 2016-02-27 08:34:25 UTC
Created attachment 426722 [details, diff]
zathura-0.3.5_fix_Makefile.patch
Comment 3 Franz Trischberger 2016-08-02 06:55:01 UTC
zathura-0.3.6 has the same issue, previous patch applies fine and fixes the issue also for 0.3.6
Comment 4 Michael Weber (RETIRED) gentoo-dev 2017-01-29 17:00:49 UTC
hm, the patch applies against -3.7, too. but i never needed it.
Comment 5 Michael Weber (RETIRED) gentoo-dev 2017-01-29 18:47:53 UTC
(In reply to Michael Weber from comment #4)
> hm, the patch applies against -3.7, too. but i never needed it.

just tried it 653 times with -j4.
Comment 6 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-25 10:53:40 UTC
Could you please re-try with newer versions? It seems fixed to me
Comment 7 Franz Trischberger 2018-11-25 11:26:25 UTC
I jumped to testing in the meantime and with 0.4.1 there is no issue. I just tried 0.3.8 and I have the issue reported here.
Comment 8 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-11-25 11:31:16 UTC
hmm, good reason to drop 0.3.x after we are done with stabilization, will remain open. Thank you!
Comment 9 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2018-12-23 09:28:37 UTC
Ok, I've removed old 0.3 stuff from the tree as there is newer zathura upstream version anyway, will add this week.