MFC r342845,342846: Port NetBSD improvements: - Add -l support for xz files - Add lzip support to gzip based on the example lzip decoder.Obtained from: NetBSDRelnotes: yes
Use endian.h le32dec() instead of rolling our own.Suggested by: phkReviewed by: imp, pfgMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D16192
gzip(1): Don't shadow global 'err'Unbreak work build on ppc due to -Werror=shadow. Introduced in r336121.X-MFC-With: r336121
Don't delete outfile unconditionally.MFC after: 1 month
gzip: fix for undefined behavior.Unportable left shift reported with MKSANITIZER=yesUSE_SANITIZER=undefined:# progress -zf ./games.tgz tar -xp -C "./" -f -/public/src.git/usr.bin/gzip/gzip.c:2
gzip: fix for undefined behavior.Unportable left shift reported with MKSANITIZER=yesUSE_SANITIZER=undefined:# progress -zf ./games.tgz tar -xp -C "./" -f -/public/src.git/usr.bin/gzip/gzip.c:2126:33: runtime error: left shift of251 by 24 places cannot be represented in type 'int'100%|****************************************************************************************************************|44500 KiB 119.69 MiB/s 00:00 ETARefactor the following code into something that is more clearand fix signed integer shift, by casting all buf[] elements to(unsigned int):unsigned char buf[8];uint32_t usize;[...]else { usize = buf[4] | buf[5] << 8 | buf[6] << 16 | buf[7] << 24;[...]New version: usize = buf[4]; usize |= (unsigned int)buf[5] << 8; usize |= (unsigned int)buf[6] << 16; usize |= (unsigned int)buf[7] << 24;Only the "<< 24" part needs explicit cast, but for consistency make theinteger promotion explicit and clear to a code reader.Sponsored by <The NetBSD Foundation>Obtained from: NetBSD (CVS rev. 1.113)MFC after: 1 week
show more ...
Remove "All rights reserved" from my files.See r333391 for the rationale.MFC after: 1 week
Close the correct file descriptor.MFC after: 2 weeks
gzip(1): Remove duplicate close()CID: 1383560Reported by: CoveritySponsored by: Dell EMC Isilon
Create links for xzdiff.MFC after: 2 weeks
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - error
various: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
Set errno to EFTYPE instead of EINVAL to be more consistent with therest of code.MFC after: 1 month
Support SIGINFO.Obtained from: NetBSDMFC after: 2 weeks
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Add HAS_TESTS to all Makefiles that are currently using the`SUBDIR.${MK_TESTS}+= tests` idiom.This is a follow up to r321912.
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-ch
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-check-sandbox .No functional change intended.MFC after: 1 weeks
Reflect actual NetBSD revision we already have.MFC after: 3 days
Use type-independent formats for printing nlink_t and ino_t.Extracted from: ino64 work by gleb, mckusickDiscussed with: mckusickSponsored by: The FreeBSD FoundationMFC after: 1 week
style(9) indent changes, no actual code change.MFC after: 2 weeks
Use printable ASCII instead of octal representation.MFC after: 2 weeks
Use nitems() from sys/param.h.MFC after: 2 weeks.Sponsored by: gandi.net (BSD Day Taiwan)
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that na
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed- Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously.- Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.- Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)Document the proposed changes in share/examples/tests/tests/... via examplesso it's clear that ${PACKAGES}FILES is the suggested way forward in terms ofreplacing FILES. share/mk/bsd.README didn't seem like the appropriate methodof communicating that info.MFC after: never probablyX-MFC with: r298107PR: 209114Relnotes: yesTested with: buildworld, installworld, checkworld; buildworld, packageworldSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Connect MK_TESTS.Sponsored by: EMC / Isilon Storage Division
Avoid adding the '-release' suffix to non-debug kernel packages.Sponsored by: The FreeBSD Foundation
Update NetBSD RCS IDs to reflect the changes being upstreamed.MFC after: 13 daysX-MFC-With: r290024
1234