Upgrade libcurl, libcurl-devel and curl package in CentOS 6

RESOLVED INCOMPLETE

Status

P1
normal
RESOLVED INCOMPLETE
3 years ago
3 years ago

People

(Reporter: wcosta, Assigned: dustin)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

3 years ago
CentOS 6 libcurl doesn't support keepalive. See Bug 1177190 for details.
I added {curl,libcurl,libcurl-devel}-7.43.0-1.0.cf.rhel6.{i686,x86_64}.rpm to the appropriate http://mockbuild-repos.pub.build.mozilla.org/releng/public/CentOS/6/{i686,x86_64}/, updated repos, and re-sync'd.

This will need a mozharness change to actually install the packages, but I think that can stay in bug 1177190.
Assignee: nobody → dustin
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
Reverted:

[root@relengwebadm.private.scl3 x86_64]# rm *curl*7.43*
rm: remove regular file `curl-7.43.0-1.0.cf.rhel6.x86_64.rpm'? y
rm: remove regular file `libcurl-7.43.0-1.0.cf.rhel6.x86_64.rpm'? y
rm: remove regular file `libcurl-devel-7.43.0-1.0.cf.rhel6.x86_64.rpm'? y
[root@relengwebadm.private.scl3 x86_64]# cd ../i386/
[root@relengwebadm.private.scl3 i386]# rm *curl*7.43*
rm: remove regular file `curl-7.43.0-1.0.cf.rhel6.i686.rpm'? y
rm: remove regular file `libcurl-7.43.0-1.0.cf.rhel6.i686.rpm'? y
rm: remove regular file `libcurl-devel-7.43.0-1.0.cf.rhel6.i686.rpm'? y
[root@relengwebadm.private.scl3 i386]# createrepo --update .

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@relengwebadm.private.scl3 i386]# cd ../x86_64/
[root@relengwebadm.private.scl3 x86_64]# createrepo --update .

Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@relengwebadm.private.scl3 x86_64]# cd /data/releng/src/mockbuild-repos/
[root@relengwebadm.private.scl3 mockbuild-repos]# ./update 
Synchronizing to S3 -- this is pretty slow
INFO: Compiling list of local files...

(still in progress)
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
due to

14:42:35 INFO - # ['/usr/bin/yum', '--installroot', '/builds/mock_mozilla/mozilla-centos6-x86_64/root/', 'install', 'bash', 'bzip2', 'coreutils', 'cpio', 'diffutils', 'fedora-release', 'findutils', 'gawk', 'gmp', 'libstdc++', 'ppl', 'cpp', 'gcc', 'gcc-c++', 'grep', 'gzip', 'info', 'make', 'patch', 'redhat-rpm-config', 'rpm-build', 'sed', 'shadow-utils', 'tar', 'unzip', 'util-linux', 'which', 'xz']
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libssh2(x86-64) >= 1.6.0
14:42:35 INFO - Available: libssh2-1.2.2-7.el6_1.1.x86_64 (centos6)
14:42:35 INFO - libssh2(x86-64) = 1.2.2-7.el6_1.1
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: c-ares(x86-64) >= 1.10.0
14:42:35 INFO - Installing: c-ares-1.7.0-5.el6.x86_64 (centos6)
14:42:35 INFO - c-ares(x86-64) = 1.7.0-5.el6
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libssh2(x86-64) >= 1.6.0
14:42:35 INFO - Installing: libssh2-1.2.2-7.el6_1.1.x86_64 (centos6)
14:42:35 INFO - libssh2(x86-64) = 1.2.2-7.el6_1.1
14:42:35 INFO - Error: Package: curl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libmetalink.so.3()(64bit)
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libcrypto.so.10(OPENSSL_1.0.1)(64bit)
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
14:42:35 INFO - Error: Package: curl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libcrypto.so.10(libcrypto.so.10)(64bit)
14:42:35 INFO - You could try using --skip-broken to work around the problem
14:42:35 INFO - You could try running: rpm -Va --nofiles --nodigest
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: c-ares(x86-64) >= 1.10.0
14:42:35 INFO - Available: c-ares-1.7.0-5.el6.x86_64 (centos6)
14:42:35 INFO - c-ares(x86-64) = 1.7.0-5.el6
14:42:35 INFO - Error: Package: libcurl-7.43.0-1.0.cf.rhel6.x86_64 (releng-centos6-x86_64)
14:42:35 INFO - Requires: libssl.so.10(libssl.so.10)(64bit) 

