ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@altlinux.org>
To: ALT Devel discussion list <devel@lists.altlinux.org>
Subject: Re: [devel] sys/sysmacros.h
Date: Tue, 12 Nov 2019 00:00:23 +0300
Message-ID: <20191111210023.GE8903@altlinux.org> (raw)
In-Reply-To: <20191111204601.GA29775@altlinux.org>

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

On Mon, Nov 11, 2019 at 11:46:01PM +0300, Alexey V. Vissarionov wrote:
> On 2019-11-11 20:43:01 +0300, Gleb Fotengauer-Malinovskiy 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.  А если у вас glibc, значит, <sys/sysmacros.h> доступен,
начиная с версии 2.25, и его неиспользование в такой ситуации до версии
2.28 порождает предупреждение, а начиная с 2.28 - ошибку.

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


-- 
ldv

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

  reply	other threads:[~2019-11-11 21:00 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     ` Dmitry V. Levin [this message]
2019-11-11 21:08       ` [devel] sys/sysmacros.h Dmitry V. Levin
2019-11-11 21:10       ` Alexey V. Vissarionov
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=20191111210023.GE8903@altlinux.org \
    --to=ldv@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