Author Topic: Need help about patch  (Read 1461 times)

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3737
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Need help about patch
« on: December 03, 2009, 01:19:00 PM »
Hello,

Joble had created a patch for this, http://www.pclinuxos.com/forum/index.php/topic,63820.0.html , but when i will build a package with that patch, it's end with error messages.

Code: [Select]
rpm -ba rpmxdgtool-Joble.spec
Ausführung(%prep): /bin/sh -e /home/daniel/RPM/tmp/rpm-tmp.54541
+ umask 022                                                     
+ cd /home/daniel/RPM/BUILD                                     
+ '[' 1 -eq 1 ']'                                               
+ '[' 1 -eq 1 ']'                                               
+ '[' 1 -eq 1 ']'
+ cd /home/daniel/RPM/BUILD
+ rm -rf rpmxdgtool-0.0.7
+ /usr/bin/bzip2 -dc /home/daniel/RPM/SOURCES/rpmxdgtool-0.0.7.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd rpmxdgtool-0.0.7
+ echo 'Patch #0 (rpmxdgtool-0.0.7-configure.patch):'
Patch #0 (rpmxdgtool-0.0.7-configure.patch):
+ patch -p1 -b --suffix .rpmxdgtool-0.0.7-configure -s
1 out of 11 hunks FAILED -- saving rejects to file configure.rej
Fehler: Fehler-Status beim Beenden von /home/daniel/RPM/tmp/rpm-tmp.54541 (%prep)

So i create my own patch, and it work, but Joble can't build the package with my patch.
So my question, why is that so?

Thanks for replays...

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Need help about patch
« Reply #1 on: December 03, 2009, 01:24:59 PM »
Actually the package builds with your patch, but it doesn't install.  E Ordering Failed - Virtual Package with no Providers or some similar result.  Still trying to figure it out, but lunch break is over.

Edit:

Do you still have the src.rpm from the rpm you sent me?  I will try to recreate the patch, from the source you modified and the original source.  I'm not getting this working, but that rpm you linked to worked fine, so the patch should work, but it's not.  It makes no sense to me why this isn't working for both of us.  (minime, task-kde4-minimal, fully updated)
« Last Edit: December 03, 2009, 07:19:09 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Need help about patch
« Reply #2 on: December 07, 2009, 04:06:16 PM »
Actually the package builds with your patch, but it doesn't install.  E Ordering Failed - Virtual Package with no Providers or some similar result.  Still trying to figure it out, but lunch break is over.

Are you testing the package from a local repo, or just installing direct from the file system using apt-get?  I've had a few packages generate this same error, and usually they will install fine when added to a repo, or if installed locally using rpm!?

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Need help about patch
« Reply #3 on: December 07, 2009, 04:15:34 PM »
Interesting, I was using apt-get, will try rpm tonight.
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Need help about patch
« Reply #4 on: December 07, 2009, 06:12:16 PM »
rpm almost always works on packages that generate this error; my experience has been that apt-get will also usually work when the package is installed from a local / remote repository, but for some reason fails when installed from a local file system directory (..add the package to your local testing repo, rebuild package lists and install with apt-get or synaptic, but don't cd to the directory and install with apt-get..)

I don't have any idea why it works one way, but not the other.. it just does! ???

Offline Joble

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6804
  • USA - Mountain Time
Re: Need help about patch
« Reply #5 on: December 07, 2009, 06:24:21 PM »
Wow, rpm -ivh worked!  It's installed and working great!  With a proper patch this time!  Where have you been all my life?

hehe, I see this is just an educational exercise, it's already in the repo.   :D  Tex must ROFL!   ;D
« Last Edit: December 07, 2009, 06:26:42 PM by Joble »
Search First.
Forum Rules
Hero means I talk a lot, nothing more, nothing less!
Have an Awesome Day!
Healthy System

Offline MBantz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1317
Re: Need help about patch
« Reply #6 on: January 21, 2010, 03:30:51 PM »
Oh, I got this message 'virtual package with no providers' a lot with one of my latest packages,

it turns out that the message appear when the version/revision is lower than the installed version apt-get knows about. I have always resolved this by looking at version, revision and major. My current issue (just made a post about it) is when deliberately wanting to update a package that has a higher version number than the one I just finished (mine has 0.83 and the synaptic version has 1.65 (and the 1 in 1.65 just don't make any sense to me). The rpm guide tell us to use "epoch" but then you're stuck with them and Tex has given directions not to use epochs,

cheers,
MBantz