Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help needed] traccar: init at 4.2 #54309

Closed
wants to merge 1 commit into from

Conversation

jluttine
Copy link
Member

Motivation for this change

Package for Traccar: https://www.traccar.org/

After this works, I'd like to add a traccar service to NixOS.

This is still work in progress, and any help would be greatly appreciated. I have no idea how to build with Maven on NixOS.. This is the build failure I'm now getting:

$ nix-build '<nixpkgs>' -A traccar
these derivations will be built:
  /nix/store/vng60wpg616h5mpkwyzn4aq5z94rfawz-traccar-4.2.drv
building '/nix/store/vng60wpg616h5mpkwyzn4aq5z94rfawz-traccar-4.2.drv'...
unpacking sources
unpacking source archive /nix/store/2bj2wyj2lsc8cmh8hgwk9v37d6fwz7ma-source
source root is source
patching sources
configuring
no configure script, doing nothing
building
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< org.traccar:traccar >-------------------------
[INFO] Building traccar 4.2-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-enforcer-plugin/1.4.1/maven-enforcer-plugin-1.4.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.377 s
[INFO] Finished at: 2019-01-19T11:07:48Z
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-enforcer-plugin:1.4.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-enforcer-plugin:jar:1.4.1: Could not transfer artifact org.apache.maven.plugins:maven-enforcer-plugin:pom:1.4.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org: Name or service not known: Unknown host repo.maven.apache.org: Name or service not known -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
builder for '/nix/store/vng60wpg616h5mpkwyzn4aq5z94rfawz-traccar-4.2.drv' failed with exit code 1
error: build of '/nix/store/vng60wpg616h5mpkwyzn4aq5z94rfawz-traccar-4.2.drv' failed

Official build instructions: https://www.traccar.org/build/

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@veprbl
Copy link
Member

veprbl commented Jan 19, 2019

FWIW there is some info in #19741

@veprbl
Copy link
Member

veprbl commented Oct 25, 2019

Any progress?

@jluttine
Copy link
Member Author

@veprbl No, I haven't looked into this in a while. I'd be interested in traccar service though. When/if I find time, I'd continue with this, but I have no idea when that might happen. Should I close this or keep open as the packaging request for traccar is still valid?

@veprbl
Copy link
Member

veprbl commented Oct 25, 2019

Should I close this or keep open as the packaging request for traccar is still valid?

I would suggest closing the PR if you don't have a change that you'd like to incorporate to nixpkgs. You can open an issue to track this, we provide a template for packaging requests.

@jluttine
Copy link
Member Author

Ok, thanks!

@jluttine jluttine closed this Oct 25, 2019
@jluttine
Copy link
Member Author

Oh, I had totally missed that someone had provided some help on my fork: jluttine#1. Just linking it here for reference. Perhaps I'll try that out soon! If so and I can make it work, I'll re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants