Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etEiQ-0007SP-6X for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 06 Mar 2018 15:41:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1etEiO-0007z6-Il for pgsql-pkg-yum@arkaria.postgresql.org; Tue, 06 Mar 2018 15:41:20 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etEiO-0007yr-74 for pgsql-pkg-yum@lists.postgresql.org; Tue, 06 Mar 2018 15:41:20 +0000 Received: from mx.unixadm.org ([176.9.96.198]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1etEiK-0002JO-DD for pgsql-pkg-yum@lists.postgresql.org; Tue, 06 Mar 2018 15:41:19 +0000 Received: from pkueck.de-cix.local (46-31-127-234.guests.de-cix.net [46.31.127.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "phil", Issuer "Unixadm CA" (verified OK)) by mx.unixadm.org (Postfix) with ESMTPS id 0D33A26A23; Tue, 6 Mar 2018 16:41:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quarantine.de; s=itchy; t=1520350873; h=from:subject:date:message-id:to:mime-version:content-type:content-transfer-encoding:in-reply-to:references; bh=4jershprAKpiSc9AYxqtwgLblzwG0/7FHCh9J5TvkBw=; b=aQmuel6CUvOR59rto7mwXxE2XbmcRXqwoUmWqb+dhe4wjbYAljvstmKnMn4+DpqcIdhTsK zuz3oZTXydpXfBFCf3jJV6uxne5r1DCo6XLogohyuz4GKD5VGUkPGINRLPSs+7dT90VgfJ FwcsHK46kZbS+nHQrYnTtqRMi8ZmrXcQIpf44EHEzxJHrx5C2bWmVnIpmg/RR/Q+XH98B6 H8CmsKabIgSYFxTx48Dxxqlo7r36+jRG0TRIxWqG/KgRUvH3LISRXodee8IpuPgP+/eMH/ Na3q5VvBFBBdZSvqLEEim+mPV5MtJ9aWFev+VTvlWyWYKa1p2GnGbGEDWPLiEQ== Subject: Re: upload of rebuilt packages to the repository To: =?UTF-8?B?RGV2cmltIEfDvG5kw7x6?= , pgsql-pkg-yum@lists.postgresql.org References: <1520346786.5655.20.camel@gunduz.org> From: Philippe Kueck Message-ID: <1ddd3314-01a2-8c8d-e006-9af6a7fb547a@quarantine.de> Date: Tue, 6 Mar 2018 16:41:12 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1520346786.5655.20.camel@gunduz.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=quarantine.de; s=itchy; t=1520350873; h=from:subject:date:message-id:to:mime-version:content-type:content-transfer-encoding:in-reply-to:references; bh=4jershprAKpiSc9AYxqtwgLblzwG0/7FHCh9J5TvkBw=; b=PXBRfaWa6ApPNfsKUZH6yS5RHII4kET87OxJIhc+j9yr7VwZ9ChYwRKVlfsLe72je4j5so AyLh3kAatyBLQvdk/TUlV/o8LqokMfVE6YadUdmo93VS8Avv4zu354AXh5HGoMIPI712Nk DGvotgMKF6tUa8eLnfXC84jeED66z+yjfgYDFDVNBf5pxXif5aXgy5RqeSfxz4V6GKbi8c z23+pxqz2nEpyPd0Amvg3JXDHRm4UFpMwZYoe8h7KOs2LiGbeaIwy+9+Rl9R4dC4UF23HJ 8eMI5wedju+iOLlDJCnl1GdgPMbM63IMKfemu/8oW5LgrEpjhkveB3Pb8TnZng== ARC-Seal: i=1; s=itchy; d=quarantine.de; t=1520350873; a=rsa-sha256; cv=none; b=iL2RFU9GYAXph5Xfr7AhDCuYcvGTLHfipyt9Uo8rHdvet48FrOIepzmZ18kqHQlWBVWYQ5UIPiI1ppMu1gbwh/ucct/QQsSGwA4c7VA8hOU1dUW5QtxK1/Rn7BGXLxBHbuMNbE3uumHPLnvcCOhWGYCnqn/iMdNz26NCzN8gjjOIJ4j0Rw6qhoFIs/fL4ZZrv1sEYBOR/O8N5IGHy2C1mC7fmAupMQuLNEvOmPmXYlp0VgPz6HFzk/RsmNF0kpJAxD9C0FjD8gEDAYjbL+q0SA7H1w0dsYiO0yXSiPLyqLAkMsgiIZ3Rr2pIdAI2NJXW4zOurBzsuqw2IgNhaQizTg== ARC-Authentication-Results: i=1; auth=pass smtp.auth=phil smtp.mailfrom=a4obmfyynycqcgqmaylaqxi6dzew6gismu@quarantine.de List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 06.03.2018 15:33, Devrim Gündüz wrote: > Err, we *never* do so. Can you please give me an example? I didn't check the previous package of amcheck_next10-1.3-1.rhel7.x86_64 of before march 1st, sorry for that. But a while ago I filed a bug report for yum and used one of your packages (libgeotiff) as example: https://bugzilla.redhat.com/show_bug.cgi?id=1527417 > When we add/update a new package, the metadata is updated, so if the cached > version (on OS side) does not match, you get this message. That is the only > reason for this issue (and it is not an issue, IMHO) If we replace an existing package we get this message. Not by adding a newer version of it. Below is a little poc. I'm using dnf (Fedora) but its behaviour doesn't differ from yum in this case. Kind regards, Philippe --%snip%-- # prepare a dummy repo $ mkdir -p /tmp/myrepo # add this dummy repo to yum/dnf $ cat > /etc/yum.repos.d/test.repo < testrpm.spec < dummyfile %install install -D -p -m644 dummyfile %{buildroot}/%{_sysconfdir}/dummyfile %files %{_sysconfdir}/dummyfile EOF # build it $ rpmbuild -bb testrpm.spec # and add it to the dummy repository $ mv $(rpm -E %{_rpmdir}/%{_arch})/testrpm*.x86_64.rpm /tmp/myrepo/ # create the dummy repo $ createrepo /tmp/myrepo/ # build cache $ dnf --disablerepo='*' --enablerepo=test makecache # rebuild dummy package $ rpmbuild -bb testrpm.spec # replace dummy package $ mv -f $(rpm -E %{_rpmdir}/%{_arch})/testrpm*.x86_64.rpm /tmp/myrepo/ # and recreate/update the dummy repo $ createrepo /tmp/myrepo/ # try to install the dummy package $ dnf --disablerepo='*' --enablerepo=test -y install testrpm Last metadata expiration check: 0:01:17 ago on Tue 06 Mar 2018 03:53:01 PM CET. Dependencies resolved. ============================================================================================ Package Arch Version Repository Size ============================================================================================ Installing: testrpm x86_64 0.1-1.fc27 test 6.2 k Transaction Summary ============================================================================================ Install 1 Package Total download size: 6.2 k Installed size: 11 Downloading Packages: Package "testrpm-0.1-1.fc27.x86_64" from local repository "test" has incorrect checksum Error: Some packages from local repository have incorrect checksum # rebuild cache (which has not expired yet) $ dnf --disablerepo='*' --enablerepo=test makecache Last metadata expiration check: 0:02:18 ago on Tue 06 Mar 2018 03:53:01 PM CET. Metadata cache created. # try again $ dnf --disablerepo='*' --enablerepo=test -y install testrpm Last metadata expiration check: 0:02:21 ago on Tue 06 Mar 2018 03:53:01 PM CET. Dependencies resolved. ======================================================================================================= Package Arch Version Repository Size ======================================================================================================= Installing: testrpm x86_64 0.1-1.fc27 test 6.2 k Transaction Summary ======================================================================================================= Install 1 Package Total download size: 6.2 k Installed size: 11 Downloading Packages: Package "testrpm-0.1-1.fc27.x86_64" from local repository "test" has incorrect checksum Error: Some packages from local repository have incorrect checksum # this fixes it $ dnf --disablerepo='*' --enablerepo=test clean metadata # so let's start over with a new release # build and add it $ sed -i -r -e 's/(Release: )([0-9])/echo \1$((\2+1))/e' testrpm.spec $ rpmbuild -bb testrpm.spec $ mv -f $(rpm -E %{_rpmdir}/%{_arch})/testrpm*.x86_64.rpm /tmp/myrepo/ $ createrepo /tmp/myrepo/ # it doesn't install the latest release because of non-expired metadata # but at least it doesn't show checksum errors $ yes n | dnf --disablerepo='*' --enablerepo=test install testrpm Last metadata expiration check: 0:03:31 ago on Tue 06 Mar 2018 04:07:07 PM CET. Dependencies resolved. ======================================================================================================= Package Arch Version Repository Size ======================================================================================================= Installing: testrpm x86_64 0.1-1.fc27 test 6.2 k Transaction Summary ======================================================================================================= Install 1 Package Total size: 6.2 k Installed size: 11 Is this ok [y/N]: Operation aborted. --%snip%--