mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 01:12:57 +02:00
python-satsolver: New package.
Only initial commit - package doesn't build atm - needs fixing. Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
8b55665f73
commit
bb1f4afa7a
27
src/patches/python-satsolver-only-python-bindings.patch
Normal file
27
src/patches/python-satsolver-only-python-bindings.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff -Nur old/bindings/CMakeLists.txt new/bindings/CMakeLists.txt
|
||||
--- old/bindings/CMakeLists.txt 2011-04-11 22:51:37.891109001 +0200
|
||||
+++ new/bindings/CMakeLists.txt 2011-04-11 22:55:52.859108992 +0200
|
||||
@@ -21,17 +21,17 @@
|
||||
#FIND_PACKAGE(PerlLibs)
|
||||
FIND_PACKAGE(Perl)
|
||||
|
||||
-IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
- ADD_SUBDIRECTORY(ruby)
|
||||
-ENDIF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
+#IF (RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
+# ADD_SUBDIRECTORY(ruby)
|
||||
+#ENDIF(RUBY_LIBRARY AND RUBY_INCLUDE_PATH)
|
||||
|
||||
IF (PYTHON_LIBRARY)
|
||||
ADD_SUBDIRECTORY(python)
|
||||
ENDIF(PYTHON_LIBRARY)
|
||||
|
||||
-IF (PERL_EXECUTABLE)
|
||||
- ADD_SUBDIRECTORY(perl)
|
||||
-ENDIF (PERL_EXECUTABLE)
|
||||
+#IF (PERL_EXECUTABLE)
|
||||
+# ADD_SUBDIRECTORY(perl)
|
||||
+#ENDIF (PERL_EXECUTABLE)
|
||||
|
||||
SET(bindings_devel_dir "${CMAKE_CURRENT_BINARY_DIR}/satsolver-bindings")
|
||||
ADD_CUSTOM_COMMAND (
|
||||
37
src/patches/python-satsover-fix-building-without-rpm.patch
Normal file
37
src/patches/python-satsover-fix-building-without-rpm.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
diff -Nur src/bindings/pool.i sat-solver-bindings/bindings/pool.i
|
||||
--- src/bindings/pool.i 2011-04-25 12:03:31.000000000 +0000
|
||||
+++ sat-solver-bindings/bindings/pool.i 2011-04-29 18:40:59.645929695 +0000
|
||||
@@ -474,6 +474,7 @@
|
||||
return repo;
|
||||
}
|
||||
|
||||
+#if defined(FEDORA)
|
||||
/*
|
||||
* Add RPM database to Pool.
|
||||
*
|
||||
@@ -493,6 +494,7 @@
|
||||
repo_add_rpmdb( repo, NULL, rootdir, 0 );
|
||||
return repo;
|
||||
}
|
||||
+#endif
|
||||
|
||||
%newobject create_repo;
|
||||
/*
|
||||
diff -Nur src/bindings/repo.i sat-solver-bindings/bindings/repo.i
|
||||
--- src/bindings/repo.i 2011-04-25 12:03:31.000000000 +0000
|
||||
+++ sat-solver-bindings/bindings/repo.i 2011-04-29 18:37:13.856570319 +0000
|
||||
@@ -139,11 +139,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
+#if defined(FEDORA)
|
||||
/*
|
||||
* Add RPM database, optionally passing a _root_ directory
|
||||
*/
|
||||
void add_rpmdb( const char *rootdir )
|
||||
{ repo_add_rpmdb( $self, NULL, rootdir, 0); }
|
||||
+#endif
|
||||
|
||||
/*
|
||||
* Create solvable with +name+ and +evr+ in the Repo
|
||||
|
||||
Reference in New Issue
Block a user