Re: Empty %files file debugsourcefiles.list

From: Devrim Gündüz <devrim(at)gunduz(dot)org>
To: Marcin Cieslak <saper(at)saper(dot)info>
Cc: pgsql-pkg-yum(at)lists(dot)postgresql(dot)org
Subject: Re: Empty %files file debugsourcefiles.list
Date: 2025-04-23 08:19:20
Message-ID: 690421d1fc27d9692ed6a4bb173871a6fca0bc96.camel@gunduz.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-pkg-yum

Hi,

On Wed, 2025-04-23 at 06:38 +0000, Marcin Cieslak wrote:
> 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.

Thanks for the analysis -- but please note that we don't have this
problem on the buildfarm instances which have the same symlinks.

>
> 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)

I've written the initial version of those makefiles about 15 years ago.
Cannot remember the details but I think I explicitly defined everything
statically so that even the distro changes a default, we are not
affected (hopefully). It is the same with _specdir, _builddir and etc.

Regards,

--
Devrim Gündüz
Open Source Solution Architect, PostgreSQL Major Contributor
BlueSky: @devrim.gunduz.org , @gunduz.org

In response to

Responses

Browse pgsql-pkg-yum by date

  From Date Subject
Next Message Marcin Cieslak 2025-04-23 17:14:46 Re: Empty %files file debugsourcefiles.list
Previous Message Marcin Cieslak 2025-04-23 06:38:56 Re: Empty %files file debugsourcefiles.list