Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Jan 2021 03:36:24 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 253089] zlib appears mis-versioned in pkg-config as 1.2.10 releng12.1 src versions the library at 1.2.11 as does zlib.h
Message-ID:  <bug-253089-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253089

            Bug ID: 253089
           Summary: zlib appears mis-versioned in pkg-config as 1.2.10
                    releng12.1 src versions the library at 1.2.11 as does
                    zlib.h
           Product: Base System
           Version: 12.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: alt2600@icloud.com

12.1-RELEASE-p12 FreeBSD 12.1-RELEASE-p12 r368528

/usr/src/sys/contrib/zlib/zlib.h   snippet

#ifndef ZLIB_H
#define ZLIB_H

#include "zconf.h"

#ifdef __cplusplus
extern "C" {
#endif

#define ZLIB_VERSION "1.2.11"
#define ZLIB_VERNUM 0x12b0
#define ZLIB_VER_MAJOR 1
#define ZLIB_VER_MINOR 2
#define ZLIB_VER_REVISION 11
#define ZLIB_VER_SUBREVISION 0


# $FreeBSD: releng/12.1/lib/libz/zlib.pc 311285 2017-01-04 16:09:08Z delphij $
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
sharedlibdir=${libdir}
includedir=${prefix}/include

Name: zlib
Description: zlib compression library
Version: 1.2.10

Requires:
Libs: -L${libdir} -L${sharedlibdir} -lz
Cflags: -I${includedir}


pkg-config --modversion zlib
1.2.10

found this while trying to upgrade a port that now explicitly requires zlib
1.2.11 and thought I had to update to 12.2 instead of just waiting for 13, but
everything I am seeing is suggesting 1.2.11 is in the base of releng12.1 but
the pc file is versioned incorrectly. Not sure if maybe there was a reason it
was held at 1.2.10, or if it should in fact be 1.2.11

when i edit /usr/libdata/pkgconfig/zlib.pc to reflect version 1.2.11 the port
builds and runs fine, but not sure this is correct and will be clobbered on any
new patches to releng12.1 during install. releng12.2 no longer has the
lib/libz/zlib.pc file which may be the issue, perhaps it uses the
sys/contrib/zlib.pc.in file to dynamically produce the pkg-config pc file? else
the library source files seem to be identical in the git repo. 12.1 is old in
the tooth, but it is still listed as a supported version so I figured I post
the potential bug. I didn't check the 11.4 branch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253089-227>