Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 448822 - gnome2-utils.eclass: gnome2_disable_deprecation_warning(): should not add $(NULL) to configure (was: gnome-base/nautilus-3.6.3 - ./configure: line 16204: NULL: command not found)
Summary: gnome2-utils.eclass: gnome2_disable_deprecation_warning(): should not add $(N...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: NeedPatch
: 566202 (view as bug list)
Depends on:
Blocks: gnome2.eclass
  Show dependency tree
 
Reported: 2012-12-27 12:41 UTC by iGentoo
Modified: 2016-01-30 09:49 UTC (History)
3 users (show)

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


Attachments
nautilus-3.6.3-build.log (nautilus-3.6.3-build.log,563.42 KB, text/plain)
2012-12-27 12:41 UTC, iGentoo
Details
/var/tmp/portage/gnome-base/nautilus-3.6.3/work/nautilus-3.6.3/configure (configure,546.02 KB, text/plain)
2012-12-27 12:46 UTC, iGentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iGentoo 2012-12-27 12:41:40 UTC
Created attachment 333470 [details]
nautilus-3.6.3-build.log

build log:
>>> Preparing source in /var/tmp/portage/gnome-base/nautilus-3.6.3/work/nautilus-3.6.3 ...
 * Applying nautilus-3.5.91-delete.patch ...                                                                        [ ok ]
 * Fixing OMF Makefiles ...                                                                        [ ok ]
 * Disabling deprecation warnings ...                                                                        [ ok ]
 * Running elibtoolize in: nautilus-3.6.3/
 *   Applying portage/1.2.0 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.4.2 patch ...
>>> Source prepared.
...
checking for more warnings... no
checking for BASE... yes
checking for COMMON... yes
checking for NAUTILUS... yes
./configure: line 16204: NULL: command not found
./configure: line 16204: NULL: command not found
./configure: line 16204: NULL: command not found
./configure: line 16204: NULL: command not found
checking X11/XF86keysym.h usability... yes
checking X11/XF86keysym.h presence... yes
checking for X11/XF86keysym.h... yes
checking for gobject-introspection... yes
...




/var/tmp/portage/gnome-base/nautilus-3.6.3/work/nautilus-3.6.3/configure:
16200 
16201 
16202 
16203   
16204 DISABLE_DEPRECATED_CFLAGS="$(NULL) $(NULL) $(NULL) $(NULL)"
16205   
16206   



# emerge --info nautilus
Portage 2.2.0_alpha149 (hardened/linux/amd64/selinux, gcc-4.7.2, glibc-2.16.0, 3.7.1-pax.x86_64 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.7.1-pax.x86_64-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9300_@_2.50GHz-with-gentoo-2.2
Timestamp of tree: Thu, 27 Dec 2012 11:15:01 +0000
ld GNU gold (GNU Binutils 2.23.1) 1.11
ccache version 3.1.8 [disabled]
app-shells/bash:          4.2_p39-r1
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2, 3.3.0-r1
dev-util/ccache:          3.1.8
dev-util/cmake:           2.8.10.2
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.6.3, 4.7.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.16.0
Repositories: gentoo systemd hardened-dev gnome custom
Installed sets: @local-protected
ACCEPT_KEYWORDS="amd64 x86 ~amd64 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/polkit-1/actions /var/bind"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"
CXXFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
DISTDIR="/usr/local/portage/distfiles"
FCFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms split-elog split-log splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-Wall -Wextra -gdwarf-4 -ggdb -march=native -pipe -O3 -fno-tree-vectorize -frecord-gcc-switches"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--icf=safe"
MAKEOPTS="V=1 -j10"
PKGDIR="/usr/local/portage/packages-amd64"
PORTAGE_BZIP2_COMMAND="lbzip2"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9ef"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--ipv4"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/systemd /var/lib/layman/hardened-development /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://mirrors.ustc.edu.cn/gentoo-portage"
USE="X acl alsa amd64 audit bash-completion berkdb bzip2 c++0x cairo caps cli cracklib crypt custom-cflags cxx dbus dri ffmpeg gdbm gmp gnome gpm gtk gtk3 hardened iconv icu ipv6 jit jpeg jpeg2k justify lzma mmx modules mudflap multilib ncurses nls nptl open_perms opengl openmp orc pam pax_kernel pcre png pppd pulseaudio qt4 readline selinux session sse sse2 ssl svg systemd tcpd threads tiff udev unicode urandom vim-syntax xattr xinetd zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DRACUT_MODULES="bootchart btrfs caps dmsquash-live gensplash livenet lvm nfs ssh-client syslog systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US zh zh_CN" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2 python3_3" QEMU_SOFTMMU_TARGETS="x86_64 arm mips64el ppc64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nouveau nvidia" 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"
USE_PYTHON="2.7 3.2 3.3"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND

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

gnome-base/nautilus-3.6.3 was built with the following:
USE="gnome introspection previewer test -debug -exif (-packagekit) -sendto -tracker -xmp"
Comment 1 iGentoo 2012-12-27 12:46:12 UTC
Created attachment 333472 [details]
/var/tmp/portage/gnome-base/nautilus-3.6.3/work/nautilus-3.6.3/configure
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-12-27 12:50:12 UTC
This is most likely caused by the eclass replacing -D*DISABLED_DEPRECATED by $(NULL) which seems inappropriate in configure.

However, it does not make the build fail right ?
Comment 3 iGentoo 2012-12-27 14:48:38 UTC
(In reply to comment #2)
> This is most likely caused by the eclass replacing -D*DISABLED_DEPRECATED by
> $(NULL) which seems inappropriate in configure.
> 
> However, it does not make the build fail right ?

No, it doesn't.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-12-27 17:13:07 UTC
Thanks for the report. I've fixed the nautilus ebuild to avoid this error; but the real fix should be in gnome2-utils.eclass - we need to find a better way to handle this situation. Probably we should be using different sed commands for configure and for Makefile.in's.

+  27 Dec 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
+  nautilus-3.6.3.ebuild:
+  Avoid spurious "NULL: command not found" warnings (bug #448822, thanks to
+  Alphat-PC).
Comment 5 Alexander Tsoy 2014-11-24 22:26:05 UTC
Same problem with gtksourceview:

./gtksourceview-3.12.2:20141124-220501.log:./configure: line 12013: NULL: command not found
./gtksourceview-3.12.2:20141124-220501.log:./configure: line 12013: NULL: command not found
./gtksourceview-3.12.2:20141124-220501.log:./configure: line 12013: NULL: command not found
./gtksourceview-3.12.2:20141124-220501.log:./configure: line 12013: NULL: command not found
./gtksourceview-3.12.2:20141124-220501.log:./configure: line 12013: NULL: command not found

vm3020 ~ # sed -n '12006,12013p' /var/tmp/portage/x11-libs/gtksourceview-3.12.2/work/gtksourceview-3.12.2/configure
if test "$enable_deprecations" = "no"; then
        DISABLE_DEPRECATED_CFLAGS="\
$(NULL) \
$(NULL) \
$(NULL) \
$(NULL) \
$(NULL) \
-DGSEAL_ENABLE"
Comment 6 Pacho Ramos gentoo-dev 2014-11-24 23:28:47 UTC
How would $(/bin/true) work instead of $(NULL)?
Comment 7 Alexander Tsoy 2014-11-25 00:27:13 UTC
(In reply to Pacho Ramos from comment #6)
> How would $(/bin/true) work instead of $(NULL)?

It will not work in Makefiles. In configure you can just replace defines with empty string.
Comment 8 Alexander Tsoy 2014-11-25 09:06:03 UTC
(In reply to Alexander Tsoy from comment #7)
> (In reply to Pacho Ramos from comment #6)
> > How would $(/bin/true) work instead of $(NULL)?
> 
> It will not work in Makefiles.

Hmm.. no, should work, but it is hacky. :)
Comment 9 Pacho Ramos gentoo-dev 2015-05-11 14:18:11 UTC
(In reply to Alexander Tsoy from comment #8)
> (In reply to Alexander Tsoy from comment #7)
> > (In reply to Pacho Ramos from comment #6)
> > > How would $(/bin/true) work instead of $(NULL)?
> > 
> > It will not work in Makefiles.
> 
> Hmm.. no, should work, but it is hacky. :)

Well... but it looks like the best solution to me still :| Anyway, I don't see any damage on that $(NULL) warnings (they are not really a problem and we know where are they coming from)
Comment 10 Gilles Dartiguelongue (RETIRED) gentoo-dev 2015-11-19 22:10:24 UTC
*** Bug 566202 has been marked as a duplicate of this bug. ***
Comment 11 Pacho Ramos gentoo-dev 2016-01-20 11:36:41 UTC
Any problem with going with $(/bin/true)  finally?
Comment 12 Pacho Ramos gentoo-dev 2016-01-30 09:49:28 UTC
[master a9ceaad] eclass/gnome2-utils.eclass: prevent spurious warnings (#448822)
 1 file changed, 2 insertions(+), 2 deletions(-)