[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

заголовочные файлы *.h в пакете



Доброе утро, All.

Собираю в пакет sphinx (AKA: http://www.sphinxsearch.com/downloads.html) .
Пакет-то собирается (бинарные файлы в него кладутся, устанавливаются
куда положено и т.п.), собираю я его так (понимаю, что топорно):

$ dh_make --createorig --cdbs

debian/rules -- минимальный для autoconf/automake-a:
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

$dpkg-buildpackage -B

Я хочу положить в пакет ещё несколько заголовочных файлов,
чтоб ставились в /usr/include/... , и здесь начинается интересное.

Мануал (http://kambing.ui.ac.id/gnuftp/pub/old-gnu/Manuals/automake-1.6.1/html_chapter/automake_13.html#SEC63
, например)
уверяет нас, что:

13.1 Basics of installation
[...] For instance, you might have a number of header files in
subdirectories of the source tree which are laid out precisely how you
want to install them. In this situation you can use the `nobase_'
prefix to suppress the base name step. For example:

nobase_include_HEADERS = stdio.h sys/types.h
Will install `stdio.h' in $(includedir) and `types.h' in $(includedir)/sys.

Отлично, я беру Makefile.am того, что я собираю, и дописываю туда

includedir = /usr/include
nobase_include_HEADERS = sphinx/sphinx.h sphinx/md5.h

И пытаюсь собрать пакет. Пакет собирается, но в нём:
(фрагмент $ dpkg -c sphinx_0.9.9-1_amd64.deb)
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinxexcerpt.h/
-rw-r--r-- root/root      2977 2010-07-12 17:21
./usr/include/sphinxexcerpt.h/sphinxexcerpt.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinxint.h/
-rw-r--r-- root/root     11727 2010-06-30 14:17
./usr/include/sphinxint.h/sphinxint.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinxfilter.h/
-rw-r--r-- root/root      1822 2010-06-21 13:45
./usr/include/sphinxfilter.h/sphinxfilter.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinxexpr.h/
-rw-r--r-- root/root      1884 2010-06-21 13:45
./usr/include/sphinxexpr.h/sphinxexpr.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/md5.h/
-rw-r--r-- root/root      3390 2010-06-21 13:45 ./usr/include/md5.h/md5.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinx.h/
-rw-r--r-- root/root     75107 2010-07-12 17:21 ./usr/include/sphinx.h/sphinx.h
drwxr-xr-x root/root         0 2010-07-16 14:20 ./usr/include/sphinxquery.h/
-rw-r--r-- root/root      5514 2010-06-21 13:45
./usr/include/sphinxquery.h/sphinxquery.h

Т.е. оно почему-то делает для каждого хедера директорию с таким же именем.

Я, разумеется, хочу, чтобы оно клало заголовочные файлы в /usr/include/sphinx
(ну или хоть бы даже просто в /usr/include, но не так, как выше).

include_HEADERS = sphinx.h md5.h
картину не меняет, делает ровно то же самое.

Куда копать? Как чинить? Кто вообще неправ и кладёт файлы не туда -
automake или dpkg-buildpackage?

Я, кажется, знаю workaround - написать debian/sphinx.install , но
хочется как-то обойтись.

-- 
Ольга Цаун.

Reply to: