Re: Empty %files file debugsourcefiles.list

From: Marcin Cieslak <saper(at)saper(dot)info>
To: Devrim Gündüz <devrim(at)gunduz(dot)org>
Cc: pgsql-pkg-yum(at)lists(dot)postgresql(dot)org
Subject: Re: Empty %files file debugsourcefiles.list
Date: 2025-04-23 06:38:56
Message-ID: 70qso266-r77n-43po-266n-n83qs99332pq@fncre.vasb
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

On Mon, 21 Apr 2025, Devrim Gündüz wrote:

>> 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
>
> <snip>
>
>> I continue to research this, but what could
>> be wrong in my environment if anyone has already encountered this?
>
> Bo idea about that. I experience the same problem on my laptop (Fedora
> over the last few years) but none of the build instances have that
> problem. Often this is caused because of *some* error in the spec file,
> but it is not the case for now.

I found the problem. In short, the problem are symbolic links in the repository.
They not only confuse the shell but also the debugedit utility
does not list the source files, because the path provided by the compiler
is in some other directory.

When I 'make rpm17' in the pgrpms/redhat/17/postgresql-17/F-41 directory
debugedit gets -b option that looks like

/home/saper/src/pgrpms/rpm/redhat/17/postgresql-17/F-41/postgresql17-17.4-build/postgresql-17.4

but there are no files with that path, all source files are in

/home/saper/src/pgrpms/rpm/redhat/main/non-common/postgresql-17/F-41/postgresql17-17.4-build/postgresql-17.4

and therefore debugedit finds zero files to list.

A somewhat related question, what is the purpose of

--define "_buildrootdir $(HOME)/rpm17/BUILDROOT"

does it do anything? (it does not seem to have any affect for me)

Marcin

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Devrim Gündüz 2025-04-23 08:19:20 Re: Empty %files file debugsourcefiles.list
Previous Message Devrim Gündüz 2025-04-21 17:19:02 Re: Empty %files file debugsourcefiles.list