Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] libgcrypt-1.5.4-r1: slot issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Wed May 12, 2021 10:22 pm    Post subject: [solved] libgcrypt-1.5.4-r1: slot issue Reply with quote

Im trying to modernize this old libgcrypt ebuild, because GoldSrc games, like Counter-Strike 1.6 still depend on this deprecated libgcrypt version unfortunately. There seems to be a SLOT issue, and i dont fully understand what the error is, and why this cant install along side another libgcrypt version.

ebuild:
Code:

# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=7
AUTOTOOLS_AUTORECONF=1

inherit autotools multilib-minimal

DESCRIPTION="General purpose crypto library based on the code used in GnuPG"
HOMEPAGE="http://www.gnupg.org/"
SRC_URI="mirror://gnupg/${PN}/${P}.tar.bz2"

LICENSE="LGPL-2.1 MIT"
SLOT="0/11" # subslot = soname major version
KEYWORDS="amd64 x86"
IUSE="static-libs"

RDEPEND=">=dev-libs/libgpg-error-1.12[${MULTILIB_USEDEP}]
   !dev-libs/libgcrypt:11
   abi_x86_32? (
      !<=app-emulation/emul-linux-x86-baselibs-20131008-r19
      !app-emulation/emul-linux-x86-baselibs[-abi_x86_32]
   )"
DEPEND="${RDEPEND}"

DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )

PATCHES=(
   "${FILESDIR}"/${PN}-1.5.0-uscore.patch
   "${FILESDIR}"/${PN}-multilib-syspath.patch
)

MULTILIB_CHOST_TOOLS=(
   /usr/bin/libgcrypt-config
)

multilib_src_configure() {
   local myeconfargs=(
      --disable-padlock-support # bug 201917
      --disable-dependency-tracking
      --enable-noexecstack
      --disable-O-flag-munging
      $(use_enable static-libs static)

      # disabled due to various applications requiring privileges
      # after libgcrypt drops them (bug #468616)
      --without-capabilities

      # http://trac.videolan.org/vlc/ticket/620
      # causes bus-errors on sparc64-solaris
      $([[ ${CHOST} == *86*-darwin* ]] && echo "--disable-asm")
      $([[ ${CHOST} == sparcv9-*-solaris* ]] && echo "--disable-asm")
   )
   multilib_src_configure
}


LOG:
Code:

@gentoo:~$ doas emerge -av --autounmask "=dev-libs/libgcrypt-1.5.4-r1"                                                                                                                         
doas (lokiju420_-@gentoo) password:                                                                                                                                                           
doas: Authentication failed
@gentoo:~$ doas emerge -av --autounmask "=dev-libs/libgcrypt-1.5.4-r1"                                                                                                                         
doas (lokiju420_-@gentoo) password:                                                                                                                                                           

 * IMPORTANT: 9 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] dev-libs/libgcrypt-1.5.4-r1:0/11::localrepo [9999:0/20::localrepo] USE="-static-libs (-asm%*) (-doc%) (-o-flag-munging%)" ABI_X86="(64) -32* (-x32)" CPU_FLAGS_X86="(-aes%*) (-avx%*) (-avx2%*) (-padlock%) (-sha%) (-sse4_1%*)" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

dev-libs/libgcrypt:0

  (dev-libs/libgcrypt-1.5.4-r1:0/11::localrepo, ebuild scheduled for merge) USE="-static-libs" ABI_X86="(64) -32 (-x32)" pulled in by
    =dev-libs/libgcrypt-1.5.4-r1 (Argument)

  (dev-libs/libgcrypt-9999:0/20::localrepo, installed) USE="asm -doc -o-flag-munging -static-libs" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="aes avx avx2 sse4_1 -padlock -sha" pulled in by
    >=dev-libs/libgcrypt-1.5.3:0/20=[abi_x86_64(-)] required by (dev-libs/libxslt-1.1.34-r1:0/0::gentoo, installed) USE="crypt -debug -examples -static-libs" ABI_X86="(64) -32 (-x32)"
                              ^^^^^^                                                                                                                                                                                                                                                                                                                           
    >=dev-libs/libgcrypt-1.5.3:0=[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_s390_32(-)?,abi_s390_64(-)?] required by (net-nds/openldap-2.4.58:0/0::gentoo, installed) USE="berkdb crypt gnutls minimal ssl syslog tcpd -cxx -debug -experimental -iodbc -ipv6 -kerberos -kinit -odbc -overlays -pbkdf2 -perl -samba -sasl (-selinux) -sha2 -smbkrb5passwd -static-libs -test" ABI_X86="32 (64) (-x32)"
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
    >=dev-libs/libgcrypt-1.9.1 required by (app-crypt/gnupg-9999:0/0::localrepo, installed) USE="bzip2 readline ssl -doc -ldap -nls (-selinux) -smartcard -sqlite -tofu -tools -usb -user-socket -wks-server" ABI_X86="(64)"
    ^^                   ^^^^^                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 
    (and 2 more with the same problems)

NOTE: Use the '--verbose-conflicts' option to display parents omitted above

It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.

@gentoo:~$
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Wed May 12, 2021 10:31 pm    Post subject: Reply with quote

Whoops, just came across this.

https://packages.gentoo.org/packages/dev-libs/libgcrypt-compat
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum