Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 513398 - net-libs/czmq-2.2.0 writes empty Version in libczmq.pc
Summary: net-libs/czmq-2.2.0 writes empty Version in libczmq.pc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Justin Lecher (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-15 23:57 UTC by Thomas Deutschmann (RETIRED)
Modified: 2014-06-26 14:03 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,64.64 KB, text/plain)
2014-06-16 22:18 UTC, Thomas Deutschmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Deutschmann (RETIRED) gentoo-dev 2014-06-15 23:57:20 UTC
Hi,

with net-libs/czmq-2.2.0 packages like app-admin/rsyslog[zeromq] will fail with

> checking for CZMQ... no
> configure: error: Package requirements (libczmq >= 1.1.0) were not met:
> 
> Requested 'libczmq >= 1.1.0' but version of libczmq is
> 
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
> 
> Alternatively, you may set the environment variables CZMQ_CFLAGS
> and CZMQ_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.



If I downgrade to the previous net-libs/czmq version (net-libs/czmq-2.1.0) everything works again.

The problem seems to be an empty version field:

--- /root/libczmq.pc-2.1.0      2014-06-16 01:56:18.249111816 +0200
+++ /root/libczmq.pc-2.2.0      2014-06-16 01:53:32.827878604 +0200
@@ -5,7 +5,7 @@

 Name: libczmq
 Description: High-level C binding for 0MQ
-Version: 2.1.0
+Version:
 Requires: libzmq
 Libs: -L${libdir} -lczmq
 Cflags: -I${includedir}


Reproducible: Always
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2014-06-16 20:22:02 UTC
mmh works here. Please attach a build.log from czmq and emerge --info
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2014-06-16 22:18:32 UTC
Created attachment 379096 [details]
build.log

