Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728012 - media-libs/libjpeg-turbo-2.0.4: exifautotran script is installed without execute permission
Summary: media-libs/libjpeg-turbo-2.0.4: exifautotran script is installed without exec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Codec Project
URL:
Whiteboard:
Keywords: PullRequest
: 749843 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-06-12 02:08 UTC by spock128
Modified: 2021-12-04 21:52 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description spock128 2020-06-12 02:08:07 UTC
I can't run /usr/bin/exifautotran out-of-the-box when installed with media-libs/libjpeg-turbo-2.0.4 since its default permissions are 0644. Changing the permissions to 755 allows the script to run.

media-libs/libjpeg-turbo-2.0.3 does have the execute bits set on the script, so downgrading will also let it run.

Reproducible: Always

Steps to Reproduce:
1. Install media-libs/libjpeg-turbo-2.0.4
2. run exifautotran command
Actual Results:  
$ exifautotran --help
/usr/bin/exifautotran: Permission denied

Expected Results:  
$ exifautotran --help
exifautotran [list of files]

Transforms Exif files so that Orientation becomes 1

$ emerge --info
Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.30-r8, 5.4.38-gentoo x86_64)
=================================================================
System uname: Linux-5.4.38-gentoo-x86_64-Intel-R-_Core-TM-_i5-3450_CPU_@_3.10GHz-with-gentoo-2.6
KiB Mem:     8059696 total,    732832 free
KiB Swap:   16776916 total,  16766420 free
Timestamp of repository gentoo: Fri, 05 Jun 2020 23:00:01 +0000
Head commit of repository gentoo: be6f210f3f95f83575f99aa76d84c163fa2ccc2e
sh bash 5.0_p17
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18::gentoo, 3.6.10-r2::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.16.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.4-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r8::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://materia/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

dotnet
    location: /var/lib/layman/dotnet
    sync-type: laymansync
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE linux-fw-redistributable no-source-code free-noncomm lha as-is android bh-luxi unRAR freedist all-rights-reserved Skype-TOS Snes9x MPEG-4 fairuse ValveSteamLicense AdobeFlash-11.x MakeMKV-EULA TODO FAH-EULA-2014 FAH-special-permission"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/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/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc 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://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages/amd64"
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="X Xaw3d a52 aac aacs aalib acl acpi activities aften alsa amd64 amrnb apng apulse autoipd automount avahi barcode berkdb bluetooth bluray branding bzip2 cairo cdda cddb cdparanoia cdr cjk cli client crypt cscope css cups cxx dbus declarative designer development device-mapper dhcp djvu dri dts dv dvb dvd dvdr dvi elogind emboss encode exif expat extrafilters fame fat flac flash fontconfig foomaticdb fortran fpx fts3 fuse g3dvl gd gdbm geoip gif gimp git glitz glsl glut gpm graphviz gs gstreamer gtk gtk3 haptic hddtemp hdri hfs iconv icu id3tag idn iec61883 ieee1394 imagemagick imap imlib inkjar ipod ipv6 irda ithreads java jbig jfs joystick jpeg jpeg2k kde kdenlive kipi konqueror kpathsea kvm kwallet lame lapack latex lcms legacy-systray libav-aac libcaca libnotify libsamplerate libtirpc lirc live lm_sensors lzma mad matroska mbrola mdnsresponder-compat melt memoryview midi minizip mjpeg mng mono moonlight mp3 mp4 mpeg mplayer mtp multilib musepack musicbrainz natspec ncurses network nls nptl nsplugin ntfs ntfsprogs nut nvidia objc objc++ objc-gc ocr ofa ogg openal opencl opencv openexr opengl openmp opus pam pango parport pcre pdf perl phonon pidgin plasma plotutils png pnm policykit postproc ppds pvr python q32 qml qt5 qtcurve quicktime radio rar readline real rtc rtsp samba scanner schroedinger script sctp sdl sdlaudio seccomp secure-delete semantic-desktop shout slp smp soprano speech speex spell split-usr sql sqlite srt ssl startup-notification svc svg sync-plugin-portage system-libCg t1lib tcl tcpd telepathy tftp tga theora threads threadsafe tiff timidity tinfo tk tor-hardening trayicon truetype udev udisks unicode upower usb utils uvm v4l v4l2 vaapi vcd vcdx vdpau vim-syntax vlm vnc vorbis vpx webkit widgets wma wmf wxwidgets x264 xanim xattr xcb xcomposite xetex xfs xine xinerama xml xmp xpm xscreensaver xulrunner xv xvid xvmc yv12 zeroconf zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 ssse3 sse4_1 sse4_2" 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="evdev wacom" KERNEL="linux" L10N="en en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_6 python3_7" QEMU_SOFTMMU_TARGETS="aarch64 arm hppa mips mips64 ppc sparc sparc64" QEMU_USER_TARGETS="aarch64 arm hppa mips mips64 ppc sparc sparc64" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-02 04:41:32 UTC
*** Bug 749843 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2021-12-04 21:52:53 UTC
The bug has been closed via the following commit(s):

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

commit c07fd1c795c3ae818606497bcdc0177f30e0cec7
Author:     Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
AuthorDate: 2021-12-04 19:25:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-12-04 21:52:43 +0000

    media-libs/libjpeg-turbo: use ebuild helpers instead of cmake
    
    Closes: https://bugs.gentoo.org/728012
    Signed-off-by: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
    Closes: https://github.com/gentoo/gentoo/pull/23183
    Signed-off-by: Sam James <sam@gentoo.org>

 ...eg-turbo-2.1.2.ebuild => libjpeg-turbo-2.1.2-r1.ebuild} | 14 ++------------
 1 file changed, 2 insertions(+), 12 deletions(-)