Displaying 13 results from an estimated 13 matches for "find_path".
2017 Apr 25
0
Re: [PATCH] appliance: reorder the steps to search for appliance
...tions(-)
>
> diff --git a/lib/appliance.c b/lib/appliance.c
> index f12918573..06ee06f71 100644
> --- a/lib/appliance.c
> +++ b/lib/appliance.c
> @@ -137,16 +137,6 @@ build_appliance (guestfs_h *g,
> CLEANUP_FREE char *path = NULL;
>
> /* Step (1). */
> - r = find_path (g, contains_supermin_appliance, NULL, &supermin_path);
> - if (r == -1)
> - return -1;
> -
> - if (r == 1)
> - /* Step (2): build supermin appliance. */
> - return build_supermin_appliance (g, supermin_path,
> - kernel, initrd...
2017 May 29
0
[PATCH] Add CMake build script
....
+# FFTW_LIBRARIES - List of libraries when using fftw.
+# FFTW_FOUND - True if fftw found.
+
+if(FFTW_INCLUDE_DIR)
+ # Already in cache, be silent
+ set(FFTW_FIND_QUIETLY TRUE)
+endif(FFTW_INCLUDE_DIR)
+
+find_package (PkgConfig QUIET)
+pkg_check_modules(PC_FFTW QUIET fftw3f)
+
+find_path(FFTW_INCLUDE_DIR fftw3.h HINTS ${PC_FFTW_INCLUDEDIR} ${PC_FFTW_INCLUDE_DIRS} ${FFTW_ROOT} PATH_SUFFIXES include)
+find_library(FFTW_LIBRARY NAMES fftw3f HINTS ${PC_FFTW_LIBDIR} ${PC_FFTW_LIBRARY_DIRS} ${FFTW_ROOT} PATH_SUFFIXES lib)
+# Handle the QUIETLY and REQUIRED arguments and set FFTW_FOUND
+#...
2017 Apr 27
0
Re: [PATCH] appliance: reorder the steps to search for appliance
...the fixed appliance in
> >/path/to/somewhere/else and use it. If the fixed appliance exists
> >there, then it would never check /usr/lib64/guestfs.
>
> It's a bit wrong, the first step is search supermin.d in all specified
> directories:
> /* Step (1). */
> r = find_path (g, contains_supermin_appliance, NULL, &supermin_path);
> if (r == -1)
> return -1;
>
> if (r == 1)
> /* Step (2): build supermin appliance. */
> return build_supermin_appliance (g, supermin_path,
> kernel, initrd, appli...
2018 Mar 23
0
check_include_file not respecting CMAKE_PREFIX_PATH
...cmake /home/andy/misc/bootstrap/llvm-6.0.0.src
-DCMAKE_PREFIX_PATH=/home/andy/misc/bootstrap/out/native
-DCMAKE_INSTALL_PREFIX=/home/andy/misc/bootstrap/out/native
-DCMAKE_BUILD_TYPE=Release
-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly; \
-- Looking for zlib.h - not found
I propose to use find_path and find_library instead of check_include_file.
Shall I submit a patch?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180323/99c595de/attachment.html>
2010 Jun 18
1
[LLVMdev] export of CMake project
...INATION lib${LLVM_LIBDIR_SUFFIX}
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
...
At the end of the main CMakeLists.txt we need to install the LLVM export
file:
# install LLVM package
install(EXPORT LLVM DESTINATION cmake)
In my own project I just need to do the following:
# import llvm
find_path(LLVM_CMAKE_DIR llvm.cmake)
include(${LLVM_CMAKE_DIR}/llvm.cmake)
...
# set dependencies
target_link_libraries(MyProjectUsingLLVM
LLVMSupport
LLVMSystem
... all llvm and cmake libs ...
)
-Jochen
-- here the patch for llvm --
Index: cmake/modules/AddLLVM.cmake
=================================...
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...gt; - struct data_conn data_conns[nr_disks];
> + CLEANUP_FREE struct data_conn *data_conns;
Missing "= NULL" here.
> diff --git a/src/appliance.c b/src/appliance.c
> index dbde35e..d7cc60b 100644
> --- a/src/appliance.c
> +++ b/src/appliance.c
> @@ -396,27 +386,24 @@ find_path (guestfs_h *g,
>
> /* Returns true iff file is contained in dir. */
> static int
> -dir_contains_file (const char *dir, const char *file)
> +dir_contains_file (guestfs_h *g, const char *dir, const char *file)
> {
> - size_t dirlen = strlen (dir);
> - size_t filelen =...
2012 Jul 21
8
[PATCH libguestfs 0/4] Add a libvirt backend to libguestfs.
This preliminary patch series adds a libvirt backend to libguestfs.
It's for review only because although it launches the guest OK, there
are some missing features that need to be implemented.
The meat of the patch is in part 4/4.
To save you the trouble of interpreting libxml2 fragments, an example
of the generated XML and the corresponding qemu command line are
attached below. Note the
2016 Jul 22
1
[PATCH] static const char *str -> static const char str
...nitramfs." host_cpu ".img";
+static const char kernel_name[] = "vmlinuz." host_cpu;
+static const char initrd_name[] = "initramfs." host_cpu ".img";
static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance);
static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem);
diff --git a/test-tool/test-tool.c b/test-tool/test-tool.c
index ad1601c..a5297ba 100644
--- a/test-tool/test-tool.c
+++ b/test-tool/test-tool.c
@@ -78,7 +78,7 @@ main (int argc, char *argv[])
bi...
2016 Mar 07
2
[PATCH v2] Use less stack.
...b/src/appliance.c
index dbde35e..d7cc60b 100644
--- a/src/appliance.c
+++ b/src/appliance.c
@@ -39,8 +39,8 @@ static const char *initrd_name = "initramfs." host_cpu ".img";
static int build_appliance (guestfs_h *g, char **kernel, char **initrd, char **appliance);
static int find_path (guestfs_h *g, int (*pred) (guestfs_h *g, const char *pelem, void *data), void *data, char **pelem);
-static int dir_contains_file (const char *dir, const char *file);
-static int dir_contains_files (const char *dir, ...);
+static int dir_contains_file (guestfs_h *g, const char *dir, const char *fi...
2013 Sep 06
1
[PATCH] arm: appliance: Add support for device trees (dtb's).
This is the libguestfs companion patch to:
https://www.redhat.com/archives/libguestfs/2013-September/msg00045.html
Rich.
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.
2014 Feb 13
3
Libguestfs (1.22.6) driver/changes for mingw/win32
Hi,
I attached the changes I made to a vanilla libguestfs-1.22.6 in order to
make it work in mingw/win32.
Added is also the patch required to make QEMU compatible (add a command to
QMP that lists the supported devices (the regilat way you do it print it to
stderr, which is difficult to redirect in win32)).
This is done on behalf of Intel Corp.
Thanks,
Or (oberon in irc)
2006 Mar 03
10
CiscoWorks 2.5 Install on Solaris 10
I''m trying to install CiscoWorks 2.5 on Solaris 10 update 1, and after
the install when I try to start the daemon, it errors:
# /opt/CSCOpx/objects/dmgt/dmgtd.sol
ERROR: open file dmgtd failedERROR >>>>>>>>>>>>> open msg catalog
failed. NLSPATH incorrect or objects/share/nls/C/dmgtd.cat is missing.
# echo $NLSPATH