ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Мидюков Антон" <midyukov-anton@yandex.ru>
To: devel@lists.altlinux.org
Subject: Re: [devel] aarch64 и /usr/include/sys/io.h
Date: Sun, 1 Jul 2018 22:23:24 +0700
Message-ID: <eb114ff7-4c17-cbfb-fb3d-aad36503af94@yandex.ru> (raw)
In-Reply-To: <20180701113540.GC30529@altlinux.org>

01.07.2018 18:35, Dmitry V. Levin пишет:
> On Sun, Jul 01, 2018 at 05:16:10PM +0700, Антон Мидюков wrote:
>> 30.06.2018 23:12, Dmitry V. Levin пишет:
>>> On Sat, Jun 30, 2018 at 11:06:15PM +0700, Антон Мидюков wrote:
>>>> Здравствуйте!
>>>>
>>>> Подскажите, пожалуйста, почему в glibc-devel для aarch64 отсутствует
>>>> /usr/include/sys/io.h? И что делать с пакетами, которым этот
>>>> заголовочный файл нужен для сборки? У меня это linuxcnc.
>>> <sys/io.h> существует для весьма небольшого числа архитектур:
>>> alpha, arm, ia64, x86, x86-64.
>>> Для всех остальных архитектур этого файла нет и не будет.
>> Точно. Спасибо.
>>> Если софт использует этот файл, то, возможно, его нет смысла собирать
>>> на всех архитектурах.
>>>
>> Я нашёл в апстриме патч, делающий зависимость от <sys/io.h> необязательной.
> Насколько осмысленный код получается в результате применения этого
> апстримного патча?
Усекаются некоторые возможности, вместо них заглушки.
Например, вместо порта возвращается 0:

  unsigned char Posix::do_inb(unsigned int port)
  {
+#ifdef HAVE_SYS_IO_H
      return inb(port);
+#else
+    return 0;
+#endif
  }

-- 
С уважением Антон Мидюков <antohami@altlinux.org>



  reply	other threads:[~2018-07-01 15:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-30 16:06 Антон Мидюков
2018-06-30 16:12 ` Dmitry V. Levin
2018-07-01 10:16   ` Антон Мидюков
2018-07-01 11:35     ` Dmitry V. Levin
2018-07-01 15:23       ` Мидюков Антон [this message]
2018-07-01 15:36         ` Мидюков Антон
2018-07-01 15:59           ` Dmitry V. Levin
2018-07-01 22:16             ` Alexey V. Vissarionov
2018-07-04  6:50             ` Антон Мидюков

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=eb114ff7-4c17-cbfb-fb3d-aad36503af94@yandex.ru \
    --to=midyukov-anton@yandex.ru \
    --cc=devel@lists.altlinux.org \
    /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