Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 682624 - sys-apps/systemd-241-r1: ../systemd-241/src/basic/build.h:4:10: fatal error: version.h: No such file or directory
Summary: sys-apps/systemd-241-r1: ../systemd-241/src/basic/build.h:4:10: fatal error: ...
Status: RESOLVED DUPLICATE of bug 677178
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-04-05 20:31 UTC by Alexander Tsoy
Modified: 2019-06-19 15:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
systemd-241-r1:20190405-183133.log.gz (systemd-241-r1:20190405-183133.log.gz,22.71 KB, application/gzip)
2019-04-05 20:31 UTC, Alexander Tsoy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Tsoy 2019-04-05 20:31:11 UTC
Created attachment 572000 [details]
systemd-241-r1:20190405-183133.log.gz

Fails to build with the following error:

...
In file included from ../systemd-241/src/test/test-cgroup-util.c:4:
../systemd-241/src/basic/build.h:4:10: fatal error: version.h: No such file or directory
 #include "version.h"
          ^~~~~~~~~~~
compilation terminated.
...


I guess we need the following commit:
https://github.com/systemd/systemd/commit/60722ad778d005790231038eecc4ba3034c1a0fc


# emerge --info systemd

!!! Your current profile is deprecated and not supported anymore.
!!! Use eselect profile to update your profile.
!!! Please upgrade to the following profile if possible:

        default/linux/arm/17.0/armv7a

You may use the following command to upgrade:

        eselect profile set default/linux/arm/17.0/armv7a

Portage 2.3.62 (python 3.6.5-final-0, hardened/linux/arm/armv7a, gcc-8.3.0, glibc-2.28-r5, 4.19.33-gentoo armv7l)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.19.33-gentoo-armv7l-AMD_Opteron-tm-_Processor_4332_HE-with-gentoo-2.6
KiB Mem:    32984040 total,  26175280 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Fri, 05 Apr 2019 06:30:01 +0000
Head commit of repository gentoo: 8b76cdbf751cc93117ee7abc067177ac84e9cff2
Head commit of repository puleglot: 2e49b4cdf8d1ed4d067f95eeed902cd5916a1547

sh dash 0.5.9.1-r3
ld GNU ld (Gentoo 2.30 p5) 2.30.0
distcc 3.3.2 armv7a-unknown-linux-gnueabihf [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-lang/perl:            5.26.2::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.5::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.30-r4::gentoo
sys-devel/gcc:            8.3.0::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://puleglot.ru/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes

puleglot
    location: /var/db/repos/puleglot
    sync-type: git
    sync-uri: https://puleglot.ru/git/gentoo/puleglot-overlay.git
    masters: gentoo
    priority: 900

local
    location: /usr/local/portage
    masters: gentoo
    priority: 1000

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-unknown-linux-gnueabihf"
CFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -pipe"
CHOST="armv7a-unknown-linux-gnueabihf"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--dynamic-deps=n --with-bdeps=y --binpkg-respect-use=y --ask-enter-invalid"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync xattr"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://distfiles.gentoo.org/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
PKGDIR="/var/cache/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl aio alsa arm armv5te armv6 armv6t2 avahi bash-completion berkdb bzip2 caps cli crypt cxx dbus dri flac gdbm gpm hardened iconv idn ipv6 lz4 lzma mp3 ncurses neon nls nptl ogg openmp pam pcre pic pie pulseaudio readline sasl seccomp ssl ssp systemd tls udev unicode urandom vim-syntax vorbis xattr xtpax xz zeroconf zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-1" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/systemd-239-r4::gentoo was built with the following:
USE="acl gcrypt idn kmod lz4 lzma pam pcre resolvconf seccomp split-usr ssl sysv-utils (-apparmor) (-audit) -build -cryptsetup -curl -elfutils (-gnuefi) -http -importd -libidn2 -nat -policykit -qrcode (-selinux) -test -vanilla -xkb"
Comment 1 Larry the Git Cow gentoo-dev 2019-04-05 20:56:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91b78b35cbcba29071c641afa477c333c88d1938

commit 91b78b35cbcba29071c641afa477c333c88d1938
Author:     Mike Gilbert <floppym@gentoo.org>
AuthorDate: 2019-04-05 20:56:15 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-04-05 20:56:15 +0000

    sys-apps/systemd: backport version.h dependency fix
    
    Closes: https://bugs.gentoo.org/682624
    Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 sys-apps/systemd/files/241-version-dep.patch | 111 +++++++++++++++++++++++++++
 sys-apps/systemd/systemd-241-r1.ebuild       |   1 +
 2 files changed, 112 insertions(+)
Comment 2 Alexander Tsoy 2019-04-05 21:38:56 UTC
Sorry, I was too hasty. :( The following is also needed:
https://github.com/systemd/systemd/commit/416d7d4648cafe27da3e9644152d98081df3deaa

Now I verified that with both patches applied systemd builds fine.
Comment 3 Alexander Tsoy 2019-06-19 15:41:37 UTC

*** This bug has been marked as a duplicate of bug 677178 ***