Re: problems to apply patches during the rpmbuild build

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

 



Hey gil again,

just that you don't missunderstand me: I've read your suggestions/mails, and I
think i understand most of it. But i want to reproduce a working build based on
the specfile.  That means, i wanted to first understand how patches work with
the specfile (or rather where my error with my small patch was). After that, i
wanted to implement your suggestions/ideas in a clean way.

That's why the small patch didn't contained the removal of the grooval versions
- which I understand are useleless in fedora.

regards,
tobi/toogley

On 08/02, toogley wrote:
> hey gil,
> 
> On 07/31, gil wrote:
> > before you should changes spec file in this way
> 
> okay, done.
> 
> 
> > > %prep
> > > %autosetup -n Gant-%{version}
> [...]
> > try to change %autosetup with %setup
> 
> Ah. i changed %setup to %autosetup, because i missed that
> %setup has the option -n to specify the directory.
> i've changed it back again.
> 
> 
> > and as i wrote in the previous emails disable useless
> > 'gant_groovy2.0', 'gant_groovy2.1', 'gant_groovy2.2', 'gant_groovy2.3' tasks
> > we don't have old groovy 2.x release
> 
> okay, done.
> 
> > > 
> > > _________________[end snippet]________________________-
> > > 
> > > 
> > > $ rpmbuild -bb gant.spec
> > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.7YlST9
> > > + umask 022
> > > + cd /home/toogley/rpmbuild/BUILD
> > > + cd /home/toogley/rpmbuild/BUILD
> > > + rm -rf Gant-1.9.11
> > > + /usr/bin/gzip -dc /home/toogley/rpmbuild/SOURCES/1.9.11.tar.gz
> > > + /usr/bin/tar -xof -
> > > + STATUS=0
> > > + '[' 0 -ne 0 ']'
> > > + cd Gant-1.9.11
> > > + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
> > > + /usr/bin/cat /home/toogley/rpmbuild/SOURCES/test.patch
> > > + /usr/bin/patch -s
> > > + find . -name '*.bat' -delete
> > > + find . -name '*.class' -delete
> > > + find . -name '*.jar' -delete
> > > + echo 'Patch #0 (test.patch):'
> > > Patch #0 (test.patch):
> > > + /usr/bin/patch -p0 --fuzz=0
> > > patching file build.gradle
> > > Reversed (or previously applied) patch detected!  Assume -R? [n] n
> > > Apply anyway? [n] y
> > > Hunk #1 FAILED at 194.
> > > Hunk #2 FAILED at 210.
> > > Hunk #3 FAILED at 566.
> > > 3 out of 3 hunks FAILED -- saving rejects to file build.gradle.rej
> > > error: Bad exit status from /var/tmp/rpm-tmp.7YlST9 (%prep)
> > > 
> > > 
> > > RPM build errors:
> > >      Bad exit status from /var/tmp/rpm-tmp.7YlST9 (%prep)
> > > 
> > > 
> > > $ rpmbuild -bb gant.spec
> > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.RtJaSm
> > > + umask 022
> > > + cd /home/toogley/rpmbuild/BUILD
> > > + cd /home/toogley/rpmbuild/BUILD
> > > + rm -rf Gant-1.9.11
> > > + /usr/bin/gzip -dc /home/toogley/rpmbuild/SOURCES/1.9.11.tar.gz
> > > + /usr/bin/tar -xof -
> > > + STATUS=0
> > > + '[' 0 -ne 0 ']'
> > > + cd Gant-1.9.11
> > > + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
> > > + /usr/bin/cat /home/toogley/rpmbuild/SOURCES/test.patch
> > > + /usr/bin/patch -s
> > > + find . -name '*.bat' -delete
> > > + find . -name '*.class' -delete
> > > + find . -name '*.jar' -delete
> > > + echo 'Patch #0 (test.patch):'
> > > Patch #0 (test.patch):
> > > + /usr/bin/patch -p0 --fuzz=0
> > > patching file build.gradle
> > > Reversed (or previously applied) patch detected!  Assume -R? [n] n
> > > Apply anyway? [n] n
> > > Skipping patch.
> > > 3 out of 3 hunks ignored -- saving rejects to file build.gradle.rej
> > > error: Bad exit status from /var/tmp/rpm-tmp.RtJaSm (%prep)
> > > 
> > > 
> > > RPM build errors:
> > >      Bad exit status from /var/tmp/rpm-tmp.RtJaSm (%prep)
> > > 
> > > 
> > > _________________[end snippet]________________________-
> > > --
> > > java-devel mailing list
> > > java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> > > https://lists.fedoraproject.org/admin/lists/java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> > --
> > java-devel mailing list
> > java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> > https://lists.fedoraproject.org/admin/lists/java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> --
> java-devel mailing list
> java-devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://lists.fedoraproject.org/admin/lists/java-devel@xxxxxxxxxxxxxxxxxxxxxxx
--
java-devel mailing list
java-devel@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/java-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Red Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux