mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 12:32:12 +02:00
1. Upgrade to fix the several CVEs: CVE-2014-0488, CVE-2014-0490 2. Remove apt-0.9.9.4-CVE-2014-0478.patch, which was backport. 3. Romve no-ko-translation.patch, apt-1.0.9.9 has ko translation 4. Update use-host.patch no-curl.patch db_linking_hack.patch and noconfigure.patch 5. Not build the test cases since it requires gtest 6. install libapt-private.so.* to libdir, otherwise this file is not installed into sysroot for native, and apt-get will use host's, and lead to fail 7. Revert apt commit[a2a75ff45]"always run 'dpkg --configure -a' at the end of our dpkg callings" for native package, otherwise the postscript for these installed packages will be run, and fail since the rootfs dir is not considered 8. Add lzma dependency by PACKAGECONFIG for target, and add xz dependency for native 9. Support to compile apt-native on centos6 (From OE-Core rev: 7dd4a53a99277b46696dea5558fa321a2267af0a) Signed-off-by: Roy Li <rongqing.li@windriver.com> Acked-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
36 lines
1.1 KiB
Diff
36 lines
1.1 KiB
Diff
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: Pending
|
|
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
|
|
---
|
|
apt-pkg/contrib/strutl.cc | 7 ++++++-
|
|
1 file changed, 6 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
|
|
--- a/apt-pkg/contrib/strutl.cc
|
|
+++ b/apt-pkg/contrib/strutl.cc
|
|
@@ -399,7 +399,12 @@ string URItoFileName(const string &URI)
|
|
// "\x00-\x20{}|\\\\^\\[\\]<>\"\x7F-\xFF";
|
|
string NewURI = QuoteString(U,"\\|{}[]<>\"^~_=!@#$%^&*");
|
|
replace(NewURI.begin(),NewURI.end(),'/','_');
|
|
- return NewURI;
|
|
+
|
|
+ // Truncate from the head when it is longer than 240
|
|
+ if(NewURI.length() > 240)
|
|
+ return NewURI.substr(NewURI.length() - 240, NewURI.length() - 1);
|
|
+ else
|
|
+ return NewURI;
|
|
}
|
|
/*}}}*/
|
|
// Base64Encode - Base64 Encoding routine for short strings /*{{{*/
|
|
--
|
|
1.7.10.4
|
|
|