From owner-freebsd-ports@freebsd.org Fri Jul 28 11:13:41 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 969EADC39C2 for ; Fri, 28 Jul 2017 11:13:41 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 706D3815AB for ; Fri, 28 Jul 2017 11:13:41 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 6CC35DC39C1; Fri, 28 Jul 2017 11:13:41 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6C337DC39C0 for ; Fri, 28 Jul 2017 11:13:41 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: from mail-wm0-x233.google.com (mail-wm0-x233.google.com [IPv6:2a00:1450:400c:c09::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F2076815AA for ; Fri, 28 Jul 2017 11:13:40 +0000 (UTC) (envelope-from matt.xtaz@gmail.com) Received: by mail-wm0-x233.google.com with SMTP id m85so114726895wma.1 for ; Fri, 28 Jul 2017 04:13:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EhCQwoCZ1Oiuv/3beT7K2pDDkAqrQ3xOKdYEovSS+dY=; b=j/EeqapxsnlkaSHWl2Lxc/xXRLBvT3rfa3BLIS1RCqwlwYrWl6zmBIBWn5idXXcA+O 6xgwUgk+BS6ChIOE3OnOy6Eb36bE78ZFp+x52ISKCcQU76in3Nvn3rucm12kKTsK93kh MHH8eVqe+1mQWhnSH8d1pIFMn0ZLlxwNZseSWML53OEu8Cao1wEOnxxnki5YxT5ICqPK KVlFd0e3RXPVwntZTT5xVkSRwA49Qhe4CSapOe5iEm9t2C9lAUAfE4L50dqzuJfjeNae E7dHqgUe2nnSpWsCPjUJKh82xJxq/Ua8+U6XLUikg7axF/qxgin0qvSQszSK7PQcc7nA tp8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=EhCQwoCZ1Oiuv/3beT7K2pDDkAqrQ3xOKdYEovSS+dY=; b=rkg1J0C1JWwevDvlsFq5Xcsvr91ONAs9jtScigISH6QrafwuGqb7ZH3GXrwrHuppCc +vgui/WpLR8/7esUhuYpVMJ1OlE3MiraetO7XZZQUioX9aH9crsE5e/zA3eiALWatv2h Nli2rQSFaFAcPB2OE7j4McL6jeKtpUAQHa+z/u06JcvLdquZnZ95xIWm2MTzZSM5Regx 6mQofw3PdgILORd9Dacl7wPCTr/2XTPzJjBLpjLfxLzoQ6nEhtW5IBOFzDRaByG3PJ52 p7JWiSIi7ef+e2STmXPv7cPrb0ekTSPzjYRdebhzY6MQxFTXtc6DBYeQZkWWK173fZHF ZqBA== X-Gm-Message-State: AIVw111YpR5RuCrRehI2fA6SehbpznHEZ/OlhTFMGn18yEta4ukc1XOH wj3ygc946+iiB7/iOKw= X-Received: by 10.28.133.149 with SMTP id h143mr5210312wmd.129.1501240419162; Fri, 28 Jul 2017 04:13:39 -0700 (PDT) Received: from gmail.com (tao.xtaz.uk. [2001:8b0:fe33::10]) by smtp.gmail.com with ESMTPSA id l22sm18109352wmi.48.2017.07.28.04.13.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Jul 2017 04:13:38 -0700 (PDT) Date: Fri, 28 Jul 2017 12:13:36 +0100 From: Matt Smith To: Miroslav Lachman <000.fbsd@quip.cz> Cc: Matthias Fechner , ports@freebsd.org Subject: Re: Pkg does not upgrade if more than one repository is defined Message-ID: <20170728111336.GA55676@gmail.com> Mail-Followup-To: Matt Smith , Miroslav Lachman <000.fbsd@quip.cz>, Matthias Fechner , ports@freebsd.org References: <4bd07372cbebf842be96c9269ac7e274@fechner.net> <597B068B.3010106@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <597B068B.3010106@quip.cz> User-Agent: Mutt/1.8.3 (2017-05-23) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2017 11:13:41 -0000 On Jul 28 11:40, Miroslav Lachman wrote: >Matthias Fechner wrote on 2017/07/28 10:55: >>Dear all, >> >>I have a problem with pkg and I'm not sure if it is a bug in pkg or a >>configuration issue. >>I work on new version on ports which are in a separate poudriere >>repository (to be able to easily test it). >> >>I have now two configuration files in /usr/local/etc/pkg/repos, >>poudriere.conf: >>poudriere: { >> url: "https://pkg.fechner.net/packages/110amd64-default", >> mirror_type: "pkg+http", >> signature_type: "pubkey", >> pubkey: "/usr/local/etc/ssl/certs/pkg.cert", >> enabled: yes, >> priority: 1 >>} >> >>this is the standard repo which contains all stable packages. >>Now I have a new version (in this case for gitlab) at gitlab.conf: >>gitlab: { >> url: "https://pkg.fechner.net/packages/110amd64-gitlab", >> mirror_type: "pkg+http", >> signature_type: "pubkey", >> pubkey: "/usr/local/etc/ssl/certs/pkg.cert", >> enabled: yes, >> priority: 10 >>} >> >>The priority is higher and some package there have a higher version number. >> >>But if I execute now 'pkg upgrade' pkg does not upgrade packages which >>have a higher version from the gitlab repository, but stick to the >>poudriere repository. >> >>I also tried to do a 'pkg update -f; pkg upgrade' but it does not help. >> >>Is there something wrong with my configuration or is this a bug in pkg? > >If I understand you correctly, you have package A-1.0 installed from >repo "poudriere" and now you have package A-1.1 in repo "gitlab" and >you want to upgrade this package "A" to version 1.1. >Is it right? > >I think that crossrepo upgrade is not automatic if package is in both >repositories but it work if package is missing from previous repo and >it it intentional. >I have more repositories too (different PHP version, different python >versions but common utilities etc.) so packages are not >unintentionally upgraded / downgraded. > >But if you want to upgrade package A from different repo, you can >choose the repo: > >-r reponame, --repository reponame > Install packages from only the named repository, irrespective > of the configured ``active'' status from repo.conf. > >You can try > pkg install -r gitlab -f A > >or > pkg upgrade -r gitlab -f A > >where A is you package(s) name. > >Miroslav Lachman > This might also be related to the CONSERVATIVE_UPGRADE setting of pkg.conf. According to the man page: CONSERVATIVE_UPGRADE: boolean Ensure in multi repository mode that the priority is given as much as possible to the repository where a package was first installed from. Default: YES. -- Matt