Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 718060 - dev-db/arangodb-3.7.0.1: new ebuild
Summary: dev-db/arangodb-3.7.0.1: new ebuild
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-18 15:21 UTC by Erik Quaeghebeur
Modified: 2022-08-12 18:36 UTC (History)
1 user (show)

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


Attachments
arangodb 3.7.0 ebuild attempt (arangodb-3.7.0.ebuild,1.78 KB, text/plain)
2020-04-18 15:21 UTC, Erik Quaeghebeur
Details
arangodb 3.7.0 ebuild attempt (arangodb-3.7.0.ebuild,1.78 KB, text/plain)
2020-04-20 21:24 UTC, Erik Quaeghebeur
Details
build log for ebuild attached as 633968 (arangodb-3.7.0:20200420-200850.log,21.03 KB, text/x-log)
2020-04-20 21:26 UTC, Erik Quaeghebeur
Details
arangodb 3.7.0 ebuild attempt (arangodb-3.7.0.ebuild,1.86 KB, text/plain)
2020-04-21 19:35 UTC, Erik Quaeghebeur
Details
build log for ebuild attached as 634036 (arangodb-3.7.0:20200421-153339.log.bz2,114.16 KB, application/x-bzip)
2020-04-21 19:40 UTC, Erik Quaeghebeur
Details
arangodb 3.7.0 ebuild attempt (arangodb-3.7.0.ebuild,5.22 KB, text/plain)
2020-05-15 21:27 UTC, Erik Quaeghebeur
Details
build log for ebuild attached as 639476 (arangodb-3.7.0:20200515-165557.log.bz2,153.65 KB, application/x-bzip)
2020-05-15 21:29 UTC, Erik Quaeghebeur
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Quaeghebeur 2020-04-18 15:21:55 UTC
Created attachment 633586 [details]
arangodb 3.7.0 ebuild attempt

I am trying to create an ebuild for arangodb (https://www.arangodb.com/). I am basing my efforts on the ebuilds in an unmaintained overlay (https://github.com/gbevan/portage-arangodb-overlay/blob/master/dev-db/arangodb3/arangodb3-3.2.10.ebuild). However, currently my ebuild is not building yet. With this bug, I would like to get feedback on the ebuild, to get it working. Depending on how things turn out, I would like to attempt to get arangodb into the main tree, so pointers on what to do to meet the required standards are useful as well.
Comment 1 Erik Quaeghebeur 2020-04-18 15:24:36 UTC
With the current version of the ebuild (2020-04-18 15:21 UTC), I get the following error, which I think is due to a misspecification on my part:

CMake Error at cmake/FindPackageHandleStandardArgs.cmake:21 (message):
  Could NOT find PythonInterp: Found unsuitable version "1.4",
  but required is exact version "3"
  (found /var/tmp/portage/dev-db/arangodb-3.7.0/temp/python2.7/bin/python3)

I would be grateful for any pointers on how to fix this.
Comment 2 Jonas Stein gentoo-dev 2020-04-19 15:20:56 UTC
I suggest to discuss this on IRC #gentoo-dev-help
Comment 3 Erik Quaeghebeur 2020-04-20 21:24:23 UTC
Created attachment 633968 [details]
arangodb 3.7.0 ebuild attempt

Apparently, 3.7.0 is the first release to support/require Python 3. Changing the PYTHON_COMPAT fixed the issue described above.

The ebuild doesn't result in a successful build process yet, as it now bails out with the following error:

ninja: error: build.ninja:1272: bad $-escape (literal $ must be written as $$)

There are also quite a number of warnings in the build configuration stage and packages, like git and perl, detected (required?) while not in de ebuild ?DEPENDS yet. Guidance could be useful here. (I will include the build log in attachment as well.)
Comment 4 Erik Quaeghebeur 2020-04-20 21:26:24 UTC
Created attachment 633970 [details]
build log for ebuild attached as 633968
Comment 5 Erik Quaeghebeur 2020-04-21 19:35:24 UTC
Created attachment 634036 [details]
arangodb 3.7.0 ebuild attempt

Putting CMAKE_MAKEFILE_GENERATOR="emake" fixed the issue with ninja. (Upstream does not support ninja.)

This ebuild takes the build process much further. I now get an out-of-space error:

lto-wrapper: fatal error: write: No space left on device

I'm building in a tmpfs of 11 GB. I do not know whether that should be enough or not.

A lot of third-party packages are included (zlib, snappy, nghttp2, boost,…). Perhaps unbundling those can make the compile lighter. Pointers on how to debundle are welcome (I have no idea…).
Comment 6 Erik Quaeghebeur 2020-04-21 19:40:05 UTC
Created attachment 634038 [details]
build log for ebuild attached as 634036
Comment 7 Erik Quaeghebeur 2020-05-15 21:27:43 UTC
Created attachment 639476 [details]
arangodb 3.7.0 ebuild attempt

This version of the ebuild compiles, and installs files to proper paths.

Still to be done:
* Test whether it actually runs…
* Apply `keepdir` as needed.
* Deal with warnings in the build log.
* Unbundlings lots of stuff.

Any help appreciated.
Comment 8 Erik Quaeghebeur 2020-05-15 21:29:13 UTC
Created attachment 639478 [details]
build log for ebuild attached as 639476
Comment 9 Erik Quaeghebeur 2020-07-15 21:50:15 UTC
Updates to the ebuild are now done in my overlay (equaeghe):

https://github.com/equaeghe/gentoo-overlay/tree/master/dev-db/arangodb

Current version is 3.7.0.1
Comment 10 Erik Quaeghebeur 2022-08-12 18:36:05 UTC
I've removed the now stale ebuild from my overlay.