public inbox for [email protected]  
help / color / mirror / Atom feed
From: Marcin Cieslak <[email protected]>
To: [email protected]
Subject: Empty %files file debugsourcefiles.list
Date: Sat, 19 Apr 2025 21:31:33 +0000
Message-ID: <[email protected]> (raw)

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

Attachments:

  [application/pkcs7-signature] smime.p7s (3.6K, 2-smime.p7s)
  download

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Empty %files file debugsourcefiles.list
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox