Ticket #12917: get_package_dependencies_fix_from_jessicah.diff

File get_package_dependencies_fix_from_jessicah.diff, 2.0 KB (added by miqlas, 3 years ago)

[PATCH] get_package_dependencies: set include path for curl on Haiku

  • src/tools/get_package_dependencies/HTTPClient.cpp

    From 158b8e002238d8aaac7e0775e9dc0558d0a9caa2 Mon Sep 17 00:00:00 2001
    From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
    Date: Sun, 11 Dec 2016 14:30:27 +0000
    Subject: [PATCH] get_package_dependencies: set include path for curl on Haiku
     
    ---
     src/tools/get_package_dependencies/HTTPClient.cpp | 2 ++
     src/tools/get_package_dependencies/HTTPClient.h   | 4 +++-
     src/tools/get_package_dependencies/Jamfile        | 6 ++++++
     3 files changed, 11 insertions(+), 1 deletion(-)
     
    diff --git a/src/tools/get_package_dependencies/HTTPClient.cpp b/src/tools/get_package_dependencies/HTTPClient.cpp
    index 2297d4d..d4e6777 100644
    a b  
    1111
    1212#include <File.h>
    1313
     14#include <curl/curl.h>
     15
    1416
    1517HTTPClient::HTTPClient()
    1618       :
  • src/tools/get_package_dependencies/HTTPClient.h

    diff --git a/src/tools/get_package_dependencies/HTTPClient.h b/src/tools/get_package_dependencies/HTTPClient.h
    index d178153..1b5fd33 100644
    a b  
    1111
    1212#include <String.h>
    1313#include <Entry.h>
    14 #include <curl/curl.h>
     14
     15
     16typedef void CURL;
    1517
    1618
    1719class HTTPClient {
  • src/tools/get_package_dependencies/Jamfile

    diff --git a/src/tools/get_package_dependencies/Jamfile b/src/tools/get_package_dependencies/Jamfile
    index 452afab..d6c7624 100644
    a b SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src bin pkgman ] ;  
    66
    77USES_BE_API on <build>get_package_dependencies = true ;
    88
     9# TODO: remove this hack once gcc2 has -iquote implemented
     10if $(HOST_PLATFORM) = haiku_host &&  $(HOST_GCC_VERSION[1]) < 3 {
     11       local locations = system/non-packaged system ;
     12       SourceHdrs HTTPClient.cpp : /boot/$(locations)/develop/headers/curl ;
     13}
     14
    915BuildPlatformMain <build>get_package_dependencies :
    1016       get_package_dependencies.cpp
    1117       HTTPClient.cpp