-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
569 additions
and
288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
sources: | ||
"nbi.21.05": | ||
url: "https://github.com/spdk/dpdk/archive/bad3c0e51d7a34e3188d75d94f15a36c8f5e8301.zip" | ||
sha256: "a0db10b41ab8cbfbc19acca517ee6ebb574885b964a02e649b16d084747ce2a6" | ||
patches: | ||
"nbi.21.05": | ||
- patch_file: "numa.patch" | ||
patch_type: "conan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sources: | ||
"nbi.3.28": | ||
url: "https://github.com/axboe/fio/archive/fio-3.28.tar.gz" | ||
sha256: "135a3455ab6e9251430bb1b12e97151daf4ff5d2d22e8472562c9998a753a04f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,45 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
from conan import ConanFile | ||
from conan.tools.gnu import Autotools, AutotoolsToolchain | ||
from conan.tools.files import get, copy | ||
from os.path import join | ||
|
||
from conans import ConanFile, AutoToolsBuildEnvironment | ||
from conans import tools | ||
import os | ||
required_conan_version = ">=1.60.0" | ||
|
||
class LibFIOConan(ConanFile): | ||
name = "fio" | ||
version = "3.28" | ||
description = "Flexible IO Kit" | ||
url = "https://github.corp.ebay.com/conan/fio" | ||
homepage = "https://github.com/axboe/fio" | ||
license = "GPL-2" | ||
exports = ["arch.patch", "rm_raw.patch"] | ||
settings = "os", "arch", "compiler" | ||
options = { | ||
"native_build": [True, False], | ||
"native_build": ['True', 'False'], | ||
} | ||
default_options = ( | ||
"native_build=False", | ||
) | ||
source_subfolder = "source_subfolder" | ||
default_options = { | ||
"native_build": False, | ||
} | ||
|
||
def configure(self): | ||
del self.settings.compiler.libcxx | ||
|
||
def source(self): | ||
tools.get("{0}/archive/fio-{1}.tar.gz".format(self.homepage, self.version)) | ||
os.rename("%s-%s-%s" % (self.name, self.name, self.version), self.source_subfolder) | ||
# tools.patch(strip=0, base_path=self.source_subfolder, patch_file="arch.patch") | ||
# tools.patch(strip=0, base_path=self.source_subfolder, patch_file="rm_raw.patch") | ||
get(self, **self.conan_data["sources"][self.version], strip_root=True) | ||
|
||
def build(self): | ||
autotools = AutoToolsBuildEnvironment(self) | ||
cargs = [] | ||
def generate(self): | ||
tc = AutotoolsToolchain(self) | ||
tc.configure_args = [] | ||
if not self.options.native_build: | ||
cargs.append("--disable-native") | ||
env_vars = autotools.vars | ||
with tools.environment_append(env_vars): | ||
with tools.chdir(self.source_subfolder): | ||
autotools.configure(args=cargs) | ||
autotools.make() | ||
tc.configure_args.append("--disable-native") | ||
tc.generate() | ||
|
||
def build(self): | ||
autotools = Autotools(self) | ||
autotools.configure() | ||
autotools.make() | ||
|
||
def package(self): | ||
self.copy("fio", dst="bin", src="{}/".format(self.source_subfolder), keep_path=False) | ||
self.copy("*.h", dst="include/fio", src="{}/".format(self.source_subfolder), keep_path=True) | ||
copy(self, "fio", self.build_folder, join(self.package_folder, "bin"), keep_path=False) | ||
copy(self, "*.h", self.source_folder, dst=join(self.package_folder, "include/fio"), keep_path=True) | ||
|
||
def deploy(self): | ||
self.copy("fio", dst="/usr/local/bin/", src="bin") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
sources: | ||
"nbi.0.0.5": | ||
url: "https://github.com/pistacheio/pistache/archive/refs/tags/0.0.5.tar.gz" | ||
sha256: "e2da87ebc01367e33bd8d7800cb2bf5c23e9fb4e6f49dce2cab5f8756df8dca0" | ||
"cci.20240107": | ||
url: "https://github.com/pistacheio/pistache/archive/1c733a145b01a4737cf5c7dd3709bd85be404886.tar.gz" | ||
sha256: "156d2a4503be3d6c0726009c83e6d2e6e2e6378e6136436fc2d82d13597b6b0b" | ||
"cci.20201127": | ||
url: "https://github.com/pistacheio/pistache/archive/a3c5c68e0f08e19331d53d12846079ad761fe974.tar.gz" | ||
sha256: "f1abb9e43ff847ebff8edb72623c9942162df134bccfb571af9c7817d3261fae" | ||
patches: | ||
"nbi.0.0.5": | ||
- patch_file: "patches/0.0.5-0001-include-cstdint.patch" | ||
patch_description: "include <stddef>" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/pistacheio/pistache/pull/1142" | ||
"cci.20201127": | ||
- patch_file: "patches/cci.20201127-0001-remove-fpic.patch" | ||
patch_description: "disable fPIC" | ||
patch_type: "conan" | ||
- patch_file: "patches/cci.20201127-0002-include-stddef.patch" | ||
patch_description: "include <stddef>" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/pistacheio/pistache/pull/965" | ||
- patch_file: "patches/cci.20201127-0003-include-cstdint.patch" | ||
patch_description: "include <stddef>" | ||
patch_type: "portability" | ||
patch_source: "https://github.com/pistacheio/pistache/pull/1142" |
Oops, something went wrong.