Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Upstream dev-python/charset_normalizer-2.1.1.tar.gz replaced

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
mmogilvi
n00b
n00b
Posts: 64
Joined: Fri May 13, 2011 3:13 am

Upstream dev-python/charset_normalizer-2.1.1.tar.gz replaced

  • Quote

Post by mmogilvi » Wed Sep 28, 2022 6:20 am

I don't know if this should be considered a problem worth changing anything for or not, but:

If I download the original SRC_URI indicated in the dev-python/charset-normalizer-2.1.1 ebuild ( https://github.com/Ousret/charset_norma ... 1.1.tar.gz ), it is currently a 86023 byte file. If emerge ends up trying to use this version, it generates a size mismatch error (not consistent with Manifest) and fails.

In contrast, emerge normally downloads it from gentoo mirrors, which is getting me a 86024 byte file, which matches the Manifest file.

If I unpack both and do a recursive diff, there is exactly one character different:

diff -r cm-fromGentoo-wrongVersionPyFile/charset_normalizer/version.py charset_normalizer-2.1.1/charset_normalizer/version.py
5c5
< __version__ = "2.1.0"
---
> __version__ = "2.1.1"

Presumably (guessing) upstream released it with it the wrong internal version number, a gentoo developer grabbed and cached that version of the file, but then upstream replaced it in-place (same URL) with a fixed version.

Workaround: Obviously an immediate workaround is to just make sure your distfiles has the version from portage mirrors, that matches the Manifest file, despite the incorrect internal version. However, I don't know if this is really the "right" long-term solution. (Although watch out for the rename adding a ".gh" in the middle of the filename.)

Question: Does it makes sense for someone to update the gentoo mirrors, ebuild, and/or Manifest somehow? (Which might cause a window of time when there are difficulties when various distributed cached copies of the file and the Manifest being inconsistent with each other.)

(I stumbled over this unintentionally because I was getting weird repeated reset connections after only a few kbytes for this file, probably because of some combination of $DAYJOB's corporate firewall, the mirror I was using ( http://www.gtlib.gatech.edu/pub/gentoo , I think ), and my continued usage of a tweaked version of the the old long-treecleaned http-replicator proxy cache package. From emerge-fetch.log, it was erring out on the partial downloads and retrying (much slower than usual), and eventually emerge fell back on downloading from the original SRC_URI, ending up with an unexpected slightly different file...)
Top
Josef.95
Advocate
Advocate
Posts: 4857
Joined: Mon Sep 03, 2007 9:46 am
Location: Germany

  • Quote

Post by Josef.95 » Wed Sep 28, 2022 12:14 pm

It is probably already fixed, see https://bugs.gentoo.org/873277
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Sep 28, 2022 12:15 pm

In my opinion, yes, this is worth fixing. I think anyone who sets GENTOO_MIRRORS="" (discouraged, but not specifically prohibited) or who, like you, experiences repeated errors with mirrors not offering the file, will hit this. I think the correct solution is to [bug=]file a bug[/bug] reporting that upstream changed the content of their tarball without changing its filename. A Gentoo maintainer can then grab the re-released file, rebuild the manifest, and upload those in place over the existing version.
Top
Ionen
Developer
Developer
User avatar
Posts: 3014
Joined: Thu Dec 06, 2018 2:23 pm

  • Quote

Post by Ionen » Wed Sep 28, 2022 1:06 pm

Yeah, ideally if there's a screw up they should just have done 2.1.2 release rather than try to sneak in fixes in 2.1.1. Reporting upstream to give them an earful and hopefully not do retagging again is appreciated

But Gentoo will still update those if informed though (or at least I do when need be and welcome bug reports, in a recent case I had to deal with the old same-version tag was missing a rather important fix), it's also good to verify these in case it was something malicious (not that I've seen this so far).

Cases like upstream files going missing may be less interesting if mirror'ed though (one of the main point of mirrors). At best can change the SRC_URI to force mirrors so it works even for those without proper setup, but well... do keep a working GENTOO_MIRRORS :)
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic