{"push_id":1251099195,"size":1,"distinct_size":1,"ref":"refs/heads/2.2-ubuntujava9fix2","head":"c9ec690d893529255b17910b11b83a3fc291dfd8","before":"d6122f8f335020274cb0f845280a685f574cb1ce","commits":[{"sha":"c9ec690d893529255b17910b11b83a3fc291dfd8","author":{"name":"Jonas Kalderstam","email":"7f140b51f30eb0762518f611c7ec9a2dd0c91007@kalderstam.se"},"message":"Update debian java dependency\n\nThis is a backport and update of the fix for #7188\n\nIt does not use the `Conflicts` line we previously added to prevent the\ninstallation of openjdk-9 on Ubuntu 16.04. (when forward merging should\ntake care to remove that line from the 3.x branches, and update version\nto java-8 as well).\n\nThe relevant part of `Depends:` is:\n\n```\nopenjdk-N-jre-headless | javaN-runtime-headless\n```\n\n(where N will be 7 for 2.x and 8 for 3.x)\n\n`javaN-runtime` is a virtual package which for example `openjdk-N-jre`\nprovides. Installing for example an Oracle JRE from webupd8 will also\nprovide it.\n\nThe line has the following effect:\n\n- If neither package is found/provided on the system, it will install\n  `openjdk-N-jre-headless`\n- If either of the packages is found/provided on the system, no\n  additional JRE will be installed.\n\nSome simple testing of this behavior on a fresh Ubuntu 16.04 docker\ninstance follows.\n\nFirst setup the webupd8 ppa to be able to test with another JRE:\n\n```\napt-get update && \\\n  apt-get install -y software-properties-common && \\\n  add-apt-repository ppa:webupd8team/java && \\\n  apt-get update\n```\n\nThen, install neo4j (example uses this change but built for 3.1)\n\n```\ndpkg -i neo4j_3.1.0.SNAPSHOT_all.deb\n```\n\ndpkg will complain about missing packages\n\n```\nSelecting previously unselected package neo4j.\n(Reading database ... 10127 files and directories currently installed.)\nPreparing to unpack neo4j_3.1.0.SNAPSHOT_all.deb ...\nUnpacking neo4j (3.1.0.SNAPSHOT) ...\ndpkg: dependency problems prevent configuration of neo4j:\n neo4j depends on daemon; however:\n  Package daemon is not installed.\n neo4j depends on psmisc; however:\n  Package psmisc is not installed.\n neo4j depends on openjdk-8-jre-headless | java8-runtime; however:\n  Package openjdk-8-jre-headless is not installed.\n  Package java8-runtime is not installed.\n\ndpkg: error processing package neo4j (--install):\n dependency problems - leaving unconfigured\nProcessing triggers for systemd (229-4ubuntu4) ...\nErrors were encountered while processing:\n neo4j\n```\n\nFix them and see that\nopenjdk-9 is NOT installed\n\n```\napt-get install -f\n```\n\n```\nThe following NEW packages will be installed:\n  ca-certificates-java daemon fontconfig-config fonts-dejavu-core java-common libavahi-client3 libavahi-common-data\n  libavahi-common3 libcups2 libfontconfig1 libfreetype6 libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 libnss3 libnss3-nssdb\n  libpcsclite1 libpng12-0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxi6 libxrender1 libxtst6\n  openjdk-8-jre-headless psmisc x11-common\n```\n\nNow, we try with Oracle JRE instead\n\nUninstall neo4j and java again\n\n```\napt-get purge neo4j openjdk-8-jre-headless\n```\n\nInstall Oracle JRE\n\n```\napt-get install oracle-java8-installer\n```\n\nand install neo4j and notice that nothing is missing and nothing more is\ninstalled\n\n```\ndpkg -i neo4j_3.1.0.SNAPSHOT_all.deb\n```\n\n```\nSelecting previously unselected package neo4j.\n(Reading database ... 11232 files and directories currently installed.)\nPreparing to unpack neo4j_3.1.0.SNAPSHOT_all.deb ...\nUnpacking neo4j (3.1.0.SNAPSHOT) ...\nSetting up neo4j (3.1.0.SNAPSHOT) ...\ninvoke-rc.d: policy-rc.d denied execution of start.\nProcessing triggers for systemd (229-4ubuntu4) ...\n```","distinct":true,"url":"https://api.github.com/repos/spacecowboy/neo4j/commits/c9ec690d893529255b17910b11b83a3fc291dfd8"}]}
{"actor":{"display_login":"spacecowboy"}}