Quote:
Originally Posted by phru
We have made some changes in the source code of the package and so it is not so easy to take another source package or version.
|
Sure it is. If the changes weren't kept in a revision repo then take the tarball from the original .src.rpm and diff it with your homebrew to make patches.
Quote:
Originally Posted by phru
I have a working binary rpm for RHEL 4. The problem is that i have a few new servers which are running under RHEL 5. So i wanted to rebuild the RPM on the new servers without luck.
|
Nothing to do with luck. Making a RPM w/o the corresponding .src.rpm is inefficient, a waste of time, if you don't mind me saying so. I can see though it's legacy and not your fault (unless you go down the same path).
Quote:
Originally Posted by phru
I have taken over the topic from a colleague and so i have no idea what he has done when he had buit the initial rpm or why it is not working now.
|
Diff, read, debug. That's what I do.
Now I don't like looking at code *snippets* very much, especially if *you're* not even sure what the problem is with. Next time better post the whole thing (or alternatively U/L the files or package to some free host and the post a D/L URI).
Anyway, bringing it back to the bare essence this should be enough and does work for me:
Code:
if [ "$UTILS" = "po" ] ; then
find po -name Makefile\* | while read i; do grep -q '^mkinstalldirs.*=.*case' "$i" && \
perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' "$i"
done
fi