Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 479578 - sys-apps/sdparm-1.07: automagic link to sg3_utils libsgutils2.so.2
Summary: sys-apps/sdparm-1.07: automagic link to sg3_utils libsgutils2.so.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-02 23:00 UTC by Eric F. GARIOUD
Modified: 2014-01-02 18:00 UTC (History)
0 users

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 Eric F. GARIOUD 2013-08-02 23:00:23 UTC
# emerge --depclean
Calculating dependencies... done!
>>> Checking for lib consumers...
>>> Assigning files to packages...
 * In order to avoid breakage of link level dependencies, one or more
 * packages will not be removed. This can be solved by rebuilding the
 * packages that pulled them in.
 * 
 *   sys-apps/sg3_utils-1.36 pulled in by:
 *     sys-apps/sdparm-1.07 needs libsgutils2.so.2
 * 
>>> Adding lib providers to graph...
 \
Calculating dependencies... done!
>>> No packages selected for removal by depclean

The problem is that :

1/ rebuilding sys-apps/sdparm-1.07 does not help anything
2/ sys-apps/sdparm does not actually depend on sys-apps/sg3_utils-1.36 as it is only RDEPEND="!<sys-apps/sg3_utils-1.28"
3/ The only package depending on sys-apps/sg3_utils in my system is :
sys-apps/rescan-scsi-bus-1.29
4/ Rebuilding sys-apps/rescan-scsi-bus does not help. 

Reproducible: Always
Comment 1 Eric F. GARIOUD 2013-08-02 23:01:12 UTC
acoswt@PrimaPratica ~ $ emerge --info
Portage 2.1.12.2 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.4.54-gentoo.1 x86_64)
=================================================================
System uname: Linux-3.4.54-gentoo.1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E8400_@_3.00GHz-with-gentoo-2.2
KiB Mem:     4049356 total,   1346320 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Fri, 02 Aug 2013 16:45:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
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
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo PrimaPratica_ovl
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0 /var/lib/hsqldb"
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="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--color y --alphabetical --autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org/ "
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/PrimaPratica/MySysConf/portage.exclude"
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="/var/portages/G_Portage"
PORTDIR_OVERLAY="/var/portages/PP_Portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="24bpp X accessibility alsa amd64 amr atm bzip2 caps cdda cdio cli consolekit cracklib crypt css cups custom-cflags custom-optimization cxx dbus dga dts enca exceptions exif faac flac fontconfig fontforge fortran glib glpk gsm handbook hardcoded-tables iconv icu id3tag idn inotify introspection ipc jack jit kipi kontact lcms libass libnotify libsamplerate mmx mmxext mng modplug modules mudflap multilib natspec ncurses nls nptl ocamlopt openal opencl openexr opengl openmp orc pam pch plasma policykit private-headers pth qt-faststart qt3support readline schroedinger semantic-desktop session smp speex sse sse2 sse3 sse4_1 ssl ssse3 startup-notification system-sqlite taglib tcpd threads twolame udev unicode uuid vaapi vdpau vim-syntax vpx wallpapers wavpack xattr xcb xv xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel ice1712" CAMERAS="ptp2" CURL_SSL="openssl" ELIBC="glibc" FFTOOLS="cws2fws" INPUT_DEVICES="evdev" KERNEL="linux" LIBREOFFICE_EXTENSIONS="nlpsolver pdfimport presenter-console presenter-minimizer scripting-javascript" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
USE_PYTHON="2.7"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 2 Zac Medico gentoo-dev 2013-08-02 23:15:46 UTC
(In reply to Eric F. GARIOUD from comment #0)
> 1/ rebuilding sys-apps/sdparm-1.07 does not help anything
> 2/ sys-apps/sdparm does not actually depend on sys-apps/sg3_utils-1.36 as it
> is only RDEPEND="!<sys-apps/sg3_utils-1.28"
> 3/ The only package depending on sys-apps/sg3_utils in my system is :
> sys-apps/rescan-scsi-bus-1.29
> 4/ Rebuilding sys-apps/rescan-scsi-bus does not help. 

The thing is, sdparm links to libsgutils2.so.2 even though it may not be intended to do so. Either the sdparm ebuild is missing a dependency, or the sdparm build system needs to be fixed to prevent it from linking to libsgutils2.so.2.

The sys-apps/rescan-scsi-bus package only installs a shell script which just calls the sdparm library, so there's nothing to rebuild there.
Comment 3 Eric F. GARIOUD 2014-01-01 23:15:51 UTC
I apologize but... : Bump!
Comment 4 SpanKY gentoo-dev 2014-01-02 16:03:51 UTC
the linkage in sdparm is correct

Relationship to sg3_utils
-------------------------
This package shares code with sg3_utils (version 1.33). With the subversion
revision control system this is done by having sdparm's "include/" and "lib/"
subdirectories pointing to the correspondingly named directories in the
sg3_utils package using the "svn:externals" property. These two "external"
directories include more files than sdparm uses. The excess files include
"lib/Makefile.am" and "lib/Makefile.in". The "Makefile.am" in sdparm's "src/"
directory does the main part of the build. When the tarball is generated for
this utility, various files are "exported" out of the subversion repository
and "svn:externals" redirection is no longer visible (but the unused files
are visible).

The sdparm executable may or may not be built depending on the libsgutils
(shared) library. Currently the ./configure rules are looking for a library
called libsgutils2.a or libsgutils2.so . In Debian those libraries are found
only in the libsgutils2-dev package, not the libsgutils2 package. If one of
those libraries is detected then sdparm will be built depending on libsgutils
(check 'ldd sdparm'). If neither of those libraries is detected at build time,
then the sdparm executable built will compile and link the relevant code from
its "include/" and "lib/" subdirectories.
Comment 5 SpanKY gentoo-dev 2014-01-02 16:05:42 UTC
should be all set now in the tree; thanks for the report!

Commit message: Fix depend on sg3_utils
http://sources.gentoo.org/sys-apps/sdparm/sdparm-1.08-r1.ebuild?rev=1.1
Comment 6 Eric F. GARIOUD 2014-01-02 18:00:16 UTC
Thank you Mike for fixing and for the detailed explaination.