Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509014 - x11-wm/fluxbox-9999 - .../work/fluxbox-9999/util/fluxbox-generate_menu: Permission denied
Summary: x11-wm/fluxbox-9999 - .../work/fluxbox-9999/util/fluxbox-generate_menu: Permi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Panagiotis Christopoulos (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-28 21:31 UTC by barul
Modified: 2015-05-06 12:52 UTC (History)
3 users (show)

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


Attachments
entire build log (fluxbox-build-log,69.82 KB, text/plain)
2014-04-29 05:43 UTC, barul
Details
ebuild patch to properly install generated menu (sporkbox_menugen_fluxbox-9999.patch,920 bytes, patch)
2014-05-12 12:16 UTC, zlg (RETIRED)
Details | Diff
Port fix for bug 547990 to 9999 (fluxbox-9999-new.patch,1.37 KB, patch)
2015-05-06 11:49 UTC, zlg (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description barul 2014-04-28 21:31:36 UTC
Using x11-wm/fluxbox-9999.ebuild to install the very last version of git, the fluxbox-generate_menu step fails with "permission denied" error message.

I managed to solve it by adding "chmod 744 "${S}/util/fluxbox-generate_menu" in the src_compile() step, but I'm now having these errors (non critical, the compilation still finishes and I can start fluxbox without a problem):


/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 1423: hash: fluxbox@EXEEXT@: not found
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
convert: iCCP: Not recognizing known sRGB profile that has been edited `/usr/share/icons/hicolor/48x48/apps/virtualbox-bin.png' @ warning/png.c/MagickPNGWarningHandler/1832.
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character
/var/tmp/portage/x11-wm/fluxbox-9999/work/fluxbox-9999/util/fluxbox-generate_menu: line 334: printf: `U': invalid format character


I can provide more info if needed.
Comment 1 barul 2014-04-28 21:33:39 UTC
I meant "chmod 744 "${S}/util/fluxbox-generate_menu"", of course.

If it helps, here's emerge --info:

Portage 2.2.8-r1 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.14.1-gentoo x86_64)
=================================================================
System uname: Linux-3.14.1-gentoo-x86_64-Intel-R-_Core-TM-_i7-4700HQ_CPU_@_2.40GHz-with-gentoo-2.2
KiB Mem:    16385568 total,  13512732 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Mon, 28 Apr 2014 20:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo steam-overlay elementary hasufell x11 mpd localoverlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-11.x Broadcom"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://gentoo.modulix.net/gentoo/ http://mirror.ovh.net/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/steam /var/lib/layman/elementary /var/lib/layman/hasufell /var/lib/layman/x11 /var/lib/layman/mpd /home/barul/overlay"
SYNC="rsync://rsync1.fr.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 berkdb bindist branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt3support readline sdl session spell sse sse2 ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ublox ubx" INPUT_DEVICES="mouse keyboard evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-29 01:39:38 UTC
Please attach the entire build log to this bug report.
Comment 3 barul 2014-04-29 05:43:48 UTC
Created attachment 376000 [details]
entire build log
Comment 4 zlg (RETIRED) gentoo-dev 2014-05-12 12:16:36 UTC
Created attachment 376780 [details, diff]
ebuild patch to properly install generated menu
Comment 5 zlg (RETIRED) gentoo-dev 2014-05-12 12:18:27 UTC
I examined Fluxbox's build process and determined that the permissions of
fluxbox-generate_menu.in (and friend, startfluxbox) start out executable, but
post-compile, pre-install lose their executable bit. So if menu generation is to
happen in src_compile, fluxbox-generate_menu needs either the execution bit, or
to be ran as an argument to a `bash` call.

I juggled with the idea of putting menu generation in pkg_postinst() or
src_install(), but src_compile() seemed the most Gentoo-ish way to do so.
fluxbox-generate_menu produces a file, so producing an additional file outside
of src_install seemed unclean.

Additionally, I noticed that nothing was being done with the generated menu.
i.e. it wasn't appearing in /usr/share/fluxbox where it belonged.

I've attached a unified diffpatch (diff -u) of my changes. Calling
fluxbox-generate_menu through `bash` instead of chmodding is shorter, though
it may be less obvious *why* it's being done. I added a comment to clarify the
situation.

My apologies for taking so long to address this.
Comment 6 zlg (RETIRED) gentoo-dev 2015-05-06 11:49:08 UTC
Created attachment 402752 [details, diff]
Port fix for bug 547990 to 9999

This patch updates the live ebuild to contain the same fix as bug 547990 and bring it up to date with fluxbox-1.3.7's ebuild.
Comment 7 Aaron W. Swenson gentoo-dev 2015-05-06 12:52:56 UTC
  06 May 2015; Aaron W. Swenson <titanofold@gentoo.org> fluxbox-9999.ebuild:
  Fix bug 509014.