Coder Social home page Coder Social logo

xzcat program about mobilitydb HOT 9 CLOSED

mobilitydb avatar mobilitydb commented on June 19, 2024
xzcat program

from mobilitydb.

Comments (9)

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

Please see the note I put on the closed issue about zstd which is available on 3.15
https://cmake.org/cmake/help/latest/release/3.15.html?highlight=zstd

from mobilitydb.

cvvergara avatar cvvergara commented on June 19, 2024

Can you give me a link to the issue you mention?

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

from mobilitydb.

cvvergara avatar cvvergara commented on June 19, 2024

Link to comment:
#85 (comment)

This is what I found about xy files:
https://fileinfo.com/extension/xz
So using something specific that works, say for my computer, it might not work to other systems.
As Regina mentions in this mail:
https://lists.osgeo.org/pipermail/postgis-devel/2021-July/029058.html

I think using sed and awk in a cmake project is a big NO NO.

Its the same thing for xzcat, the no no, is that they do not exist in other systems.

That comment has a link to cmake 3.15, if someone is to package with, say bionic, the cmake that they woul be using is 3.10
https://packages.ubuntu.com/bionic/cmake
So if you wants minimum cmake 3.15 then it wouldn't be packaged for bionic (which hasn't reached its EOL).

This is what currently pgRouting has as minimum in order for it to be packaged to several others systems:
https://github.com/pgRouting/pgrouting/blob/main/CMakeLists.txt#L1

I pumped it up in mobilitydb from 3.1 to 3.2
https://github.com/MobilityDB/MobilityDB/blob/master/CMakeLists.txt#L1
https://github.com/MobilityDB/MobilityDB/blob/develop/CMakeLists.txt#L1

Which cmake to be the minimum one, must not be taken lightly, will affect to which systems you are willing to support.

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

I think we can simply change xzcat by gzcat. We used xz for its reduced size. For example, compressing the file test/general/data with both xz and gzip shows the difference

-rw-r--r-- 1 esteban esteban 2524628 Jul 27 10:46 load.sql.xz
-rw-r--r-- 1 esteban esteban 3947025 Jul 30 10:25 load.sql.gz

Therefore we can simply switch to gzip to enable multiplatform builds. In particular MSYS2 supports gzip but does not have the command gzcat. However, this is not a problem since it is equivalent to gunzip -c.

Just out of curiosity, which feature required to move cmake from 3.1 to 3.2?

from mobilitydb.

cvvergara avatar cvvergara commented on June 19, 2024

abd5277

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

Muchas gracias !

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

I found out that MSYS2 comes with xz
https://packages.msys2.org/base/mingw-w64-xz
and MacOS also
https://formulae.brew.sh/formula/xz
So I think we can leave xz for the moment.

from mobilitydb.

estebanzimanyi avatar estebanzimanyi commented on June 19, 2024

PR #155

from mobilitydb.

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.