Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 828658 - net-misc/openntpd-6.2_p3-r2 wrong patch ordering
Summary: net-misc/openntpd-6.2_p3-r2 wrong patch ordering
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paul B. Henson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-10 03:11 UTC by Étienne Buira
Modified: 2023-09-26 18:38 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,78.80 KB, text/x-log)
2023-09-26 14:19 UTC, Étienne Buira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Étienne Buira 2021-12-10 03:11:01 UTC
Build failure:
../ylwrap: line 175: yacc: command not found
make[1]: *** [Makefile:736: parse.c] Error 127
make[1]: *** Waiting for unfinished jobs....
util.c: In function 'print_rtable':
util.c:141:48: warning: '%d' directive output may be truncated writing between 1 and 10 bytes into a region of size 4 [-Wformat-truncation=]
  141 |                 snprintf(b, sizeof(b), "rtable %d", r);
      |                                                ^~
util.c:141:40: note: directive argument in the range [1, 2147483647]
  141 |                 snprintf(b, sizeof(b), "rtable %d", r);
      |                                        ^~~~~~~~~~~
In file included from /usr/include/stdio.h:866,
                 from ../include/stdio.h:6,
                 from util.c:21:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 9 and 18 bytes into a destination of size 11
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
ntpd.c: In function 'show_peer_msg':
ntpd.c:868:56: warning: '__builtin___snprintf_chk' output may be truncated before the last format character [-Wformat-truncation=]
  868 |                 snprintf(stratum, sizeof(stratum), "%2u", cpeer->stratum);
      |                                                        ^
In file included from /usr/include/stdio.h:866,
                 from ../include/stdio.h:6,
                 from ntpd.c:30:
/usr/include/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 3 and 4 bytes into a destination of size 3
   71 |   return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   72 |                                    __glibc_objsize (__s), __fmt,
      |                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   73 |                                    __va_arg_pack ());
      |                                    ~~~~~~~~~~~~~~~~~
make[1]: Leaving directory '/var/tmp/portage/net-misc/openntpd-6.2_p3-r2/work/openntpd-6.2p3/src'
make: *** [Makefile:401: all-recursive] Error 1
 * ERROR: net-misc/openntpd-6.2_p3-r2::gentoo failed (compile phase):
 *   emake failed
 * 


Reproducible: Always

Steps to Reproduce:
1. emerge openntpd where yacc is unavailable
Actual Results:  
build failure

Expected Results:  
virtual/yacc should be in BDEPEND and build should success
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-10 03:54:12 UTC
Please include the full build.log and emerge --info. It seems to emerge fine when I move bison away and I can't see it calling it?
Comment 2 Étienne Buira 2021-12-10 16:15:00 UTC
Thanks Sam, i shall do this test first, it worked, please apologise for the noise.

To be more precise, configure script checks for yacc availability. But i noticed after this box was in weird state.
Comment 3 Étienne Buira 2023-09-26 14:15:45 UTC
Got biten by this again, this looks like caused by patching of .y file.

emerge --info:
Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-12, glibc-2.37-r3, 6.1.46-gentoo x86_64)
=================================================================
System uname: Linux-6.1.46-gentoo-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-glibc2.37
KiB Mem:    12278152 total,   8665160 free
KiB Swap:   20971516 total,  20971516 free
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/python:           3.11.5::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: gitolite@gitolite:mirror/gentoo/gentoo.git
    sync-user: portage
    priority: 500
    volatile: False

localgentoo
    location: /var/db/repos/localgentoo
    sync-type: git
    sync-uri: gitolite@gitolite:gentoo/overlay/localgentoo.git
    sync-user: portage
    masters: gentoo
    priority: 1000
    volatile: True

Installed sets: @monitoring, @networked_host, @routing, @sysadm, @sysutils
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe  -march=znver2 -fstack-protector-all"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe  -march=znver2 -fstack-protector-all"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles http://gentoo.modulix.net/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
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 amd64 bzip2 cet cli crypt dri fortran gdbm hardened iconv libtirpc ncurses nptl openmp pam pcre pie readline seccomp split-usr ssl ssp test-rust unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2021" 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_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LANG, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SHELL, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 4 Étienne Buira 2023-09-26 14:19:24 UTC
Created attachment 871482 [details]
build.log
Comment 5 Étienne Buira 2023-09-26 14:51:33 UTC
Swapping patching of .y and .c does the trick without needing yacc