Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 606374 - =dev-lang/perl-5.22.3_rc4 fails tests with >=sys-libs/zlib-1.2.9
Summary: =dev-lang/perl-5.22.3_rc4 fails tests with >=sys-libs/zlib-1.2.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo Perl team
URL: https://rt.cpan.org/Public/Bug/Displa...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-18 13:46 UTC by Kent Fredric (IRC: kent\n) (RETIRED)
Modified: 2017-02-21 18:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,66.75 KB, text/plain)
2017-01-18 15:19 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
build.log.xz (build.log.xz,66.75 KB, application/x-xz)
2017-01-18 15:22 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-18 13:46:44 UTC
I started noticing this on a few installs this week and finally got around to investigating.

I'm not yet absolutely sure its zlib, but it seems to be the only real common element:


Test Summary Report
-------------------
../cpan/Compress-Raw-Zlib/t/02zlib.t                            (Wstat: 1280 Tests: 317 Failed: 5)
  Failed tests:  148, 152, 156, 164-165
  Non-zero exit status: 5
../cpan/IO-Compress/t/cz-03zlib-v1.t                            (Wstat: 1280 Tests: 471 Failed: 5)
  Failed tests:  208, 212, 216, 224-225
  Non-zero exit status: 5
../cpan/IO-Compress/t/cz-06gzsetp.t                             (Wstat: 3840 Tests: 51 Failed: 15)
  Failed tests:  6, 11-13, 19, 23-25, 31, 35-37, 43, 47-48
  Non-zero exit status: 15


Note this is also reinstalling perl in place over itself, so there's possible leak from the existing installation.

However, this is replicable in a stable minimal chroot :/ 

CCing in base-system in case they have any zlib-specific comments.



 emerge --info
Portage 2.3.0 (python 2.7.12-final-0, default/linux/amd64/13.0/no-multilib, gcc-4.9.4, glibc-2.23-r3, 4.4.39-gentoo x86_64)
=================================================================
System uname: Linux-4.4.39-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6750_@_2.66GHz-with-gentoo-2.3
KiB Mem:     2045408 total,     59000 free
KiB Swap:   18588764 total,  17178572 free
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.22.3_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://127.0.0.1/ http://distfiles.gentoo.org"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl amd64 berkdb bindist bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx mmxext modules ncurses nls nptl openmp pam pcre readline seccomp session sse sse2 ssl tcpd unicode xattr zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-18 15:19:31 UTC
Created attachment 460550 [details]
build.log.xz

Odd. I added this log when I filed the bug, but it was over 1MB, and so bugzilla rejected it and didn't even bother to tell me.

So here it is xzcompressed.
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-18 15:22:11 UTC
Created attachment 460552 [details]
build.log.xz

Somehow that got corrupted during upload. I'll give up if this fails.
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-01-18 16:25:34 UTC
Looks like the breaking behaviour came in 1.2.9, so its possible its a yet-to-be-identified regression in zlib.

Or it fixed a subtle problem in sizes of things, which perl was subtly dependent upon in the tests.

Things like this seem like they could be relevant:
- Assure that gzoffset() is correct when appending


But now I've narrowed down where it is, I just have to work out why I can't reproduce it under perlbrew.
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2017-01-18 21:03:45 UTC
From the upstream bug ($URL):

---
On Sun Jan 08 12:07:10 2017, https://vcunat.mojeid.cz/#53tSKthUzV wrote: Hide quoted text
> On Sun Jan 08 08:45:54 2017, PMQS wrote:
> > zlib-1.2.10 changed the API for the deflateParams function. [...]
> 
> So, I assume that means the current version won't (fully) work with
> zlib-1.2.10...
Correct. The function not working (deflateParams) is one I doubt many (if any) folk rely on. The fix is proving problematic, so may just temporarily remove support for deflateParams if I don't get it sorted soon.
---

This falls into the "Eeeeek.... !" category... :/
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-11 20:09:57 UTC
I've just made a patch that disables the failing tests as an interim solution to avoid discouraging people running tests.

https://github.com/gentoo-perl/perl-patchset/commit/1733e4e40d7a628b31d5b082f635a95763bfe1ad

Will put it on the next 5.24.1 bump

Its not great, but I wasn't able to find anything that touched these features.
Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2017-02-21 18:07:44 UTC
Fixed in 5.22.3 and 5.24.1-r1 by backporting XS code from latest Compress-Raw-Zlib 

commit f7f55098218de72848fed8ab450b5d895efc02eb
Author: Kent Fredric <kentnl@gentoo.org>
Date:   Wed Feb 22 05:56:13 2017 +1300

    dev-lang/perl,virtual/perl-Module-CoreList: Bump to 5.22.3 Final
    
    - Fix bug with patching now-missing CPANPLUS code #608966
    - Update cross-perl to 1.1.4
    - Fix cross-compile bugs
    - Fix GCC6 + lto bugs #583532
    - Backport fixes from Compress-Raw-Zlib 2.074 for zlib 1.2.9+
      #606374
    
    Bug: https://bugs.gentoo.org/608966
    Bug: https://bugs.gentoo.org/583532
    Bug: https://bugs.gentoo.org/606374
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/perl/perl-5.22.3.ebuild | 550 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 550 insertions(+)

commit e03cb8b9c2fee8ea8fbc7668e9b9b01d9fca059a
Author: Kent Fredric <kentnl@gentoo.org>
Date:   Tue Feb 21 15:14:57 2017 +1300

    dev-lang/perl: Update to patchelevel 3
    
    - Fix related to bug #608966 under crossdev where "touch" on a
      path would fail because the parent path did not exist
    - Fix patching failure under crossdev due to SHA1Sums changing
    - Upgrade perl-cross to 1.1.4
    - Fix makefile ordering issue when compiling unicore/ parts
      before Config.pm has been compiled
    - Ensure miniperl is built with the right target arch for
      bootstrap
    - Upgrade base.pm patchset to latest for testing
    - Fix compilation with GCC6 and -flto  #583532
    - Properly fix compilation against newer zlibs #606374 by
      backporting changes to ZLib.xs from Compress-Raw-Zlib 2.074
    
    Bug: https://bugs.gentoo.org/608966
    Bug: https://bugs.gentoo.org/583532
    Bug: https://bugs.gentoo.org/606374
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/perl/perl-5.24.1-r1.ebuild | 559 ++++++++++++++++++++++++++++++++++++
 1 file changed, 559 insertions(+)