ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Lubimov" <avl@l14.ru>
To: ALT Devel discussion list <devel@altlinux.ru>
Subject: Re: [devel] kernel & libdb
Date: Sat, 21 Jun 2003 11:26:44 +0400
Message-ID: <3EF408B4.5010909@l14.ru> (raw)
In-Reply-To: <1056173090.2368.131.camel@pc_asbel.office.sice.ru>

Alexander S. Belov пишет:

>В Сбт, 21.06.2003, в 11:24, Alexander S. Belov пишет:
>
>  
>
>>Соотв. если исправить эту строчку в Makefile на 
>>AICASM_CFLAGS:= -I/usr/include -I. -ldb2
>>
>>и в spec'е добавить
>>
>>BuildRequires: coreutils libdb4.0-devel perl flex bin86 libdb2-devel
>>
>>ИМНО будет счастье или я что-то не понимаю...
>>    
>>
>
>Еще немного поглядел на это чудо:
>
>Вот кусок из Makefile, где создается aicdb.h:
>
>aicdb.h:
>        @if [ -e "/usr/include/db3/db_185.h" ]; then            \
>                echo "#include <db3/db_185.h>" > aicdb.h;       \
>         elif [ -e "/usr/include/db2/db_185.h" ]; then          \
>                echo "#include <db2/db_185.h>" > aicdb.h;       \
>         elif [ -e "/usr/include/db/db_185.h" ]; then           \
>                echo "#include <db/db_185.h>" > aicdb.h;        \
>         elif [ -e "/usr/include/db_185.h" ]; then              \
>                echo "#include <db_185.h>" > aicdb.h;           \
>         else                                                   \
>                echo "*** Install db development libraries";    \
>         fi
>
>Ну и соотв. если его изменить на 
>
>aicdb.h:
>        @if [ -e "/usr/include/db4/db_185.h" ]; then            \
>                echo "#include <db4/db_185.h>" > aicdb.h;       \
>        elif [ -e "/usr/include/db3/db_185.h" ]; then            \
>                echo "#include <db3/db_185.h>" > aicdb.h;       \
>         elif [ -e "/usr/include/db2/db_185.h" ]; then          \
>                echo "#include <db2/db_185.h>" > aicdb.h;       \
>         elif [ -e "/usr/include/db/db_185.h" ]; then           \
>                echo "#include <db/db_185.h>" > aicdb.h;        \
>         elif [ -e "/usr/include/db_185.h" ]; then              \
>                echo "#include <db_185.h>" > aicdb.h;           \
>         else                                                   \
>                echo "*** Install db development libraries";    \
>         fi
>
>, т.е. добавить проверку на наличие /usr/include/db4/db_185.h, то все
>будет ОК, но это untested.
>
>
>_______________________________________________
>Devel mailing list
>Devel@altlinux.ru
>http://altlinux.ru/mailman/listinfo/devel
>  
>

и посмотреть на патчик в пакете kernel-fix-build-2003.04.23

--- linux/drivers/scsi/aic7xxx/aicasm/Makefile.orig     Sat May  5 00:16:28 2001                                                            +++ linux/drivers/scsi/aic7xxx/aicasm/Makefile  Wed Aug  1 16:18:24 2001                                                                    @@ -33,7 +33,9 @@                                                                                                                                   $(AICASM_CC) $(AICASM_CFLAGS) $(SRCS) -o $(PROG)                                                                                                                                                                                                                                 aicdb.h:                                                                                                                                   -       @if [ -e "/usr/include/db3/db_185.h" ]; then            \                                                                           +       @if [ -e "/usr/include/db4/db_185.h" ]; then            \                                                                           +               echo "#include <db4/db_185.h>" > aicdb.h;       \                                                                           +        elif [ -e "/usr/include/db3/db_185.h" ]; then          \                                                                                           echo "#include <db3/db_185.h>" > aicdb.h;       \                                                                                    elif [ -e "/usr/include/db2/db_185.h" ]; then          \                                                                                           echo "#include <db2/db_185.h>" > aicdb.h;       \                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               


и понять, что это давно уже сделано. :)

-- 
С уважением, Алексей Любимов avl@cad.ru



  reply	other threads:[~2003-06-21  7:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-21  4:24 Alexander S. Belov
2003-06-21  5:24 ` Alexander S. Belov
2003-06-21  7:26   ` Alexey V. Lubimov [this message]
2003-06-21  9:29 ` Albert R. Valiev
2003-06-21 10:22   ` Alexander S. Belov
2003-06-21 10:37     ` Alexey V. Lubimov
2003-06-24 10:29     ` [devel] " Sergey Vlasov
2003-06-24 21:52     ` [devel] " Диконов Вячеслав

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EF408B4.5010909@l14.ru \
    --to=avl@l14.ru \
    --cc=devel@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git