# emerge --info net-libs/czmq
Portage 2.2.10 (default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.15.0-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.15.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3770K_CPU_@_3.50GHz-with-gentoo-2.2
KiB Mem:     4050092 total,   3213060 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Mon, 16 Jun 2014 21:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6-r1, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.15 (virtual/os-headers)
sys-libs/glibc:           2.19-r1

ABI="amd64"
ABI_X86="64"
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
ACCEPT_PROPERTIES="*"
ACCEPT_RESTRICT="*"
ARCH="amd64"
AUTOCLEAN="yes"
BOOTSTRAP_USE="cxx unicode internal-glib python_targets_python3_3 python_targets_python2_7 multilib"
CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author"
CAMERAS="ptp2"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx-i -mno-movbe -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-bmi2 -mno-tbm
 -mno-avx2 -mno-lzcnt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=generic"
CFLAGS_amd64="-m64"
CFLAGS_x32="-mx32"
CFLAGS_x86="-m32"
CHOST="x86_64-pc-linux-gnu"
CHOST_amd64="x86_64-pc-linux-gnu"
CHOST_x32="x86_64-pc-linux-gnux32"
CHOST_x86="i686-pc-linux-gnu"

=================================================================
                        Package Settings
=================================================================

net-libs/czmq-2.2.0 was built with the following:
USE="-doc -static-libs"
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2014-06-26 09:52:01 UTC
Please test version 2.2.0-r1.

+*czmq-2.2.0-r1 (26 Jun 2014)
+
+  26 Jun 2014; Justin Lecher <jlec@gentoo.org> -czmq-2.2.0.ebuild,
+  +czmq-2.2.0-r1.ebuild:
+  Bump to new tarball, fixes missing version.h, #513398
+
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2014-06-26 12:30:24 UTC
Hi,

the new ebuild with the updated tarball works, but there's something wrong with the Manifest and/or the mirrors are delivering the old invalid tarball:

>>> Downloading 'http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/czmq-2.2.0.tar.gz'
--2014-06-26 14:24:12--  http://ftp.uni-erlangen.de/pub/mirrors/gentoo/distfiles/czmq-2.2.0.tar.gz
Resolving ftp.uni-erlangen.de (ftp.uni-erlangen.de)... 2001:638:a000:1021:21::1, 131.188.12.211
Connecting to ftp.uni-erlangen.de (ftp.uni-erlangen.de)|2001:638:a000:1021:21::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 558239 (545K) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’

     0K .......... .......... .......... .......... ..........  9% 3,13M 0s
    50K .......... .......... .......... .......... .......... 18% 3,10M 0s
   100K .......... .......... .......... .......... .......... 27% 3,14M 0s
   150K .......... .......... .......... .......... .......... 36% 5,54M 0s
   200K .......... .......... .......... .......... .......... 45% 6,33M 0s
   250K .......... .......... .......... .......... .......... 55% 3,16M 0s
   300K .......... .......... .......... .......... .......... 64% 5,92M 0s
   350K .......... .......... .......... .......... .......... 73% 6,54M 0s
   400K .......... .......... .......... .......... .......... 82% 58,0M 0s
   450K .......... .......... .......... .......... .......... 91% 6,17M 0s
   500K .......... .......... .......... .......... .....     100% 5,83M=0,1s

2014-06-26 14:24:12 (4,80 MB/s) - ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’ saved [558239/558239]

!!! Fetched file: czmq-2.2.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      558239
!!! Expected: 304531
Refetching... File renamed to '/usr/portage/distfiles/czmq-2.2.0.tar.gz._checksum_failure_.qw16ih'

>>> Downloading 'ftp://mirror.netcologne.de/gentoo/distfiles/czmq-2.2.0.tar.gz'
pathconf: Permission denied
--2014-06-26 14:24:12--  ftp://mirror.netcologne.de/gentoo/distfiles/czmq-2.2.0.tar.gz
           => ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’
Resolving mirror.netcologne.de (mirror.netcologne.de)... 2001:4dd0:1234:1::deb, 194.8.197.22
Connecting to mirror.netcologne.de (mirror.netcologne.de)|2001:4dd0:1234:1::deb|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /gentoo/distfiles ... done.
==> SIZE czmq-2.2.0.tar.gz ... 558239
==> EPSV ... done.    ==> RETR czmq-2.2.0.tar.gz ... done.
Length: 558239 (545K) (unauthoritative)

     0K .......... .......... .......... .......... ..........  9% 1,52M 0s
    50K .......... .......... .......... .......... .......... 18% 3,56M 0s
   100K .......... .......... .......... .......... .......... 27% 3,55M 0s
   150K .......... .......... .......... .......... .......... 36% 7,03M 0s
   200K .......... .......... .......... .......... .......... 45% 7,13M 0s
   250K .......... .......... .......... .......... .......... 55% 7,28M 0s
   300K .......... .......... .......... .......... .......... 64% 8,28M 0s
   350K .......... .......... .......... .......... .......... 73% 33,3M 0s
   400K .......... .......... .......... .......... .......... 82% 7,80M 0s
   450K .......... .......... .......... .......... .......... 91% 8,46M 0s
   500K .......... .......... .......... .......... .....     100% 40,2M=0,1s

2014-06-26 14:24:12 (5,29 MB/s) - ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’ saved [558239]

!!! Fetched file: czmq-2.2.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      558239
!!! Expected: 304531
Refetching... File renamed to '/usr/portage/distfiles/czmq-2.2.0.tar.gz._checksum_failure_.qw16ih'

>>> Downloading 'http://download.zeromq.org/czmq-2.2.0.tar.gz'
--2014-06-26 14:24:12--  http://download.zeromq.org/czmq-2.2.0.tar.gz
Resolving download.zeromq.org (download.zeromq.org)... 95.142.169.98
Connecting to download.zeromq.org (download.zeromq.org)|95.142.169.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 592293 (578K) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’

     0K .......... .......... .......... .......... ..........  8%  559K 1s
    50K .......... .......... .......... .......... .......... 17%  746K 1s
   100K .......... .......... .......... .......... .......... 25% 1,09M 1s
   150K .......... .......... .......... .......... .......... 34% 1,09M 0s
   200K .......... .......... .......... .......... .......... 43% 1,10M 0s
   250K .......... .......... .......... .......... .......... 51% 2,16M 0s
   300K .......... .......... .......... .......... .......... 60% 2,20M 0s
   350K .......... .......... .......... .......... .......... 69% 2,16M 0s
   400K .......... .......... .......... .......... .......... 77% 2,16M 0s
   450K .......... .......... .......... .......... .......... 86% 2,21M 0s
   500K .......... .......... .......... .......... .......... 95% 2,16M 0s
   550K .......... .......... ........                        100% 63,3M=0,4s

2014-06-26 14:24:13 (1,33 MB/s) - ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’ saved [592293/592293]

!!! Fetched file: czmq-2.2.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      592293
!!! Expected: 304531
Refetching... File renamed to '/usr/portage/distfiles/czmq-2.2.0.tar.gz._checksum_failure_.v876l4'

>>> Downloading 'ftp://ftp.halifax.rwth-aachen.de/gentoo/distfiles/czmq-2.2.0.tar.gz'
pathconf: Permission denied
--2014-06-26 14:24:13--  ftp://ftp.halifax.rwth-aachen.de/gentoo/distfiles/czmq-2.2.0.tar.gz
           => ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’
Resolving ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)... 137.226.34.42
Connecting to ftp.halifax.rwth-aachen.de (ftp.halifax.rwth-aachen.de)|137.226.34.42|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /gentoo/distfiles ... done.
==> SIZE czmq-2.2.0.tar.gz ... 558239
==> PASV ... done.    ==> RETR czmq-2.2.0.tar.gz ... done.
Length: 558239 (545K) (unauthoritative)

     0K .......... .......... .......... .......... ..........  9% 3,13M 0s
    50K .......... .......... .......... .......... .......... 18% 1,85M 0s
   100K .......... .......... .......... .......... .......... 27% 3,15M 0s
   150K .......... .......... .......... .......... .......... 36% 6,03M 0s
   200K .......... .......... .......... .......... .......... 45% 6,02M 0s
   250K .......... .......... .......... .......... .......... 55% 6,29M 0s
   300K .......... .......... .......... .......... .......... 64% 6,29M 0s
   350K .......... .......... .......... .......... .......... 73% 6,51M 0s
   400K .......... .......... .......... .......... .......... 82% 6,14M 0s
   450K .......... .......... .......... .......... .......... 91%  158M 0s
   500K .......... .......... .......... .......... .....     100% 5,86M=0,1s

