On 6/25/20 10:08 AM, Pavel Raiskup wrote:
i'll change it in my spec in any case.
Good, just let me know it is OK.
with this spec
https://pastebin.com/raw/UG1ZGZGG
which atm includes,
%define _disable_source_fetch 0
local rpmbuild is OK,
rpmbuild --verbose -ba nginx.spec tree -L 2 ../*RPMS ../RPMS └── x86_64 ├── nginx-1.19.0.fc32.x86_64.rpm ├── nginx-debuginfo-1.19.0.fc32.x86_64.rpm └── nginx-debugsource-1.19.0.fc32.x86_64.rpm ../SRPMS └── nginx-1.19.0-git.src.rpm
as is local mock build,
mock \ -r /etc/mock/fedora-32-x86_64.cfg \ --rebuild ../SRPMS/nginx-1.19.0-git.src.rpm
... INFO: Results and/or logs in: /var/lib/mock/fedora-32-x86_64/result
ls -al /var/lib/mock/fedora-32-x86_64/root/builddir/build/SRPMS/nginx-1.19.0-git.src.rpm -rw-r--r-- 1 root mock 2.5M Jun 25 13:51 /var/lib/mock/fedora-32-x86_64/root/builddir/build/SRPMS/nginx-1.19.0-git.src.rpm
pushing the spec to COPR,
copr-cli build nginx-mainline \ /root/rpmbuild/SPECS/nginx.spec
now "succeeds",
https://copr.fedorainfracloud.org/coprs/pgfed/nginx-mainline/build/1504166/
and shows available via dnf
dnf info nginx ... Name : nginx Version : 1.19.0 Release : git Architecture : src Size : 2.4 M Source : None Repository : copr:copr.fedorainfracloud.org:pgfed:nginx-mainline Summary : nginx URL : https://github.com/nginx/nginx License : BSD Description : Nginx WebServer
but note the
"Architecture : src"
which doesn't look right.
and,
attempt to install
dnf install nginx Last metadata expiration check: 0:03:25 ago on Thu 25 Jun 2020 02:26:36 PM PDT. Dependencies resolved. ============================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================= Installing: nginx x86_64 1:1.18.0-1.fc32 updates 571 k Installing dependencies: fedora-logos-httpd noarch 30.0.2-4.fc32 fedora 16 k gperftools-libs x86_64 2.7-7.fc32 fedora 307 k nginx-mimetypes noarch 2.1.48-7.fc32 fedora 19 k Downgrading: nginx-filesystem noarch 1:1.18.0-1.fc32 updates 10 k
Transaction Summary ============================================================================================================================= Install 4 Packages Downgrade 1 Package
Total download size: 923 k Is this ok [y/N]:
_still_ tries to install the 1.18 version nginx from 'updates'
again, build & install _locally_ has no issues with either rpmbuild or mock build.
On 6/25/20 2:38 PM, PGNet Dev wrote:
On 6/25/20 10:08 AM, Pavel Raiskup wrote:
Good, just let me know it is OK.
started from scratch -- just in case.
for the spec'd pkg, rpmbuild locally
rpm -Uvh ../RPMS/x86_64/nginx-1.19.0.fc32.x86_64.rpm dnf info nginx ... Installed Packages Name : nginx Version : 1.19.0 Release : git ?? Architecture : x86_64 Size : 5.0 M Source : nginx-1.19.0-git.src.rpm Repository : @System Summary : Nginx Web Server URL : https://github.com/nginx/nginx License : BSD Description : Nginx Web Server ...
for the identical spec, after build on COPR
dnf info nginx ... Name : nginx Version : 1.19.0 Release : git ?? Architecture : src Size : 2.4 M Source : None Repository : copr:copr.fedorainfracloud.org:pgfed:nginx-mainline Summary : Nginx Web Server URL : https://github.com/nginx/nginx License : BSD Description : Nginx Web Server
note the diff in 'Architeture:' -- 'X86_64' vs 'src'. AND the significantly smaller size, 5.0M vs 2.4M.
which remains a bit of a mystery for me.
but still uninstallable,
/etc/yum.repos.d/fedora.repo [fedora] +++ exclude=nginx* name=Fedora $releasever - $basearch ...
/etc/yum.repos.d/fedora-updates.repo [updates] +++ exclude=nginx* name=Fedora $releasever - $basearch - Updates ...
dnf install nginx Last metadata expiration check: 0:08:17 ago on Thu 25 Jun 2020 05:37:37 PM PDT. All matches were filtered out by exclude filtering for argument: nginx Error: Unable to find a match: nginx
copr-devel@lists.fedorahosted.org