Hello David,
I do as your method but When I built libdomainkeys-toaster-*.src.rpm ,i got
the error as below.
Can you help?
My system is frdora15_x64.
daemontools-toaster-*.src.rpm build pass
=> changes p0 -> p1
ucspi-tcp-toaster-*.src.rpm build pass
=> changes p0 -> p1
=> one patch had to manually specify target
vpopmail-toaster-*.src.rpm build pass
=> Unsure, think there was one p0 -> p1, but made no notes
libdomainkeys-toaster-*.src.rpm => no changes error
libsrs2-toaster-*.src.rpm => no changes build pass
[root@node01 src]# rpmbuild --rebuild --with fedora_1164
libdomainkeys-toaster-0.68-1.3.6.src.rpm
Installing libdomainkeys-toaster-0.68-1.3.6.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.gu26N3
+ umask 022
+ cd /root/rpmbuild/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /root/rpmbuild/BUILD
+ rm -rf libdomainkeys-0.68
+ /bin/tar -xf -
+ /usr/bin/gzip -dc /root/rpmbuild/SOURCES/libdomainkeys-0.68.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd libdomainkeys-0.68
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ '[' -f /var/tmp/libdomainkeys-0.68-gcc ']'
+ rm -f /var/tmp/libdomainkeys-0.68-gcc
+ echo gcc
+ '[' -f /var/tmp/libdomainkeys-0.68-show_flags ']'
+ cat
+ chmod u+x /var/tmp/libdomainkeys-0.68-show_flags
+ /var/tmp/libdomainkeys-0.68-show_flags
RPM RELEASE: libdomainkeys-toaster-0.68-1.3.6
OS TYPE IS : Fedora 11 x86_64 Linux
BUILD DATE : Fri Jun 12 2009
CCFLAGS : -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
LDFLAGS : -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
+ '[' -f /var/tmp/libdomainkeys-0.68-show_flags ']'
+ rm -f /var/tmp/libdomainkeys-0.68-show_flags
+ perl -pi '-es/CFLAGS=/CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic
-fPIC /' Makefile
+ echo -- -lresolv
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.pNe0ol
+ umask 022
+ cd /root/rpmbuild/BUILD
+ cd libdomainkeys-0.68
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' -n /root/rpmbuild/BUILDROOT/libdomainkeys-toaster-0.68-1.3.6.x86_64 -a
/root/rpmbuild/BUILDROOT/libdomainkeys-toaster-0.68-1.3.6.x86_64 '!=' / ']'
+ rm -rf /root/rpmbuild/BUILDROOT/libdomainkeys-toaster-0.68-1.3.6.x86_64
+ mkdir -p /root/rpmbuild/BUILDROOT/libdomainkeys-toaster-0.68-1.3.6.x86_64
+ make UNAME=Linux
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -o
makeheader makeheader.c
./makeheader <domainkeys.c >domainkeys.h
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -c
dktest.c -I.
dktest.c: In function 'main':
dktest.c:146:3: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:148:3: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:181:9: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:193:10: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:199:10: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:210:7: warning: pointer targets in passing argument 2 of 'dk_message'
differ in signedness [-Wpointer-sign]
./domainkeys.h:248:9: note: expected 'const unsigned char *' but argument is of
type 'char *'
dktest.c:286:5: warning: pointer targets in passing argument 3 of 'dk_getsig'
differ in signedness [-Wpointer-sign]
./domainkeys.h:343:9: note: expected 'unsigned char *' but argument is of type
'char *'
dktest.c:288:5: warning: format '%d' expects argument of type 'int', but
argument 2 has type 'size_t' [-Wformat]
dktest.c:288:5: warning: format '%d' expects argument of type 'int', but
argument 3 has type 'size_t' [-Wformat]
dktest.c:291:5: warning: pointer targets in passing argument 3 of 'dk_getsig'
differ in signedness [-Wpointer-sign]
./domainkeys.h:343:9: note: expected 'unsigned char *' but argument is of type
'char *'
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -c
domainkeys.c -I.
domainkeys.c: In function 'dkheaders_header':
domainkeys.c:1068:9: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1071:7: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1072:7: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c: In function 'dkheaders':
domainkeys.c:1120:9: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1124:9: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1125:9: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1276:5: warning: cast to pointer from integer of different size
[-Wint-to-pointer-cast]
domainkeys.c:1276:5: warning: value computed is not used [-Wunused-value]
domainkeys.c: In function 'dk_headers':
domainkeys.c:1297:9: warning: variable 'headers' set but not used
[-Wunused-but-set-variable]
domainkeys.c: In function 'dk_message':
domainkeys.c:1504:7: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c:1505:7: warning: pointer targets in passing argument 2 of 'dkhash'
differ in signedness [-Wpointer-sign]
domainkeys.c:871:13: note: expected 'const unsigned char *' but argument is of
type 'char *'
domainkeys.c: In function 'dk_getsig':
domainkeys.c:2004:7: warning: value computed is not used [-Wunused-value]
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -c
dns_txt.c
dns_txt.c: In function 'dns_text':
dns_txt.c:133:7: warning: pointer targets in passing argument 1 of 'dk_strdup'
differ in signedness [-Wpointer-sign]
dns_txt.c:19:14: note: expected 'const char *' but argument is of type 'u_char
*'
dns_txt.c:70:9: warning: unused variable 'i' [-Wunused-variable]
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -c -o
dktrace.o dktrace.c
rm -f libdomainkeys.a
ar cr libdomainkeys.a domainkeys.o dns_txt.o dktrace.o
ranlib libdomainkeys.a
gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC -DBIND_8_COMPAT -O2 -o
dktest dktest.o -L. -ldomainkeys -lcrypto `cat dns.lib`
gcc: error: unrecognized option '--'
make: *** [dktest] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.pNe0ol (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.pNe0ol (%build)
2011-10-10
qmt
发件人: Kevin
发送时间: 2011-10-09 19:21:47
收件人: qmailtoaster-list
抄送:
主题: Re: [qmailtoaster] Re: patch utility under Fedora 13
Hello David,
I had same problem on building "ucspi-tcp-toaster-*.src.rpm", How do I do that?
the red part below.
ucspi-tcp-toaster-*.src.rpm
=> changes p0 -> p1
=> one patch had to manually specify target
Kevin
于 2011/4/18 7:29, David Bray 写道:
Hi Jake thanks for replying
this was my build results - I agree, don't worry about Fedora 13, 15 is
just around the corner. But the VM at this providor is only 13 - I have
this up and running now
Where I had to manually specify the target, the first line of the patch
refers to a file without path, adding ./ to the front of the file and
using -p1 did the trick ...., -p0 is not the same as no -p at all
daemontools-toaster-*.src.rpm
=> changes p0 -> p1
ucspi-tcp-toaster-*.src.rpm
=> changes p0 -> p1
=> one patch had to manually specify target
vpopmail-toaster-*.src.rpm
=> Unsure, think there was one p0 -> p1, but made no notes
libdomainkeys-toaster-*.src.rpm => no changes
libsrs2-toaster-*.src.rpm => no changes
qmail-toaster-*.src.rpm
=> changes p0 -> p1
=> two patchs had to manually specify target
courier-authlib-toaster-*.src.rpm => no changes
courier-imap-toaster-*.src.rpm => no changes
autorespond-toaster-*.src.rpm => no changes
control-panel-toaster-*.src.rpm
=> no changes
=> warning: line 529: prereq is deprecated: Prereq:
/usr/bin/perl
=> warning: line 529: prereq is deprecated: Prereq:
/usr/bin/perl
=> warning: line 632: prereq is deprecated: Prereq: /usr/bin/perl
ezmlm-toaster-*.src.rpm => no changes
qmailadmin-toaster-*.src.rpm => no changes
qmailmrtg-toaster-*.src.rpm => no changes
maildrop-toaster-*.src.rpm => no changes
isoqlog-toaster-*.src.rpm
=> changes p0 -> p1
=> warning: line 517: buildprereq is deprecated: BuildPreReq:
qmail-toaster >= 1.03, control-panel-toaster >= 0.2
vqadmin-toaster-*.src.rpm
=> changes p0 -> p1
=> one patch (user.c) had to manually specify target
squirrelmail-toaster-*.src.rpm
=> changes p0 -> p1
=> warning: line 554: prereq is deprecated: Prereq:
/usr/bin/perl
=> warning: line 554: prereq is deprecated: Prereq:
/usr/bin/perl
spamassassin-toaster-*.src.rpm => no changes
clamav-toaster-*.src.rpm => no changes
ripmime-toaster-*.src.rpm => no changes
simscan-toaster-*.src.rpm => no changes
*David Bray*
http://www.brayworth.com.au
[email protected]
On 18/04/2011 12:03 AM, Jake Vickers wrote:
On 04/15/2011 07:33 PM, David Bray wrote:
Hi Martin
It does help to understand how this work, but I'm still left puzzled.
I can compile it manually, but work with a life of 6 month on the
servers and update and move the data, so it important to me that I get
the install process right to make the migration quick ... hence the time
spent on this.
You can send me a list of packages that fail. I have already
re-diff'ed some packages to bring the patch files current.
I will test this under F14, but I will not test under F13.
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and
installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and
packages.
To unsubscribe, e-mail:
[email protected]
For additional commands, e-mail:
[email protected]
---------------------------------------------------------------------------------
Qmailtoaster is sponsored by Vickers Consulting Group
(www.vickersconsulting.com)
Vickers Consulting Group offers Qmailtoaster support and installations.
If you need professional help with your setup, contact them today!
---------------------------------------------------------------------------------
Please visit qmailtoaster.com for the latest news, updates, and packages.
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]