2014-06-26 14:24:13 (4,73 MB/s) - ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’ saved [558239]

!!! Fetched file: czmq-2.2.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      558239
!!! Expected: 304531
Refetching... File renamed to '/usr/portage/distfiles/czmq-2.2.0.tar.gz._checksum_failure_.qw16ih'

>>> Downloading 'http://ftp.uni-kl.de/pub/linux/gentoo/distfiles/czmq-2.2.0.tar.gz'
--2014-06-26 14:24:13--  http://ftp.uni-kl.de/pub/linux/gentoo/distfiles/czmq-2.2.0.tar.gz
Resolving ftp.uni-kl.de (ftp.uni-kl.de)... 2001:638:208:ef1b:0:ff:fe00:4, 131.246.123.4
Connecting to ftp.uni-kl.de (ftp.uni-kl.de)|2001:638:208:ef1b:0:ff:fe00:4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 558239 (545K) [text/plain]
Saving to: ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’

     0K .......... .......... .......... .......... ..........  9% 1,11M 0s
    50K .......... .......... .......... .......... .......... 18% 2,83M 0s
   100K .......... .......... .......... .......... .......... 27% 5,60M 0s
   150K .......... .......... .......... .......... .......... 36% 5,10M 0s
   200K .......... .......... .......... .......... .......... 45% 3,14M 0s
   250K .......... .......... .......... .......... .......... 55% 23,1M 0s
   300K .......... .......... .......... .......... .......... 64% 5,36M 0s
   350K .......... .......... .......... .......... .......... 73% 5,78M 0s
   400K .......... .......... .......... .......... .......... 82% 5,74M 0s
   450K .......... .......... .......... .......... .......... 91% 6,01M 0s
   500K .......... .......... .......... .......... .....     100% 48,2M=0,1s

2014-06-26 14:24:14 (4,02 MB/s) - ‘/usr/portage/distfiles/czmq-2.2.0.tar.gz’ saved [558239/558239]

!!! Fetched file: czmq-2.2.0.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      558239
!!! Expected: 304531
Refetching... File renamed to '/usr/portage/distfiles/czmq-2.2.0.tar.gz._checksum_failure_.qw16ih'

!!! Couldn't download 'czmq-2.2.0.tar.gz'. Aborting.


To fix that I had to do the following steps:

1. # rm /usr/portage/distfiles/cz*

2. # wget http://download.zeromq.org/czmq-2.2.0.tar.gz
--2014-06-26 14:14:38--  http://download.zeromq.org/czmq-2.2.0.tar.gz
Resolving download.zeromq.org (download.zeromq.org)... 95.142.169.98
Connecting to download.zeromq.org (download.zeromq.org)|95.142.169.98|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 592293 (578K) [application/x-gzip]
Saving to: ‘czmq-2.2.0.tar.gz’

100%[==============================================================================>] 592.293     1,25MB/s   in 0,5s

2014-06-26 14:14:39 (1,25 MB/s) - ‘czmq-2.2.0.tar.gz’ saved [592293/592293]

3. ebuild --force /usr/portage/net-libs/czmq/czmq-2.2.0-r1.ebuild manifest


So I cannot close this as verified at the moment...
Comment 5 Justin Lecher (RETIRED) gentoo-dev 2014-06-26 14:03:00 UTC
+  26 Jun 2014; Justin Lecher <jlec@gentoo.org> Manifest:
+  Fix checksums, #513398
+