Ticket #1769: 0001-svn-client-egg-fixes-for-building-on-musl.patch

File 0001-svn-client-egg-fixes-for-building-on-musl.patch, 950 bytes (added by Christopher Brannon, 3 years ago)
  • build-svn-client

    From d639c7a62c8decbaa950867369fc427a6a09a604 Mon Sep 17 00:00:00 2001
    From: Christopher Brannon <chris@the-brannons.com>
    Date: Sun, 11 Jul 2021 06:23:05 -0700
    Subject: [PATCH] svn-client egg: fixes for building on musl.
    
    The execvp from the Musl C library doesn't fall back to /bin/sh
    when it can't figure out how to execute a file.
    
    Also we apparently need to explicitly include fcntl.h.
    ---
     build-svn-client  | 1 +
     svn-client-base.c | 1 +
     2 files changed, 2 insertions(+)
    
    diff --git a/build-svn-client b/build-svn-client
    index 85939b7..2a75d61 100644
    a b  
     1#!/bin/sh
    12# -*- sh -*-
    23
    34CFLAGS="`apr-1-config --includes` -D_LARGEFILE64_SOURCE "
  • svn-client-base.c

    diff --git a/svn-client-base.c b/svn-client-base.c
    index 366badd..d6139ea 100644
    a b  
     1#include <fcntl.h>
    12#include <apr.h>
    23#include <apr_hash.h>
    34#include <apr_file_io.h>