Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749843 - media-libs/libjpeg-turbo-2.0.5-r1 install exifautotran without executable bit
Summary: media-libs/libjpeg-turbo-2.0.5-r1 install exifautotran without executable bit
Status: RESOLVED DUPLICATE of bug 728012
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:
Depends on:
Blocks:
 
Reported: 2020-10-18 00:07 UTC by Francesco Riosa
Modified: 2021-03-02 04:41 UTC (History)
3 users (show)

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


Attachments
libjpeg-turbo-2.0.5-r1:20201018-001014.log.gz (libjpeg-turbo-2.0.5-r1:20201018-001014.log.gz,30.25 KB, application/gzip)
2020-10-18 00:16 UTC, Francesco Riosa
Details
emerge --info media-libs/libjpeg-turbo-2.0.5-r1 (ei,7.27 KB, text/plain)
2020-10-18 00:21 UTC, Francesco Riosa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francesco Riosa 2020-10-18 00:07:57 UTC
# stat /usr/bin/exifautotran
  File: /usr/bin/exifautotran
  Size: 1133            Blocks: 8          IO Block: 4096   regular file
Device: 97fh/2431d      Inode: 39593204    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2011-02-14 12:44:34.000000000 -0000
Modify: 2011-02-14 12:44:34.000000000 -0000
Change: 2020-08-30 21:17:48.803796492 -0000
 Birth: 2020-08-30 21:17:48.803796492 -0000
Comment 1 Francesco Riosa 2020-10-18 00:16:37 UTC
Created attachment 666404 [details]
libjpeg-turbo-2.0.5-r1:20201018-001014.log.gz

Build log
Comment 2 Francesco Riosa 2020-10-18 00:21:05 UTC
Created attachment 666407 [details]
emerge --info media-libs/libjpeg-turbo-2.0.5-r1
Comment 3 Jonas Stein gentoo-dev 2020-10-18 20:07:42 UTC
I am not sure, why a library installs binaries at all.
Comment 4 Francesco Riosa 2020-10-21 01:23:23 UTC
(In reply to Jonas Stein from comment #3)
> I am not sure, why a library installs binaries at all.

quite common in media-libs category, the package also install other binaries but the only shell script is exifautotran

/usr/bin/jpegexiforient
/usr/bin/wrjpgcom
/usr/bin/cjpeg
/usr/bin/rdjpgcom
/usr/bin/tjbench
/usr/bin/jpegtran
/usr/bin/djpeg
Comment 5 Francesco Riosa 2020-10-21 01:39:02 UTC
Not delved deeply but following patch to the ebuild should do:
Per cmake documentation the INSTALL action should use either PROGRAMS instead of FILES or specify PERMISSIONS
https://cmake.org/cmake/help/latest/command/install.html#files


diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5-r2.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5-r2.ebuild
index b56919a90..ac89c8b88 100644
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5-r2.ebuild
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5-r2.ebuild
@@ -54,7 +54,7 @@ EOF

        for FILE in ../debian/extra/exifautotran; do
                cat >> CMakeLists.txt <<EOF || die
-install(FILES \${CMAKE_CURRENT_SOURCE_DIR}/${FILE} DESTINATION \${CMAKE_INSTALL_BINDIR})
+install(PROGRAMS \${CMAKE_CURRENT_SOURCE_DIR}/${FILE} DESTINATION \${CMAKE_INSTALL_BINDIR})
 EOF
        done
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-02 04:41:32 UTC

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