Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664254 - dev-libs/openssl-1.0.2p[bindist]: failed patch: openssl-1.0.2o-hobble-ecc.patch
Summary: dev-libs/openssl-1.0.2p[bindist]: failed patch: openssl-1.0.2o-hobble-ecc.patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-22 13:01 UTC by huyh
Modified: 2018-08-31 20:45 UTC (History)
0 users

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


Attachments
build.log (file_664254.txt,11.34 KB, text/plain)
2018-08-22 13:01 UTC, huyh
Details
corrected patch (openssl-1.0.2o-hobble-ecc.patch,10.73 KB, patch)
2018-08-31 18:35 UTC, Oleh
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description huyh 2018-08-22 13:01:50 UTC
Created attachment 544458 [details]
build.log

got the following error:

 * Applying openssl-1.0.2o-hobble-ecc.patch ...
1 out of 3 hunks FAILED -- saving rejects to file crypto/ecdsa/ecdsatest [ !! ]
 * ERROR: dev-libs/openssl-1.0.2p::gentoo failed (prepare phase):
 *   patch -p1  failed with /tmp/portage/dev-libs/openssl-1.0.2p/files/openssl-1.0.2o-hobble-ecc.patch
Comment 1 Oleh 2018-08-31 16:36:45 UTC
w520 / # cat /var/tmp/portage/dev-libs/openssl-1.0.2p/work/openssl-1.0.2p/crypto/ecdsa/ecdsatest.c.rej 
--- crypto/ecdsa/ecdsatest.c.fips-ec    2015-03-19 14:19:00.000000000 +0100
+++ crypto/ecdsa/ecdsatest.c    2015-04-22 19:00:19.722884536 +0200
@@ -138,11 +138,14 @@ int restore_rand(void)
 }
 
 static int fbytes_counter = 0;
-static const char *numbers[8] = {
+static const char *numbers[10] = {
+    "651056770906015076056810763456358567190100156695615665659",
     "651056770906015076056810763456358567190100156695615665659",
     "6140507067065001063065065565667405560006161556565665656654",
     "8763001015071075675010661307616710783570106710677817767166"
         "71676178726717",
+    "8763001015071075675010661307616710783570106710677817767166"
+        "71676178726717",
     "7000000175690566466555057817571571075705015757757057795755"
         "55657156756655",
     "1275552191113212300012030439187146164646146646466749494799",
w520 / #
Comment 2 Oleh 2018-08-31 18:35:52 UTC
Created attachment 545660 [details, diff]
corrected patch
Comment 3 Larry the Git Cow gentoo-dev 2018-08-31 20:45:44 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a759287ff6a18f8e07dcc1b571d1369dbace720c

commit a759287ff6a18f8e07dcc1b571d1369dbace720c
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2018-08-31 20:44:18 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2018-08-31 20:45:08 +0000

    dev-libs/openssl: fix USE=bindist
    
    Update hobble ECC patch against openssl-1.0.2p [Link 1].
    
    Link 1: https://github.com/openssl/openssl/commit/949ff36623eafc3523a9f91784992965018ffb05
    Closes: https://bugs.gentoo.org/664254
    Package-Manager: Portage-2.3.48, Repoman-2.3.10

 .../openssl/files/openssl-1.0.2p-hobble-ecc.patch  | 283 +++++++++++++++++++++
 dev-libs/openssl/openssl-1.0.2p.ebuild             |   2 +-
 2 files changed, 284 insertions(+), 1 deletion(-)