ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] sys/sysmacros.h
Date: Tue, 12 Nov 2019 00:10:03 +0300
Message-ID: <20191111211002.GB29775@altlinux.org> (raw)
In-Reply-To: <20191111210023.GE8903@altlinux.org>

[-- Attachment #1: Type: text/plain, Size: 1421 bytes --]

On 2019-11-12 00:00:23 +0300, Dmitry V. Levin wrote:

 >>> В связи с ...
 >>>> #40 build 2.30-alt1 from /people/glebfm/packages/glibc.git
 >>> ... некоторое количество пакетов перестало собираться:
 >>>> sysvinit-2.88-alt5
 >> Этого поправил (240584 eperm).
 >>> * The macros 'major', 'minor', and 'makedev' are now only
 >>> available from the header <sys/sysmacros.h>; not from
 >>> <sys/types.h>
 >> Собственно, само исправление выглядит просто и незатейливо:
 >> #if __GLIBC_PREREQ(2,30)
 >> #include <sys/sysmacros.h>
 >> #endif
 > Нет, если вы используете __GLIBC_PREREQ, значит, вы рассчитываете
 > на то, что у вас glibc.

Можно удариться в формальности и проверять сначала #ifdef __GLIBC__,
потом #if (__GLIBC__ == 2), и только потом __GLIBC_PREREQ... только
смысла в этом не сильно много. Выбор-то невелик: либо glibc, либо
хрен пойми какая экзотика.

 > А если у вас glibc, значит, <sys/sysmacros.h> доступен, начиная
 > с версии 2.25, и его неиспользование в такой ситуации до версии
 > 2.28 порождает предупреждение, а начиная с 2.28 - ошибку.

Значит, #if __GLIBC_PREREQ(2,25)

 > Спасибо, конечно, за помощь, но это сейчас не самый нуждающийся
 > пакет.

В приведенном списке он был единственным реально важным.


-- 
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

  parent reply	other threads:[~2019-11-11 21:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-11 17:43 ` [devel] I: glibc 2.30 Gleb Fotengauer-Malinovskiy
2019-11-11 20:46   ` Alexey V. Vissarionov
2019-11-11 21:00     ` [devel] sys/sysmacros.h Dmitry V. Levin
2019-11-11 21:08       ` Dmitry V. Levin
2019-11-11 21:10       ` Alexey V. Vissarionov [this message]
2019-11-11 22:16     ` [devel] I: glibc 2.30 Sergey Y. Afonin

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=20191111211002.GB29775@altlinux.org \
    --to=gremlin@altlinux.org \
    --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