SPEC: pvpgn
Piotr Skwarna
spider w linux.pl
Czw, 18 Sie 2005, 11:09:27 CEST
Gdy w specu jest tylko i wylacznie standardowe %configure, make, make
install, to spec kompiluje sie i dziala.
Natomiast zgodnie z tym co pokazuje ./configure --help
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-warn enable compiler warnings
--with-ansi use ANSI C mode
--with-includes=DIR search include DIR for header files
--with-libraries=DIR search library DIR for libraries
--with-efence link with Electric Fence to find memory problems
--with-mysql include MySQL user accounts support
--with-pgsql include PostgreSQL user accounts support
--with-mssql include MSSQL user accounts support (requires
FreeTDS includes/libs)
--with-sqlite3 include SQLite3 user accounts support
--with-odbc include ODBC user accounts support
postanowilem dodac dodatkowe flagi
Dodalem,
# Conditional build:
%bcond_with efence # link with Electric Fence to find
memory problems
%bcond_with mysql # include MySQL user accounts support
%bcond_with pgsql # include PostgreSQL user accounts suppor
%bcond_with sqlite3 # include SQLite3 user accounts support
oraz
%configure \
%{!?with_efence:--with-efence} \
%{!?with_mysql:--with-mysql} \
%{!?with_pgsql:--with-pgsql} \
%{!?with_sqlite3:--with-sqlite3}
z (mojego) loginczego punktu widzenia jesli nie podac zadnych flag
(czyli bez zadnych --with) to powinno byc byc zwykle configure bez
zadnych opcji tak jak bylo na poczatku, a tym czasem:./builder -bb
pvpgn.spec
checking for mysql include path... found in /usr/include/mysql
checking for mysql_init in -lmysqlclient... no
checking for mysql lib path... checking for mysql_close in
-lmysqlclient... no
configure: error: not found, please install the MySQL libraries
błąd: Błędny status wyjścia z /var/tmp/rpm-tmp.53380 (%build)
Co robie źle ?
Więcej informacji o liście dyskusyjnej pld-devel-pl