After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 740062 - Make install is broken for manual installs
Make install is broken for manual installs
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
0.35.x
Other Linux
: Normal normal
: ---
Assigned To: java-atk-wrapper maintainer(s)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-11-13 12:47 UTC by Magdalen Berns (irc magpie)
Modified: 2015-02-27 16:49 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix part of the error (1.04 KB, patch)
2014-11-13 13:50 UTC, Magdalen Berns (irc magpie)
committed Details | Review
patch to provide complete fix (1.10 KB, patch)
2014-11-13 14:55 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Magdalen Berns (irc magpie) 2014-11-13 12:47:53 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
Comment 1 Magdalen Berns (irc magpie) 2014-11-13 13:50:18 UTC
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
Comment 3 Magdalen Berns (irc magpie) 2014-11-13 14:55:11 UTC
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
Comment 4 André Klapper 2015-02-27 16:49:16 UTC
[Moving at-spi/javva-atk-wrapper bugs to separate product. See bug 740075]