X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lists.alpinelinux.org (Postfix) with ESMTP id D73CDF85531 for ; Mon, 1 Jul 2019 16:46:11 +0000 (UTC) Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x61GXbfc080304 for ; Mon, 1 Jul 2019 12:46:10 -0400 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0b-001b2d01.pphosted.com with ESMTP id 2tfmevnetn-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 01 Jul 2019 12:46:10 -0400 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 1 Jul 2019 17:46:09 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Mon, 1 Jul 2019 17:46:07 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x61Gk63g36372954 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 1 Jul 2019 16:46:06 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7D0E352052 for ; Mon, 1 Jul 2019 16:46:06 +0000 (GMT) Received: from oc7167334104.ibm.com (unknown [9.152.99.139]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 570DD5204F for ; Mon, 1 Jul 2019 16:46:06 +0000 (GMT) Subject: Re: [alpine-devel] Missing "readline" in dependencies make it impossible to update readline To: alpine-devel@lists.alpinelinux.org References: <1D9ECE54DC082549B6CDE5C6261F0C3C01797ACDD5@IL-EX10.ad.checkpoint.com> <8A089DD5-660B-4916-B311-392FF1FC973F@shiz.me> <1D9ECE54DC082549B6CDE5C6261F0C3C01797ACE7A@IL-EX10.ad.checkpoint.com> From: Tuan Hoang Date: Mon, 1 Jul 2019 18:46:06 +0200 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <1D9ECE54DC082549B6CDE5C6261F0C3C01797ACE7A@IL-EX10.ad.checkpoint.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 19070116-0016-0000-0000-0000028E322F X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19070116-0017-0000-0000-000032EBC03F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-07-01_10:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907010200 For my custom built packages, I usually get APKBUILD from respective branch (master, 3.10, etc.) then bump pkgrel, keep the same pkgver in APKBUILD, then rebuild the package. This will give my package higher priority when # apk add readline. On 6/30/19 1:52 PM, Roi Greenberg wrote: > I may found something else. > > In the official APKINDEX(both 3.10 and 3.9), gdbm has no dependency relatet to readline: > > C:Q1n33FLkqSmn0C26HsC3OBsvPAIp8= > P:gdbm > V:1.13-r1 > A:x86_64 > S:75976 > I:225280 > T:GNU dbm is a set of database routines that use extensible hashing > U:https://www.gnu.org/software/gdbm/ > L:GPL > o:gdbm > m:Natanael Copa > t:1556882076 > c:730cdcef6901750f4029d4c3b8639ce02ee3ead1 > D:so:libc.musl-x86_64.so.1 > p:so:libgdbm.so.4=4.0.0 so:libgdbm_compat.so.4=4.0.0 cmd:gdbm_dump cmd:gdbm_load cmd:gdbmtool > > But in my APKINDEX, with packages I build myself(without changing anything of course), I see: > > C:Q17J8ZTg2EJ9Iz2GJd1avO3i/QtHs= > P:gdbm > V:1.13-r1 > A:x86_64 > S:79635 > I:225280 > T:GNU dbm is a set of database routines that use extensible hashing > U:https://www.gnu.org/software/gdbm/ > L:GPL > o:gdbm > m:Natanael Copa > t:1558890510 > c: > D:so:libc.musl-x86_64.so.1 so:libreadline.so.7 > p:so:libgdbm.so.4=4.0.0 so:libgdbm_compat.so.4=4.0.0 cmd:gdbm_dump cmd:gdbm_load cmd:gdbmtool > > > -----Original Message----- > From: Roi Greenberg > Sent: Sunday, June 30, 2019 15:12 > To: 'Shiz' > Cc: alpine-devel@lists.alpinelinux.org > Subject: RE: [alpine-devel] Missing "readline" in dependencies make it impossible to update readline > > Thanks for the quick answer. > > I installed it manually since I did a test on clean alpine container that use private repository, and I add the new readline apks manually. > > The behavior is identical when I use only local repository (that my actual case. I'm building the repository from scratch using container with pre-installed packages) > > Also, just for case, I did a test using 2 repositories, the one that used to build the container (with all the "old" packages) and one that contains the new readline and the result is the same: > > bash-4.4# apk list | grep readline > readline-dev-7.0.003-r1 x86_64 {readline} (GPL) [installed] > readline-dev-8.0.0-r0 x86_64 {readline} (GPL) [upgradable from: readline-dev-7.0.003-r1] > readline-dev-7.0.003-r1 x86_64 {readline} (GPL) > readline-7.0.003-r1 x86_64 {readline} (GPL) [installed] > readline-8.0.0-r0 x86_64 {readline} (GPL) [upgradable from: readline-7.0.003-r1] > readline-7.0.003-r1 x86_64 {readline} (GPL) > libhistory-7.0.003-r1 x86_64 {readline} (GPL) [installed] > libhistory-8.0.0-r0 x86_64 {readline} (GPL) [upgradable from: libhistory-7.0.003-r1] > libhistory-7.0.003-r1 x86_64 {readline} (GPL) > readline-doc-8.0.0-r0 x86_64 {readline} (GPL) > readline-doc-7.0.003-r1 x86_64 {readline} (GPL) > bash-4.4# apk add readline -l > ERROR: unsatisfiable constraints: > Huh? Error reporter did not find the broken constraints. > bash-4.4# apk add readline-dev -l > ERROR: unsatisfiable constraints: > readline-7.0.003-r1: > breaks: readline-dev-8.0.0-r0[readline=8.0.0-r0] > satisfies: world[readline] util-linux-2.33-r0[so:libreadline.so.7] bash-4.4.19-r1[so:libreadline.so.7] python3-3.6.8-r2[so:libreadline.so.7] sqlite-3.26.0-r3[so:libreadline.so.7] > gdbm-1.13-r1[so:libreadline.so.7] python2-2.7.16-r1[so:libreadline.so.7] ruby-libs-2.5.5-r0[so:libreadline.so.7] gawk-4.2.1-r0[so:libreadline.so.7] > libhistory-8.0.0-r0: > breaks: world[libhistory> satisfies: readline-dev-8.0.0-r0[libhistory=8.0.0-r0] > bash-4.4# apk add readline readline-dev libhistory -l > ERROR: unsatisfiable constraints: > readline-7.0.003-r1: > breaks: readline-dev-8.0.0-r0[readline=8.0.0-r0] > satisfies: world[readline] util-linux-2.33-r0[so:libreadline.so.7] bash-4.4.19-r1[so:libreadline.so.7] python3-3.6.8-r2[so:libreadline.so.7] sqlite-3.26.0-r3[so:libreadline.so.7] > gdbm-1.13-r1[so:libreadline.so.7] python2-2.7.16-r1[so:libreadline.so.7] ruby-libs-2.5.5-r0[so:libreadline.so.7] gawk-4.2.1-r0[so:libreadline.so.7] > bash-4.4# > > > -----Original Message----- > From: Shiz [mailto:hi@shiz.me] > Sent: Sunday, June 30, 2019 14:44 > To: Roi Greenberg > Cc: alpine-devel@lists.alpinelinux.org > Subject: Re: [alpine-devel] Missing "readline" in dependencies make it impossible to update readline > > Hi, > >> I got the error: >> >> ERROR: unsatisfiable constraints: >> readline-7.0.003-r1: >> breaks: world[readline> > It seems you installed some readline apk manually, which then > conflicts with the system deadline. If it provides the same > libraries as the system deadline, simply try installing it first > before anything else that depends on readline. > > Alternatively, create a local repository with your custom .apk > and an index (see `abuild index`) and add it to /etc/apk/repositories, > so that `apk` can do a full proper dependency scan upon installation, > taking your own packages into account. This is the recommended > development flow. > >> When I tried to investigate the dependencies area, I saw that >> many packages have libreadline.so in the APKINDEX dependencies, >> but nothing about it in their APKBUILD file. >> >> >> I think that may cause the issue. > > This is fine. `abuild` does an automated dependency scan at the > end of the build process where it figures out these kind of > dependencies. That they are not listed explicitly is expected. > > - Shiz > > Email secured by Check Point > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---