changing directory with %patch

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

 



Hello,

as I have two source .tar.gz's each in its own directory and rpmbuild is switching to the first of them, I need to change the directory before applying a patch for the second .tar.gz. As of the rpm-book, I can append arbitrary parameters to the %patch macro which are directed to the patch-command. But if I'm actually trying to do this:

%patch1 -p0 --directory=..

or

%patch1 -p0 -d $RPM_BUILD_DIR/..

I'm always getting

error: line 22: Bad arg to %patch: %build

How can I change the directory without calling the patch-command on my own?

Regards
Marten

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux