[kde-freebsd] ports/116767: x11/kdelibs3 - kde3 fails to build

Scot Hetzel swhetzel at gmail.com
Wed Oct 3 05:50:10 CEST 2007


The following reply was made to PR ports/116767; it has been noted by GNATS.

From: "Scot Hetzel" <swhetzel at gmail.com>
To: bug-followup at freebsd.org
Cc: ralph at imada.sdu.dk
Subject: Re: ports/116767: x11/kdelibs3 - kde3 fails to build
Date: Tue, 2 Oct 2007 22:49:43 -0500

 ------=_Part_9997_10835362.1191383383044
 Content-Type: text/plain; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 The attached patches fixes the build for kdelibs3.
 
 The patch to cups-util.c replaces the current version with the one
 from the head of the SVN repository.
 
 http://websvn.kde.org/trunk/KDE/kdelibs/kdeprint/cups/cupsdconf2/cups-util.c?revision=709485&view=markup
 
 The patch to ipprequest.cpp changes direct access to HTTP->authstring
 to use http{Set,Get}AuthString.
 
 http://websvn.kde.org/trunk/KDE/kdelibs/kdeprint/cups/ipprequest.cpp?r1=704615&r2=706199
 
 Scot
 
 ------=_Part_9997_10835362.1191383383044
 Content-Type: text/x-csrc; name="patch-kdeprint_cups_cupsdconf2_cups-util.c"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="patch-kdeprint_cups_cupsdconf2_cups-util.c"; filename="patch-kdeprint_cups_cupsdconf2_cups-util.c";
  filename="patch-kdeprint_cups_cupsdconf2_cups-util.c"
 X-Attachment-Id: file0
 
 LS0tIGtkZXByaW50L2N1cHMvY3Vwc2Rjb25mMi9jdXBzLXV0aWwuYy1vcmlnCTIwMDctMTAtMDIg
 MjE6MzY6MzcuNDQyNjQ1NTQ2IC0wNTAwCisrKyBrZGVwcmludC9jdXBzL2N1cHNkY29uZjIvY3Vw
 cy11dGlsLmMJMjAwNy0xMC0wMiAyMTo0MjowOC45OTE3MDg2MjUgLTA1MDAKQEAgLTYsNDg5ICs2
 LDExOCBAQAogI2luY2x1ZGUgPHN5cy9zdGF0Lmg+CiAjaW5jbHVkZSA8d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BTX1NFUlZFUlJPT1Q7Ci0KLSAgcGlkID0g
 Z2V0cGlkKCk7Ci0gIHNucHJpbnRmKGZpbGVuYW1lLCBzaXplb2YoZmlsZW5hbWUpLCAiJXMvY2Vy
 dHMvJWQiLCByb290LCBwaWQpOwotICBpZiAoKGZwID0gZm9wZW4oZmlsZW5hbWUsICJyIikpID09
 IE5VTEwgJiYgcGlkID4gMCkKLSAgewotICAgIHNucHJpbnRmKGZpbGVuYW1lLCBzaXplb2YoZmls
 ZW5hbWUpLCAiJXMvY2VydHMvMCIsIHJvb3QpOwotICAgIGZwID0gZm9wZW4oZmlsZW5hbWUsICJy
 Iik7Ci0gIH0KLQotICBpZiAoZnAgPT0gTlVMTCkKLSAgICByZXR1cm4gKDApOwotCi0gLyoKLSAg
 KiBSZWFkIHRoZSBjZXJ0aWZpY2F0ZSBmcm9tIHRoZSBmaWxlLi4uCi0gICovCi0KLSAgZmdldHMo
 Y2VydGlmaWNhdGUsIHNpemVvZihjZXJ0aWZpY2F0ZSksIGZwKTsKLSAgZmNsb3NlKGZwKTsKLQot
 IC8qCi0gICogU2V0IHRoZSBhdXRob3JpemF0aW9uIHN0cmluZyBhbmQgcmV0dXJuLi4uCi0gICov
 Ci0KLSAgc25wcmludGYoYXV0aHN0cmluZywgc2l6ZW9mKGF1dGhzdHJpbmcpLCAiTG9jYWwgJXMi
 LCBjZXJ0aWZpY2F0ZSk7CiAKLSAgcmV0dXJuICgxKTsKKyAgICAvKgorICAgICAqIFNlZSBpZiB3
 ZSBhY3R1YWxseSBnb3QgdGhlIGZpbGUgb3IgYW4gZXJyb3IuLi4KKyAgICAgKi8KKworICAgIGlm
 IChzdGF0dXMgIT0gSFRUUF9DUkVBVEVEKQorICAgICAgICByZXR1cm4gMDsKKyAgICBlbHNlCisg
 ICAgICAgIHJldHVybiAxOwogfQo=
 ------=_Part_9997_10835362.1191383383044
 Content-Type: text/x-c++src; name="patch-kdeprint_cups_ipprequest.cpp"
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="patch-kdeprint_cups_ipprequest.cpp";
  filename="patch-kdeprint_cups_ipprequest.cpp"
 X-Attachment-Id: file2
 
 LS0tIGtkZXByaW50L2N1cHMvaXBwcmVxdWVzdC5jcHAtb3JpZwkyMDA3LTAxLTE1IDA1OjM0OjE5
 LjAwMDAwMDAwMCAtMDYwMAorKysga2RlcHJpbnQvY3Vwcy9pcHByZXF1ZXN0LmNwcAkyMDA3LTEw
 LTAyIDIyOjIxOjUyLjM1OTg5MzEyOSAtMDUwMApAQCAtMzEwLDcgKzMxMCw3IEBACiAJfQogCiAj
 aWZkZWYgSEFWRV9DVVBTX05PX1BXRF9DQUNIRQotCXN0cm5jcHkoIEhUVFAtPmF1dGhzdHJpbmcs
 IGN1cHNfYXV0aHN0cmluZy5kYXRhKCksIEhUVFBfTUFYX1ZBTFVFICk7CisJaHR0cFNldEF1dGhT
 dHJpbmcoIEhUVFAsIE5VTEwsIGN1cHNfYXV0aHN0cmluZy5kYXRhKCkgKTsKICNlbmRpZgogCiAJ
 aWYgKGR1bXBfID4gMCkKQEAgLTMyMCw3ICszMjAsNyBAQAogCiAJcmVxdWVzdF8gPSBjdXBzRG9G
 aWxlUmVxdWVzdChIVFRQLCByZXF1ZXN0XywgKHJlcy5pc0VtcHR5KCkgPyAiLyIgOiByZXMubGF0
 aW4xKCkpLCAoZmlsZW5hbWUuaXNFbXB0eSgpID8gTlVMTCA6IGZpbGVuYW1lLmxhdGluMSgpKSk7
 CiAjaWZkZWYgSEFWRV9DVVBTX05PX1BXRF9DQUNIRQotCWN1cHNfYXV0aHN0cmluZyA9IEhUVFAt
 PmF1dGhzdHJpbmc7CisJY3Vwc19hdXRoc3RyaW5nID0gaHR0cEdldEF1dGhTdHJpbmcoIEhUVFAg
 KTsKICNlbmRpZgogCWh0dHBDbG9zZShIVFRQKTsKIAo=
 ------=_Part_9997_10835362.1191383383044--


More information about the kde-freebsd mailing list