GNOME Bugzilla – Bug 740062
Make install is broken for manual installs
Last modified: 2015-02-27 16:49:16 UTC
jhbuild buildone -afc java-atk-wrapper results in a successful build. However the same cannot be said for ./autogen.sh && make && make install because make install fails with the following error: /usr/bin/mkdir -p '-L/opt/gnome/lib -latk-1.0 -lgthread-2.0 -pthread -Wl,--export-dynamic -lgmodule-2.0 -pthread -lgdk-x11-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgdk_pixbuf-2.0 -lgobject-2.0 -lgconf-2 -lglib-2.0 /jre/lib/ext' /usr/bin/mkdir: invalid option -- 'L' Try '/usr/bin/mkdir --help' for more information. Makefile:388: recipe for target 'install-java_atk_wrapperDATA' failed make[3]: *** [install-java_atk_wrapperDATA] Error 1 make[3]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:598: recipe for target 'install-am' failed make[2]: *** [install-am] Error 2 make[2]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:437: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:411: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1 I suspect this has something to do with the setup of https://git.gnome.org/browse/java-atk-wrapper/tree/wrapper/Makefile.am
Created attachment 290634 [details] [review] Patch to fix part of the error This fixes part of the problem by setting propertiesdir and wrapperdir as directories not libraries! The error log is now as follows: /usr/bin/install: cannot remove ‘/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.25-2.b18.fc21.x86_64/jre/lib/ext/java-atk-wrapper.jar’: Permission denied Makefile:388: recipe for target 'install-java_atk_wrapperDATA' failed make[3]: *** [install-java_atk_wrapperDATA] Error 1 make[3]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:598: recipe for target 'install-am' failed make[2]: *** [install-am] Error 2 make[2]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:437: recipe for target 'install-recursive' failed make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory '/home/magpie/jhbuild/checkout/java-atk-wrapper/wrapper' Makefile:411: recipe for target 'install-recursive' failed make: *** [install-recursive] Error 1
Review of attachment 290634 [details] [review]: Committed with https://git.gnome.org/browse/java-atk-wrapper/commit/?id=4a6a042000f9691aa0bbb64e2893079d5dd8e826
Created attachment 290641 [details] [review] patch to provide complete fix This patch fixes things completely because setting these directories using JDK_SRC directory means that make install breaks if the user wants to install using a directory that is not owned by root. Using prefix instead allows more flexibility
[Moving at-spi/javva-atk-wrapper bugs to separate product. See bug 740075]