Summary: | 11.0-CURRENT r298192 (file 5.26) breaks portupgrade and more on amd64 and powerpc64 (and more); its MFC r298920 breaks on 10-STABLE | ||
---|---|---|---|
Product: | Base System | Reporter: | Mark Millard <marklmi26-fbsd> |
Component: | bin | Assignee: | Xin LI <delphij> |
Status: | Closed FIXED | ||
Severity: | Affects Many People | CC: | dpetrov67, junchoon, peter.thoenen, tschweikle |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=209237 |
Description
Mark Millard
2016-05-02 18:47:50 UTC
Over to committer of file(1) changes (r298192). Akinori MUSHA (original developer of ports-mgmt/portupgrade) noted that this problem is caused by upstream (file 5.26) bug on freebsd-current ML. See https://lists.freebsd.org/pipermail/freebsd-current/2016-May/061072.html. For more detail, see the first URL (Upstream bugtracker) mentioned in the post. As mentioned by Akinori, file 5.26 has another severe bug. So r298192 (head) and r298920 (stable/10) would be bettter reverted for now (Back to file 5.25.) and wait for upstream fix. Committed a fix as r299234 to head/. MFC reminder. A commit references this bug: Author: delphij Date: Sun May 8 09:30:36 UTC 2016 New revision: 299234 URL: https://svnweb.freebsd.org/changeset/base/299234 Log: MFV r299233: Apply upstream fix 11edb37a71851b5bcbd4e51ca6ad3dcbf57e9761: Revert: Don't close stdin... This have been observed by portupgrade in its interaction with file(1), as reported as a regression in bin/209211. PR: 209211 MFC after: 3 days Changes: _U head/contrib/file/ head/contrib/file/src/magic.c Confirmed fixed by manually applying to stable/10, r299232. Thanks! But please note that another bug Akinori mentioned would not be fixed. Viewing upstream github (public, readonly one), fix for upstream head haven't been sync'ed yet. *On upstream bugtracker, said to be fixed at 6 May, but latest entry on github was 12 days ago (should be 27 April). So don't know how to pull in the fix. (In reply to Tomoaki AOKI from comment #2) I see, I'll revert it in stable/10 for now. A commit references this bug: Author: delphij Date: Sun May 8 18:09:32 UTC 2016 New revision: 299236 URL: https://svnweb.freebsd.org/changeset/base/299236 Log: Revert r298920 until we have addressed all known regressions on head/ after settle. file is now downgraded to 5.25. PR: bin/209211 Requested by: Tomoaki AOKI Relnotes: yes Changes: _U stable/10/ stable/10/contrib/file/ChangeLog stable/10/contrib/file/README stable/10/contrib/file/config.h.in stable/10/contrib/file/configure stable/10/contrib/file/configure.ac stable/10/contrib/file/doc/file.man stable/10/contrib/file/doc/libmagic.man stable/10/contrib/file/magic/Magdir/android stable/10/contrib/file/magic/Magdir/animation stable/10/contrib/file/magic/Magdir/apple stable/10/contrib/file/magic/Magdir/archive stable/10/contrib/file/magic/Magdir/audio stable/10/contrib/file/magic/Magdir/bioinformatics stable/10/contrib/file/magic/Magdir/c-lang stable/10/contrib/file/magic/Magdir/cafebabe stable/10/contrib/file/magic/Magdir/coff stable/10/contrib/file/magic/Magdir/commands stable/10/contrib/file/magic/Magdir/compress stable/10/contrib/file/magic/Magdir/console stable/10/contrib/file/magic/Magdir/database stable/10/contrib/file/magic/Magdir/der stable/10/contrib/file/magic/Magdir/filesystems stable/10/contrib/file/magic/Magdir/finger stable/10/contrib/file/magic/Magdir/flif stable/10/contrib/file/magic/Magdir/fonts stable/10/contrib/file/magic/Magdir/fortran stable/10/contrib/file/magic/Magdir/hitachi-sh stable/10/contrib/file/magic/Magdir/images stable/10/contrib/file/magic/Magdir/intel stable/10/contrib/file/magic/Magdir/java stable/10/contrib/file/magic/Magdir/lisp stable/10/contrib/file/magic/Magdir/mach stable/10/contrib/file/magic/Magdir/macintosh stable/10/contrib/file/magic/Magdir/microfocus stable/10/contrib/file/magic/Magdir/misctools stable/10/contrib/file/magic/Magdir/modem stable/10/contrib/file/magic/Magdir/msdos stable/10/contrib/file/magic/Magdir/msvc stable/10/contrib/file/magic/Magdir/msx stable/10/contrib/file/magic/Magdir/netbsd stable/10/contrib/file/magic/Magdir/polyml stable/10/contrib/file/magic/Magdir/psdbms stable/10/contrib/file/magic/Magdir/python stable/10/contrib/file/magic/Magdir/sendmail stable/10/contrib/file/magic/Magdir/sgml stable/10/contrib/file/magic/Magdir/sinclair stable/10/contrib/file/magic/Magdir/sql stable/10/contrib/file/magic/Magdir/terminfo stable/10/contrib/file/magic/Magdir/vacuum-cleaner stable/10/contrib/file/magic/Magdir/windows stable/10/contrib/file/magic/Magdir/wordprocessors stable/10/contrib/file/magic/Makefile.am stable/10/contrib/file/magic/Makefile.in stable/10/contrib/file/python/README stable/10/contrib/file/python/magic.py stable/10/contrib/file/python/setup.py stable/10/contrib/file/src/Makefile.am stable/10/contrib/file/src/Makefile.in stable/10/contrib/file/src/apprentice.c stable/10/contrib/file/src/ascmagic.c stable/10/contrib/file/src/compress.c stable/10/contrib/file/src/der.c stable/10/contrib/file/src/der.h stable/10/contrib/file/src/dprintf.c stable/10/contrib/file/src/file.c stable/10/contrib/file/src/file.h stable/10/contrib/file/src/file_opts.h stable/10/contrib/file/src/fmtcheck.c stable/10/contrib/file/src/funcs.c stable/10/contrib/file/src/magic.c stable/10/contrib/file/src/magic.h stable/10/contrib/file/src/print.c stable/10/contrib/file/src/readcdf.c stable/10/contrib/file/src/readelf.c stable/10/contrib/file/src/readelf.h stable/10/contrib/file/src/softmagic.c stable/10/lib/libmagic/Makefile stable/10/lib/libmagic/config.h A commit references this bug: Author: delphij Date: Sun May 8 18:18:35 UTC 2016 New revision: 299238 URL: https://svnweb.freebsd.org/changeset/base/299238 Log: MFV r299237: apply two upstream revisions to address upstream bug PR/540. PR: 209211 MFC after: 2 weeks X-MFC: if there is no new file release Changes: _U head/contrib/file/ head/contrib/file/src/softmagic.c I've fixed the other one (PR/540) in head/. Will MFC if no complains in two weeks and if there is no new release of file. (In reply to Xin LI from comment #9) Confirmed fixed by manually applying to stable/10, r299232. Also confirmed file and libmagic are reverted for stable/10 at r299236. Thanks! For us non-dev people can somebody post the quick and dirty "how to apply this" without rebuilding all of world, i.e. is there just a subsection I can rebuild after svn'ing something newer than r299232 (In reply to Peter Thoenen from comment #11) If you have FreeBSD source tree at default /usr/src and setting no options for buildworld, cd /usr/src/usr.bin/file make clean ; make ; make install cd /usr/src/lib/libmagic make clean ; make ; make install should be sufficient for this problem. (In reply to Xin LI from comment #9) As of 11.0 -r310815 and /usr/ports/ -r46711 after building portupgrade my use of portinstall did not get any broken pipe notices. [For some reason lua52 was not built when liblua-5.2.so was not found during a kyua build via portinstall -W --and portmaster -DK then had no such trouble. But I have no evidence that this would be a usefully related error.] As far as I can tell the original problem reported is fixed for 11.0 -r301815. I do not have a 10.x context to check. Fixed by MFC'ing file. *** Bug 209237 has been marked as a duplicate of this bug. *** |