Empty %files file debugsourcefiles.list - Mailing list pgsql-pkg-yum
From | Marcin Cieslak |
---|---|
Subject | Empty %files file debugsourcefiles.list |
Date | |
Msg-id | 5r2r9227-1rq9-3467-9qo5-s89n3son011r@fncre.vasb Whole thread Raw |
Responses |
Re: Empty %files file debugsourcefiles.list
Re: Empty %files file debugsourcefiles.list Re: Empty %files file debugsourcefiles.list |
List | pgsql-pkg-yum |
Hello, I try to rebuild some of the packages from the repo and it looks like "make rpm17" in the directories: rpm/redhat/17/postgresql-17/F-41 (tried on Fedora 41) rpm/redhat/17/postgresql-17/F-42 (tried on Fedora 42) fails with: Processing files: postgresql17-debugsource-17.4-4PGDG.f42.x86_64 error: Empty %files file /home/saper/src/pgrpms/rpm/redhat/17/postgresql-17/F-42/postgresql17-17.4-build/postgresql-17.4/debugsourcefiles.list RPM build errors: Empty %files file /home/saper/src/pgrpms/rpm/redhat/17/postgresql-17/F-42/postgresql17-17.4-build/postgresql-17.4/debugsourcefiles.list make: *** [../../../../global/Makefile.global-PG17:104: nopreprpm17] Error 1 In fact, most of the lists that probably should contain some information are empty: $ find . -name '[de][el]*.list' -ls 27653980 0 -rw-r--r-- 1 saper saper 0 Apr 19 17:13 ./postgresql17-17.4-build/postgresql-17.4/debugsources.list 27653981 12 -rw-r--r-- 1 saper saper 10347 Apr 19 17:13 ./postgresql17-17.4-build/postgresql-17.4/debugfiles.list 27653982 0 -rw-r--r-- 1 saper saper 0 Apr 19 17:12 ./postgresql17-17.4-build/postgresql-17.4/debuglinks.list 27653983 8 -rw-r--r-- 1 saper saper 4577 Apr 19 17:13 ./postgresql17-17.4-build/postgresql-17.4/elfbins.list 27726846 0 -rw-r--r-- 1 saper saper 0 Apr 19 17:13 ./postgresql17-17.4-build/postgresql-17.4/debugsourcefiles.list I have stepped through the execution of /usr/bin/find-debug-info and it seems that at the moment it tries to extract the information from the binaries they are stripped already. Fedora 42 is a brand new VM with lots of dependencies need to build our stuff added. I have reproduced the effect on a laptop running a pretty minimal Fedora 41. I have managed to build libpq with the following patch, so not everything is broken: diff --git a/rpm/redhat/main/common/libfq/main/libfq.spec b/rpm/redhat/main/common/libfq/main/libfq.spec index 892dbb50f..d7d3e3c53 100644 --- a/rpm/redhat/main/common/libfq/main/libfq.spec +++ b/rpm/redhat/main/common/libfq/main/libfq.spec @@ -23,6 +23,10 @@ A wrapper library for the Firebird C API, loosely based on libpq for PostgreSQL. %setup -q -n %{name}-%{version} %build +%set_build_flags +%if 0%{?fedora} >= 42 +CFLAGS="-std=gnu17 $CFLAGS" +%endif ./configure --prefix=%{_prefix} \ --with-ibase=%{_includedir}/firebird --libdir=%{_libdir}/ I continue to research this, but what could be wrong in my environment if anyone has already encountered this? By the way, I have pushed my work around to build libfq to https://repo.or.cz/pgrpms/saper.git/shortlog/refs/heads/libfq-std-gnu17 Marcin
Attachment
pgsql-pkg-yum by date: