[ovs-dev] [PATCH v2] rpm: Don't mangle shebangs when building DKMS RPM package

Guzowski Adrian adrian.guzowski at exatel.pl
Wed May 5 10:43:34 UTC 2021


W dniu śro, 05.05.2021 o godzinie 12∶20 +0200, użytkownik Timothy Redaelli napisał:
> On Wed, 5 May 2021 05:37:41 +0000

Spółka wpisana do rejestru przedsiębiorców w Sądzie Rejonowym dla m. st. Warszawy, XIII Wydział Gospodarczy, pod numerem KRS: 0000044577, kapitał zakładowy: 576 854 559 PLN, kapitał opłacony w całości, NIP: 527-010-45-68, BDO: 000250055, EXATEL SA, ul. Perkuna 47, 04-164 Warszawa.

Niniejsza wiadomość jest własnością EXATEL SA i może zawierać informacje poufne i/lub prawnie chronione. Jeśli nie są Państwo właściwym adresatem (lub otrzymali Państwo tę wiadomość na skutek pomyłki), prosimy o tym fakcie niezwłocznie poinformować nadawcę i usunąć otrzymaną wiadomość. Każde nieautoryzowane kopiowanie, ujawnianie lub rozpowszechnianie załączonej informacji jest zabronione.

This e-mail is a property of EXATEL SA and may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail by mistake) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
> Guzowski Adrian via dev <ovs-dev at openvswitch.org> wrote:
>
> > While building the package, some .in files are being subject to shebang
> > substitution, but the process fails, because given scripts have
> > placeholders in place of shebangs. In order to fix the issue, don't mangle
> > shebangs in this specific package.
> >
> > Signed-off-by: Guzowski Adrian <adrian.guzowski at exatel.pl>
> > ---
> >  rhel/openvswitch-dkms.spec.in | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/rhel/openvswitch-dkms.spec.in b/rhel/openvswitch-dkms.spec.in
> > index a47c038fd..d9955f361 100644
> > --- a/rhel/openvswitch-dkms.spec.in
> > +++ b/rhel/openvswitch-dkms.spec.in
> > @@ -27,6 +27,8 @@ BuildRoot:        %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-
> > XXXXXX)
> >  # conflicts with the openvswitch-debuginfo package for OVS userspace).
> >  %undefine _enable_debug_packages
> >
> > +# Exclude input files from mangling
> > +%global __brp_mangle_shebangs_exclude_from ^/usr/src/.*$
> >
> >  %description
> >  Open vSwitch Linux kernel module.
> > --
> > 2.30.2
>
> Hi,
> since almost any file is under /usr/src, you could just disable the
> mangling feature entirely [1] instead of specify a regexp:
>
> %undefine __brp_mangle_shebangs
>
> [1]
> https://docs.fedoraproject.org/en-US/packaging-guidelines/#_shebang_lines
>
Thanks for the referrence, I'll update the patch and send out v3


More information about the dev mailing list