Giter Site home page Giter Site logo

Unable to cross compile about puppet-summary HOT 5 CLOSED

skx avatar skx commented on September 26, 2024
Unable to cross compile

from puppet-summary.

Comments (5)

skx avatar skx commented on September 26, 2024 1

My view is that if a patch were to be submitted that used different bindings I'd accept it, but otherwise it works as-is and I wouldn't go out of my way to change just for cross-compilation.

I won't close, but I'll label appropriately.

from puppet-summary.

stahnma avatar stahnma commented on September 26, 2024 1

I got a build to cross-compile after a lot of fiddling with CGO. I'll put in a PR with some documentation on how to make it work. It's not super-pretty, but probably works. (I mean, it worked for me).

from puppet-summary.

skx avatar skx commented on September 26, 2024

For my own reference I looked into this again yesterday because I wanted to auto-build an i386 binary, as well as the amd64 one.

Turns out I'd misunderstood the nature of the bug report. What I thought was "These bindings don't allow for cross-compilation, please use a different sqlite binding". The actual bug here is that sqlite doesn't allow cross-compilation easily, because it is a native package.

So a solution here is not just "Find better/different bindings" it is "Don't use SQLite". I had a brief look at ql and boltdb. It might be that I'll have to switch to one/other of them, or something similar. The sticking point will be getting the queries we want working.

from puppet-summary.

stahnma avatar stahnma commented on September 26, 2024

from puppet-summary.

skx avatar skx commented on September 26, 2024

I've not looked horribly in-depth, but I think there are probably three different ways to go:

  • Try to rework things to use cznic/ql, which is 100% golang.
  • Try to rework it to use boltdb/leveldb.
  • Try to rework it to use Redis.

The first is perhaps the best, but failing that the last has its appeal. Moving from a relational database to key/val would be a lot of work, redis would let us store things in sets/hashes which makes it easier, but still non-trivial.

from puppet-summary.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.