On Tue, 18 Jun 2024 at 05:30, Changqing Li via lists.openembedded.org <[email protected]> wrote: > > From: Changqing Li <[email protected]> > > when the tmpdir dir is longer than 220, there is no files saved in > tmp/sysroots/x86_64-linux/var/lib/apt/lists/ after run apt-get update, > this is because apt-get uses the path as the file name, but the file > name can't be longer than 255 according to /usr/include/linux/limits.h. > > [YOCTO #2688] > > Signed-off-by: Robert Yang <[email protected]> > > Take back from > https://git.openembedded.org/openembedded-core/commit/?id=9a0c0393871eda4bbcecfdd4b595f0c1b8e42edf > Signed-off-by: Changqing Li <[email protected]> > --- > ...he-filename-can-t-be-longer-than-255.patch | 40 +++++++++++++++++++ > meta/recipes-devtools/apt/apt_2.6.1.bb | 1 + > 2 files changed, 41 insertions(+) > create mode 100644 > meta/recipes-devtools/apt/apt/0001-strutl.cc-the-filename-can-t-be-longer-than-255.patch > > diff --git > a/meta/recipes-devtools/apt/apt/0001-strutl.cc-the-filename-can-t-be-longer-than-255.patch > > b/meta/recipes-devtools/apt/apt/0001-strutl.cc-the-filename-can-t-be-longer-than-255.patch > new file mode 100644 > index 0000000000..c88efa3aae > --- /dev/null > +++ > b/meta/recipes-devtools/apt/apt/0001-strutl.cc-the-filename-can-t-be-longer-than-255.patch > @@ -0,0 +1,40 @@ > +From 918295aa1320718d342116f76c98d2289d377800 Mon Sep 17 00:00:00 2001 > +From: Changqing Li <[email protected]> > +Date: Tue, 18 Jun 2024 10:32:55 +0800 > +Subject: [PATCH] strutl.cc: the filename can't be longer than 255 > + > +The URItoFileName translates the path into the filename, but the > +filename can't be longer than 255 according to > +/usr/include/linux/limits.h. > + > +Truncate it when it is longer than 240 (leave some spaces for > +".Packages" and "._Release" suffix) > + > +Upstream-Status: Submitted [[email protected]]
Was this submitted just now, or is the status from the original patch? In any case, we need to trace the submissions, so please include a link to the bug page if there is one, or (better) re-submit as a pull request: https://salsa.debian.org/apt-team/apt Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#200862): https://lists.openembedded.org/g/openembedded-core/message/200862 Mute This Topic: https://lists.openembedded.org/mt/106734921/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