So we should at a minimum put this in a new custom repo, rather than in the releng repo, and include the deps (which hopefully stop at libssl) in that repo too.  Then only include that repo where it's needed.
We tried rebuilding the srpm for 7.29 (from CentOS 7) using the rpmbuilder1 host and the puppetagain mock profiles.  No love.

11:16:38 INFO - # ['/usr/bin/yum', '--installroot', '/builds/mock_mozilla/mozilla-centos6-x86_64/root/', 'install', 'bash', 'bzip2', 'coreutils', 'cpio', 'diffutils', 'fedora-release', 'findutils', 'gawk', 'gmp', 'libstdc++', 'ppl', 'cpp', 'gcc', 'gcc-c++', 'grep', 'gzip', 'info', 'make', 'patch', 'redhat-rpm-config', 'rpm-build', 'sed', 'shadow-utils', 'tar', 'unzip', 'util-linux', 'which', 'xz']
11:16:38 INFO - Error: Package: libcurl-7.29.0-19.el6.x86_64 (releng-centos6-x86_64)
11:16:38 INFO - Requires: libssl3.so(NSS_3.14)(64bit)
11:16:38 INFO - You could try using --skip-broken to work around the problem
11:16:38 INFO - You could try running: rpm -Va --nofiles --nodigest
11:16:38 INFO - Error: Package: libcurl-7.29.0-19.el6.x86_64 (releng-centos6-x86_64)
11:16:38 INFO - Requires: libssh2(x86-64) >= 1.4.2
11:16:38 INFO - Available: libssh2-1.2.2-7.el6_1.1.x86_64 (centos6)
11:16:38 INFO - libssh2(x86-64) = 1.2.2-7.el6_1.1
11:16:38 INFO - Error: Package: libcurl-7.29.0-19.el6.x86_64 (releng-centos6-x86_64)
11:16:38 INFO - Requires: libssh2(x86-64) >= 1.4.2
11:16:38 INFO - Installing: libssh2-1.2.2-7.el6_1.1.x86_64 (centos6)
11:16:38 INFO - libssh2(x86-64) = 1.2.2-7.el6_1.1
11:16:39 ERROR - Return code: 30 

Which doesn't make sense - that version of libssh is in the CentOS 6.2 repositories, not 6.5.

dmitchell@releng-puppet2 ~ $ locate libssh2-1.2.2-7.el6_1.1.x86_64
/data/repos/yum/mirrors/centos/6/2012-03-07/os/x86_64/libssh2-1.2.2-7.el6_1.1.x86_64.rpm
/data/repos/yum/mirrors/centos/6/2012-03-07/os/x86_64-for-ks/Packages/libssh2-1.2.2-7.el6_1.1.x86_64.rpm

Oh, right, we're still rocking 6.2 in mock.

Anyway, mock has one foot in the grave, and trying to maintain a CentOS 6.2 installation properly at this point is just stupid, so wcosta's going to install these RPMs with absolute URLs from somewhere in S3, and we'll leave them out of any repositories that mock has access to.

Wander, can you link to how you're doing that, just for posterity?
Status: REOPENED → RESOLVED
Last Resolved: 3 years ago3 years ago
Flags: needinfo?(wcosta)
Resolution: --- → INCOMPLETE
This was rolled back immediately when Ryan alerted us to the problem, btw.
(Reporter)

Comment 6

3 years ago
(In reply to Dustin J. Mitchell [:dustin] from comment #4)

[snip]

> 
> Wander, can you link to how you're doing that, just for posterity?

https://github.com/walac/gecko-dev/blob/bugz/1177190/testing/docker/b2g-build/Dockerfile#L12-L18
Flags: needinfo?(wcosta)
You need to log in before you can comment on or make changes to this bug.