Re: Question about dist-cvs make targets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Till Maas <opensource@xxxxxxxxx> writes:

> Iirc there is a rediff target to keep the comments in a spec.

I never got this to work; e.g.

$ LANG=C make rediff SUFFIX=arridx
/bin/sh: line 0: cd: /var/tmp/sessiondir-ensc.1262717944.trKTtL/cvsextras/hunt-1.5/..: No such file or directory


It seems to assume a %name-%version-$SUFFIX.patch naming scheme.  Lot of
my patches are from a previous %version so that it does not apply.


>> | %apply -n23 -p1
>
> Would you please provide more instructions about how to implement it and
> how to use it?

Place

| %{!?apply:%global  apply(p:n:b:) %patch%%{-n:%%{-n*}} %%{-p:-p %%{-p*}} %%{-b:-b %%{-b*}} \
| %nil}

in every .spec file and replace

| %patchX -pN

by

| %apply -nX -pN

there. In your local ~/.rpmmacros, add

--------
%apply(p:n:b:)          \
        if test -n "$RPM_NO_DEVEL"; then        \
%patch%{-n:%{-n*}} %-p %-b              \
        else \
           quilt import %-p %{!-p:-p 0} %{P:%{-n*}} \
           quilt push -f; \
        fi \
%nil
--------

Do *not* indent the %patch line; %patchX seems to be implemented very
tricky in rpm and does not work when it does not start on the beginning
of a line.



Enrico

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux