Em 24/11/2026 14:45, Peter Pentchev escreveu:
On Tue, Nov 24, 2026 at 01:56:29PM -0300, Lucas Castro wrote:


Em 24/11/2026 13:47, Blair Nyktas escreveu:
On Tue Nov 24, 2026 at 3:58 PM UTC, Lucas Castro wrote:
Hi,

Em 23/11/2026 17:49, kpcyrd escreveu:
On 11/23/26 7:31 PM, Lucas Castro wrote:
(...)
* Package name    : rust-base64_light
(...)
Do you intend to package this as a library or as a binary project? :) For the 
library there's only 5 reverse dependencies, and as far as I can tell it has 
about the same lightweight footprint as the data-encoding crate (both in the 
binary and in API complexity):

I'm working on another package that depends on it, so it's not something that I 
can change/patch easily, not recommend and so on.

Yes you can! We patch things in Debian fairly often, that's part of the
work/fun.

in no moment I said it can't be done, it's not recommended. Patching isn't for 
fun, it's for required situation.

Sometimes patches are not *required* to make things work in Debian, but
are a good idea to make things simpler for Debian. I am not talking about
this case specifically, but in general, a new package that duplicates some
of the functionality of several existing ones will mean that Somebody(tm)
has to maintain it, Somebody(tm) has to keep up with upstream releases,
Somebody(tm) has to coordinate the upgrade of a dependency that will
affect this package, too... So sometimes it is indeed a good idea to check
whether changing a dependency might not be a better course.

If really required, would be required to coordinate with the upstream, writing 
testing to ensure final binary/library works as intended.
Really necessary if the library not comply with DFSG, but not the case.

Sometimes it may be a good idea to wait a little bit before packaging something,
contact upstream and ask them if they would be willing to make some change that,
besides being easier for Debian packagers, might also possibly be better for
upstream, too. Sometimes the upstream developers may simply not be aware of
other implementations, or they may not be aware of the issues that packagers
have to deal with.

Of course, sometimes the upstream developer will reply saying "yeah, sure,
I get your point, but here are a couple of reasons why I am not willing to
change things", and some of those reasons might actually make sense for
that particular project :)

There may also be a middle ground that, admittedly, will mean a bit more
work for the upstream developer, but would be easier for Debian ;)
Especially for Rust, alternative dependencies via the "features" mechanism are
quite common. Of course, doing this "right" would mean that upstream agrees to:
- add support for another base64 implementation
- make the newly-supported other base64 implementation the default
- turn support for the current one into a feature
- maintain both versions for the foreseeable future or until they decide that
   it is too much work and it is better to drop one of them :)

Not saying this would be the best course, just mentioning it as a possibility.

Really appreciated the points, I'm aware of that and agree.

But not the first step for this time.


Intend to package all the package offer, someone might like the binary 
application too.

Have you read its code? Compared it to mainstream implementations
(base64, base64ct)? What is it that this specific crate offers that the
existing, more mainstream ones can't? Who would like the binary
application, considering coreutils already provides better ones called
base64(1) and basenc(1)?



https://crates.io/crates/data-encoding

let encoded = data_encoding::BASE64.encode(bytes);

Thanks for recommendation, I'm not in upstream development process.

That's not about the upstream development process. That's about the
process in which you judge the quality of code and work and decide if
they are worth the effort, yours and others'.

For a Rust base64 implementation, the uutils project (packaged in Debian as 
rust-coreutils) has one.

There's others not in rust too.

There's a reason one thing is in Debian or is not. "I want it in" is not
enough. It needs to be useful, which in part means to have irreplaceable
value. Frankly I don't see this crate exhibit one.

I want it's not enough, that's true! But it's recommend to keep a 'fork'
upstream version just to replace things that you think that need to be patched.

See above. Sometimes it may be worth it asking the upstream authors in order to
avoid a fork.

In general, talking to the upstream authors of packages you maintain from
time to time is a good idea: it helps them gain respect for Debian,
sometimes it opens the path for them to do you favors in the future, etc.
Of course, the more packages a person (or a team) maintains, the harder it is
to have a good relationship with all the upstream authors :)

I second this.


If you don't think it's. Just not be the one uploading, as mentioned in Policy.


Thanks,


Sincerely,
kpcyrd




Reply via email to