1 |
I'm currently in the process of adding Slackware's rpm2targz |
2 |
program to portage. It's just three files, rpm2targz (a bash script), |
3 |
rpmoffset.c, and rpm2targz.README, which are downloaded separately. |
4 |
Using the ebuild below, "ebuild rpm2targz-8.0.ebuild unpack" fails |
5 |
with: |
6 |
|
7 |
g2 rpm2targz # ebuild rpm2targz-8.0.ebuild unpack |
8 |
>>> build dependencies OK ;) |
9 |
|
10 |
!!! rpm2targz: message digests do not match! |
11 |
!!! rpm2targz is corrupt or incomplete |
12 |
>>> md5 con 518584109e8c7d1e13a01b03eef6d489 |
13 |
c708ffe91a1717631f5581f102e756dd |
14 |
>>> md5 now 518584109e8c7d1e13a01b03eef6d489 |
15 |
>>> Please delete/redownload /usr/portage/distfiles/rpm2targz |
16 |
|
17 |
Taking a look at ebuild.sh, the rpm2targz md5 sum is obtained from |
18 |
'grep rpm2targz files/digest-rpm2targz-8.0 | cut -f2 -d" "', which |
19 |
returns the md5 sum for both rpm2targz and rpm2targz.README, and |
20 |
naturally the two md5 sums do not equal the single (actual) rpm2targz |
21 |
md5 sum. Oops. I'm somewhat confused, though, since I've written |
22 |
ebuilds using debian patches before, where SRC_URI contains both |
23 |
foo.tar.gz and foo.diff.gz, which should have produced the same |
24 |
problem. Any thoughts? |
25 |
|
26 |
# Copyright 1999-2001 Gentoo Technologies, Inc. |
27 |
# Distributed under the terms of the GNU General Public License, v2 or later |
28 |
# Author Grant Goodyear <g2boojum@g.o> |
29 |
# $Header: /home/cvsroot/gentoo-x86/skel.build,v 1.10 2001/11/03 17:27:49 agriffis Exp $ |
30 |
|
31 |
S=${WORKDIR}/${P} |
32 |
DESCRIPTION="Convert a .rpm file to a .tar.gz archive" |
33 |
SRC_URI="ftp://ftp.slackware.com/pub/slackware/slackware-${PV}/source/a/bin/rpm2targz |
34 |
ftp://ftp.slackware.com/pub/slackware/slackware-${PV}/source/a/bin/rpmoffset.c |
35 |
ftp://ftp.slackware.com/pub/slackware/slackware-${PV}/source/a/bin/rpm2targz.README" |
36 |
|
37 |
DEPEND="virtual/glibc" |
38 |
|
39 |
src_unpack() { |
40 |
cd ${WORKDIR} && mkdir rpm2targz |
41 |
cp ${DISTDIR}/rpm2targz ${S} |
42 |
cp ${DISTDIR}/rpm2targz.README ${S} |
43 |
cp ${DISTDIR}/rpmoffset.c ${S} |
44 |
} |
45 |
|
46 |
src_compile() { |
47 |
make CFLAGS=${CFLAGS} rpmoffset.c || die |
48 |
} |
49 |
|
50 |
src_install () { |
51 |
dobin rpmoffset rpm2targz |
52 |
dodoc rpm2targz.README |
53 |
} |
54 |
|
55 |
-Grant- |
56 |
-- |
57 |
___________________________________________________________________ |
58 |
| Grant Goodyear | The Secrets of Physics: | |
59 |
| Dept. of Chemistry - Clemson U |1. Add zero. | |
60 |
| Clemson, SC 29634 |2. Multiply by one. | |
61 |
|-------------------------------------|3. Expand in a Taylor series| |
62 |
|e-mail: goodyea@×××××××.edu |4. Integrate by parts. | |
63 |
|www:bernacchi.chem.uh.edu/~grant |5. Fourier transform. | |
64 |
| |6. Add auxiliary variables | |
65 |
|_____________________________________|____________________________| |