[suggest] Re: suggest Digest, Vol 69, Issue 16

Nico Kadel-Garcia nkadel at gmail.com
Thu Mar 31 13:39:46 CEST 2011

> From: Fernando Herrero Peletero <alpharpm at gmail.com>
> Subject: Re: [suggest] Re: [sugess] cacti-0.8.7g with patchs and

> My "diff" file was created using the following method:
> 1. Seven official patches applied to the original source
> 2. I applied the diff file of the PIA 2.9
> 3. I added to cacti.sql the code of pa.sql
> 4. I ran diff the results obtained with respect to the original source.


You *did* squash them all together into one patch. This is actually a
source of some screaming over in the CentOS mailing lists, because
RedHat has taken to doing this for kernels. Red Hat is doing it on
purpose to make modifications more awkward for Oracle, who've been
joyriding on Red Hat's kernels and not, as near as I can tell,
publishing their changes.

It drives developers and updaters nuts becuase they can't segregate
and update individual patches, nor can they easily revert particular
patches when they get incorporated upstream, but with slightly
different syntax. That just breaks the whole patch bundle, and makes
it *much* harder to revert that one patch.  And reversion of single
patches happens *all the time* as particular segments get rewritten
and patches need significant rewrite.

I urge you to keep the original structure of the .spec file and add
the diff files distinctly, and add the 'code of pa.sql' distinctly to
keep the patches segregated from each other.

> Why did this instead of applying the patches from the spec?
> 1. Pa.sql file was not created.

So create it.

> 2. If the package included the IPA, why have the pa.sql? It was more
> logical join the cacti.sql and pa.sql.
> 3. # rpmbuild --rebuild cacti-0.8.7g-3.rf.src.rpm
>     Instalando cacti-0.8.7g-3.rf.src.rpm
>     advertencia:usuario dag no existe - utilizando root
>     advertencia:grupo dag no existe - utilizando root
>     error: falló el desempaquetado de archivos  en
> archivo/usr/src/redhat/SOURCES/cacti-0.8.7g.tar.gz;4d937a4e: cpio: El
> MD5 sum no coincide
>     error: cacti-0.8.7g-3.rf.src.rpm no puede ser instalado

That src.rpm was built on an RHEL 6 or CentOS 6.x box, and has the
more modern MD5 algorithm. Use 'rpm -U --nomd5
cacti-0.8.7g-3.rf.src.rpm' to extract the contents of that SRPM, and
use that command in the future to do backporting work from Fedora or
RHEL 6 to RHEL 5.

And your work is appreciated! It just can take a bit of practice to
learn some of the coding practices that will help you, and other
packagers, avoid some problems in the future.

More information about the users mailing list