Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 919425

Summary: media-gfx/asymptote-2.85-r1 creates bogus symbolic link /usr/bin/xasy
Product: Gentoo Linux Reporter: Bob Johnson <bob>
Component: Current packagesAssignee: Andrey Grozin <grozin>
Status: UNCONFIRMED ---    
Severity: normal CC: sci
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bob Johnson 2023-12-08 03:57:26 UTC
The ebuild calls out this in the X GUI section:

dosym "$(python_get_sitedir)/${PN}/GUI/xasy.py" /usr/bin/xasy

which creates a flawed symbolic link:
/usr/bin/xasy -> /usr/lib/python3.11/site-packages/asymptote/GUI/xasy.py

However, there is no asymptote subdirectory in site-packages. xasy.py is located in:
/usr/lib/python3.11/site-packages/GUI/xasy.py

Found this doing my occasional cleanup scan of the system directories with "find . -type l -xtype l". Not sure if the ebuild isn't installing a necessary subdirectory "asymptote", or if the ebuild has an extraneous path element "asymptote".


Reproducible: Always




# emerge --info asymptote
Portage 3.0.56 (python 3.11.6-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-13, glibc-2.37-r7, 6.1.57-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.57-gentoo-x86_64-AMD_Ryzen_9_3950X_16-Core_Processor-with-glibc2.37
KiB Mem:    65790228 total,  46826352 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Thu, 07 Dec 2023 15:45:01 +0000
Head commit of repository gentoo: 60c391dc300b233655700744a0a111e3926fbdeb
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           3.11.6::gentoo, 3.12.0_p1::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.3::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.48::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/gcc:             13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             16.0.6::gentoo, 17.0.1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.1::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage/
    priority: -1000
    volatile: False
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 

local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
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/easy-rsa /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/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /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="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average=32"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="--jobs=32 --load-average=35"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups curl dbus declarative doc dri dts dvd dvdr elogind encode examples exif flac fontconfig fortran gd gdbm gif gtk gtk-doc gui handbook iconv icu ipv6 jack java jbig jpeg kde kwallet lcms libnotify libtirpc lzma mad mbox mng mp3 mp4 mpeg multilib ncurses nls nptl odbc ogg openexr opengl openmp pam pango pcre pdf pipewire plasma png policykit postgres ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop sound source spell split-usr ssl startup-notification svg test-rust threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xinerama xml xpm xv xvid zlib" ABI_X86="64 32" ADA_TARGET="gnat_2021" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authz_core authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_byrequests log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http proxy_http2 rewrite setenvif slotmem_shm socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput wacom joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver wiki-publisher" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" SANE_BACKENDS="epson2" VIDEO_CARDS="amdgpu radeonsi fbdev vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

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

media-gfx/asymptote-2.85-r1::gentoo was built with the following:
USE="X boehm-gc context curl doc examples fftw imagemagick latex opengl sigsegv svg vim-syntax -emacs -gsl -lsp -offscreen -python -test" ABI_X86="(64)" PYTHON_TARGETS="python3_11 -python3_10"
FEATURES="userpriv sandbox sfperms news merge-sync strict ebuild-locks assume-digests ipc-sandbox binpkg-docompress parallel-fetch parallel-install qa-unresolved-soname-deps unmerge-logs config-protect-if-modified network-sandbox xattr userfetch pkgdir-index-trusted unknown-features-warn buildpkg-live protect-owned preserve-libs unmerge-orphans usersync binpkg-logs usersandbox multilib-strict binpkg-dostrip pid-sandbox distlocks fixlafiles"
Comment 1 Andrey Grozin gentoo-dev 2023-12-09 04:46:42 UTC
grozin@bilbo ~ $ file /usr/bin/xasy
/usr/bin/xasy: symbolic link to /usr/lib/python3.11/site-packages/asymptote/GUI/xasy.py
grozin@bilbo ~ $ file /usr/lib/python3.11/site-packages/asymptote/GUI/xasy.py
/usr/lib/python3.11/site-packages/asymptote/GUI/xasy.py: Python script, ASCII text executable
Comment 2 Bob Johnson 2023-12-09 06:10:49 UTC
bjohnson@coraline ~ $ file /usr/bin/xasy
/usr/bin/xasy: broken symbolic link to /usr/lib/python3.11/site-packages/asymptote/GUI/xasy.py
bjohnson@coraline ~ $ locate xasy.py
/usr/lib/python3.11/site-packages/GUI/xasy.py
/usr/share/texmf-dist/asymptote/GUI/xasy.py
bjohnson@coraline ~ $ equery belongs /usr/lib/python3.11/site-packages/GUI/xasy.py
 * Searching for /usr/lib/python3.11/site-packages/GUI/xasy.py ... 
media-gfx/asymptote-2.85-r1 (/usr/lib/python3.11/site-packages/GUI/xasy.py)
bjohnson@coraline ~ $ equery belongs /usr/share/texmf-dist/asymptote/GUI/xasy.py
 * Searching for /usr/share/texmf-dist/asymptote/GUI/xasy.py ... 
app-text/texlive-core-2021-r7 (/usr/share/texmf-dist/asymptote/GUI/xasy.py)
bjohnson@coraline ~ $ file /usr/lib/python3.11/site-packages/GUI/xasy.py
/usr/lib/python3.11/site-packages/GUI/xasy.py: Python script, ASCII text executable

Strange. Why do our systems differ?