abi_compliance_checker, bump version, fix build (#2594)

This commit is contained in:
Schrijvers Luc
2018-05-23 02:01:26 +02:00
committed by waddlesplash
parent 69769a3ac5
commit 60b55878b2
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
SUMMARY="Binary & source-level backwards compatibility checker"
DESCRIPTION="ABI Compliance Checker (ACC) is a tool for checking backward \
binary and source-level compatibility of a C/C++ library. The tool checks \
header files and shared libraries of old and new versions and analyzes \
changes in API and ABI (ABI=API+compiler ABI) that may break binary and/or \
source compatibility."
HOMEPAGE="http://ispras.linuxbase.org/index.php/ABI_compliance_checker"
COPYRIGHT="2018 Andrey Ponomarenko's ABI Laboratory"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://github.com/lvc/abi-compliance-checker/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="b1e32a484211ec05d7f265ab4d2c1c52dcdb610708cb3f74d8aaeb7fe9685d64"
SOURCE_DIR="abi-compliance-checker-$portVersion"
PATCHES="abi_compliance_checker-$portVersion.patchset"
#ADDITIONAL_FILES="example-descriptors"
ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"
PROVIDES="
abi_compliance_checker = $portVersion
cmd:abi_compliance_checker = $portVersion
"
REQUIRES="
haiku
cmd:perl
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:sed
cmd:gcc
cmd:make
cmd:perl
"
BUILD()
{
true
}
INSTALL()
{
mkdir -p $prefix
make install prefix=$prefix
# not sure the examples are really uptodate
#cp -r $portDir/additional-files/example-descriptors \
# $dataDir/abi-compliance-checker
}

View File

@@ -0,0 +1,44 @@
From 76053729b10c07fdff8a9c3a68a2be1dc0770d55 Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 21 May 2018 17:24:53 +0200
Subject: set correct path to data
diff --git a/Makefile.pl b/Makefile.pl
index 69a1322..8c484d2 100644
--- a/Makefile.pl
+++ b/Makefile.pl
@@ -158,8 +158,8 @@ sub scenario()
# paths
my $EXE_PATH = catFile($PREFIX, "bin");
- my $MODULES_PATH = catFile($PREFIX, "share", $TOOL_SNAME);
- my $REL_PATH = catFile("..", "share", $TOOL_SNAME);
+ my $MODULES_PATH = catFile($PREFIX, "data", $TOOL_SNAME);
+ my $REL_PATH = catFile("..", "data", $TOOL_SNAME);
my $TOOL_PATH = catFile($EXE_PATH, $TOOL_SNAME);
if(not -w $PREFIX)
--
2.16.2
From 6b4e453fa965e682643dea20e19d11753cc0b7af Mon Sep 17 00:00:00 2001
From: begasus <begasus@gmail.com>
Date: Mon, 21 May 2018 17:38:45 +0200
Subject: set proper path for perl
diff --git a/abi-compliance-checker.pl b/abi-compliance-checker.pl
index cad9bc7..f2b1fa5 100644
--- a/abi-compliance-checker.pl
+++ b/abi-compliance-checker.pl
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/bin/perl
########################################################################
# ABI Compliance Checker (ABICC) 2.3
# A tool for checking backward compatibility of a C/C++ library API
--
2.16.2