[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fedora-devel-list
Subject:    Re: F38 proposal: Rpmautospec by Default (System-Wide Change proposal)
From:       Neal Gompa <ngompa13 () gmail ! com>
Date:       2023-01-04 15:37:41
Message-ID: CAEg-Je9Z=4ynZuVZR4f1Qjz2VyXA2ONsDz3y_DnGufQcCz-WEg () mail ! gmail ! com
[Download RAW message or body]

On Wed, Jan 4, 2023 at 10:25 AM Chuck Anderson <cra@fea.st> wrote:
>
> On Wed, Jan 04, 2023 at 03:04:02PM +0100, Vít Ondruch wrote:
> >
> > Dne 03. 01. 23 v 19:03 Todd Zullinger napsal(a):
> > > Zbigniew Jędrzejewski-Szmek wrote:
> > >> Yes, this is what I was talking about too. Because rpmbuild does not set
> > >> %_sourcedir, it may fail to load some files. Even worse, it may load *wrong*
> > >> versions, e.g. when some old version is present in the ~/rpmbuild/SOURCES/.
> > >> Personally, I have dozens of stray files there from old rpm builds there…
> > > I've used the following in ~/.rpmmacros for many years to
> > > have rpmbuild keep package files together, as rpkg/fedpkg
> > > do:
> > >
> > >      %_sourcedir             %{_topdir}/%{?name:%name}
> > >      %_specdir               %{_sourcedir}
> > >      %_builddir              %{_sourcedir}
> > >      %_srcrpmdir             %{_sourcedir}
> > >      %_rpmdir                %{_sourcedir}
> >
> >
> > Change to the dist-git layout is tracked upstream [1], so maybe the
> > default will change one day. But shouldn't we suggest this configuration
> > somewhere in Fedora documentation? Maybe we could speed up the
> > transition ...
>
> There is rpmdev-setuptree in the rpmdevtools package, which itself is
> required by fedora-packager.  It creates the following:
>
> $ cat .rpmmacros
>
> %_topdir %(echo $HOME)/rpmbuild
>
> %__arch_install_post \
>     [ "%{buildarch}" = "noarch" ] || QA_CHECK_RPATHS=1 ; \
>     case "${QA_CHECK_RPATHS:-}" in [1yY]*) /usr/lib/rpm/check-rpaths ;; esac \
>     /usr/lib/rpm/check-buildroot
>
> $ find rpmbuild
> rpmbuild/
> rpmbuild/RPMS
> rpmbuild/SOURCES
> rpmbuild/SPECS
> rpmbuild/SRPMS
> rpmbuild/BUILD
>
> Perhaps this can be modified to create a layout that matches dist-git?

Probably not, because Dist-Git is a Fedora-specific thing, so I
wouldn't accept such a change in rpmdevtools upstream.


-- 
真実はいつも一つ!/ Always, there's only one truth!
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic