GithubHelp home page GithubHelp logo

Debian packaging about libspng HOT 14 CLOSED

Tachi107 avatar Tachi107 commented on June 14, 2024
Debian packaging

from libspng.

Comments (14)

Tachi107 avatar Tachi107 commented on June 14, 2024 2

Ok, nice to know, thanks :)

The package is ready; it's just waiting for someone to upload it in the main Debian archive (I'm haven't full privileges yet, and I can't do the first upload myself).

from libspng.

randy408 avatar randy408 commented on June 14, 2024 1

It was an unintended side effect of renaming the Meson project to "spng", the pkgconfig name changed with it. It was not spotted until much later, by that time the new name was expected in some projects.

For v1.0.0 (the version planned to include breaking changes) it will probably be changed it to the shorter version for CMake, newer libraries don't have the prefix either.

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024 1

Thanks for the info :)

I forgot to mention this earlier, but if you want to follow packaging progress you can look at https://bugs.debian.org/1024643

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024 1

libspng is now in Debian!

https://tracker.debian.org/news/1416587/accepted-libspng-073-1-source-amd64-all-into-unstable/

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024 1

from libspng.

randy408 avatar randy408 commented on June 14, 2024

I removed the debian/ directory on the master branch.

The Meson build should be considered the "official" one. It contains the unit tests, though the tests also depend on libpng, some distros have libpng as a build-depends as a result. There's some progress in decoupling some of the tests from that dependency but have no ETA on that.

There will be a new minor bugfix release soon, if some other change should be included in the next version let me know.

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024

Having libpng-dev as a build dependency isn't an issue at all, don't worry.

Other than the removal of debian/ I have no requests. Thanks :D

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024

Hi again :)

I'm mostly done with packaging, but I now have a few questions regarding licensing.

  1. What's the license of the files under tests/crashers/ and tests/misc/? Are they part of PngTest?
  2. Is there a reason why spng.h is licensed under the BSD-2-Clause AND libpng-2.0 instead of just the BSD-2-Clause or even BSD-2-Clause OR libpng-2.0? As far as I can tell, code originating from libpng is only part of spng.c, not the header file.

from libspng.

randy408 avatar randy408 commented on June 14, 2024

tests/misc/ should fall under the project's license.

tests/crashers/ is more complicated, the majority of it are from https://github.com/glennrp/libpng/tree/libpng16/contrib/testpngs/crashers, those fall under the libpng license according to the package's copyright. The rest (invalid_gray_alpha_sbit.png, missing_plte.png, zero_gama.png, zero_width.png) are produced by OSS-Fuzz, I'm not sure what their status is, they're only published on the chromium bug tracker.

As far as I can tell, code originating from libpng is only part of spng.c, not the header file.

That makes sense, I just haven't considered them separate before.

from libspng.

randy408 avatar randy408 commented on June 14, 2024

Fixed the SPDX ID for spng.h, I could reorganize tests/crashers/ so only the meson.build and a subdirectory like ossfuzz would be an exception in the copyright file.

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024

from libspng.

Tachi107 avatar Tachi107 commented on June 14, 2024

Hi, the package is now pretty much ready, but I noticed something that you might've not considered while I was writing tests for the package. The .pc file generated by Meson is named spng.pc, while the one used by CMake is named libspng.pc. I guess that the pkg-config file generated by Meson should have the "lib" prefix too, right? This would be more in line with the project name and also libpng's own .pc file.

PS: you can add filebase: 'libspng' to the pkg.generate() call to change the .pc file name

from libspng.

randy408 avatar randy408 commented on June 14, 2024

AFAIK they usually need a good reason to accept a new package, like another package that already depends on it. It's worth mentioning libvips, it's already in Debian and it prefers spng over libpng, it is a dependency on Mac/homebrew (https://formulae.brew.sh/formula/vips) for this reason and I believe it's also bundled with the Windows builds.

from libspng.

randy408 avatar randy408 commented on June 14, 2024

https://www.mail-archive.com/[email protected]/msg1893857.html

Is fixing that bug essential for shipping the library in the next version of Debian? I have a vague idea how new Debian releases are prepared, at some point they drop packages that have outstanding bugs but not sure if it applies in this case.

from libspng.

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.