Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 674822

Summary: app-backup/attic-0.16-r1 : attic/crypto.c:838:18: error: field ctx has incomplete type
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED FIXED    
Severity: normal CC: treecleaner, via-gentoo
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/jborg/attic/pull/399
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 869101    
Bug Blocks: 592438    
Attachments: emerge-info.txt
app-backup:attic-0.16-r1:20190107-202734.log
emerge-history.txt
environment
etc.portage.tbz2
temp.tbz2
Attic compatibility patch for OpenSSL 1.1 (to be put in FILESDIR)
Diff between attic-0.16-r1.ebuild and the one using the patch

Description Toralf Förster gentoo-dev 2019-01-07 20:54:43 UTC
creating /var/tmp/portage/app-backup/attic-0.16-r1/work/attic-0.16-python3_6/temp.linux-x86_64-3.6/attic
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fPIC -I/usr/include -I/usr/include/python3.6m -c attic/crypto.c -o /var/tmp/portage/app-backup/attic-0.16-r1/work/attic-0.16-python3_6/temp.linux-x86_64-3.6/attic/crypto.o
attic/crypto.c:838:18: error: field ‘ctx’ has incomplete type
   EVP_CIPHER_CTX ctx;
                  ^~~
/usr/lib64/python3.6/site-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /var/tmp/portage/app-backup/attic-0.16-r1/work/attic-0.16/attic/crypto.pyx

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_20190107-031113

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems)
  [3]   ruby26 (with Rubygems) *




emerge -qpvO app-backup/attic
[ebuild  N    ] app-backup/attic-0.16-r1  USE="-libressl" PYTHON_TARGETS="python3_6 -python3_4 -python3_5"
Comment 1 Toralf Förster gentoo-dev 2019-01-07 20:54:46 UTC
Created attachment 560262 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-01-07 20:54:49 UTC
Created attachment 560264 [details]
app-backup:attic-0.16-r1:20190107-202734.log
Comment 3 Toralf Förster gentoo-dev 2019-01-07 20:54:51 UTC
Created attachment 560266 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2019-01-07 20:54:54 UTC
Created attachment 560268 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2019-01-07 20:54:57 UTC
Created attachment 560270 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-01-07 20:55:00 UTC
Created attachment 560272 [details]
temp.tbz2
Comment 7 José María Fernández González 2019-01-18 23:15:51 UTC
Created attachment 562096 [details, diff]
Attic compatibility patch for OpenSSL 1.1 (to be put in FILESDIR)

I have just developed a patch for attic, so it is compatible with OpenSSL 1.1 . But, as I do not encrypt the backups, I cannot test whether it works as it is expected.
Comment 8 José María Fernández González 2019-01-18 23:19:36 UTC
Created attachment 562098 [details, diff]
Diff between attic-0.16-r1.ebuild and the one using the patch
Comment 9 Andreas Sturmlechner gentoo-dev 2019-04-28 21:00:41 UTC
Thanks for also filing this upstream, alas with no response so far.
Comment 10 Anthony Basile gentoo-dev 2019-05-26 23:21:46 UTC
(In reply to Andreas Sturmlechner from comment #9)
> Thanks for also filing this upstream, alas with no response so far.

I'm a bit worried about including this patch without testing.
Comment 11 Pavel Goran 2020-07-10 11:44:37 UTC
I was able to build and run attic with this patch. I have an old attic repository, and I was able to access it (be mounting with SSHFS) just fine. I used "list", "info", and even "create".

So I can affirm that basic operations do work; although I don't know if the operations that I tested actually involve the patched piece of code.
Comment 12 Agostino Sarubbo gentoo-dev 2021-01-17 21:06:26 UTC
Dear treecleaner@:

I'm still able to reproduce this issue right now.

Since it has not been fixed for a long time, I'd suggest to evaluate if it is the case to remove this package from the tree. Thanks
Comment 13 Pavel Goran 2021-01-18 03:49:39 UTC
How about applying a patch that fixes the error, instead?
Comment 14 Larry the Git Cow gentoo-dev 2022-10-07 20:10:23 UTC
The bug has been closed via the following commit(s):

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

commit 32fe1fba3a9fe5c08fadfad0a71b12822ffa309e
Author:     Arthur Zamarin <arthurzam@gentoo.org>
AuthorDate: 2022-10-07 20:05:42 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-10-07 20:10:11 +0000

    app-backup/attic: treeclean
    
    Closes: https://bugs.gentoo.org/869101
    Closes: https://bugs.gentoo.org/674822
    Closes: https://bugs.gentoo.org/830291
    Closes: https://bugs.gentoo.org/832240
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 app-backup/attic/Manifest             |  1 -
 app-backup/attic/attic-0.16-r1.ebuild | 38 -----------------------------------
 app-backup/attic/attic-9999.ebuild    | 38 -----------------------------------
 app-backup/attic/metadata.xml         | 11 ----------
 profiles/package.mask                 |  7 -------
 5 files changed, 95 deletions(-)