app-office/glabels installed with (barcode -eds) but the style menus is not showing "GNU Barcode Reproducible: Always emerge --info Portage 3.0.9 (python 3.7.9-final-0, default/linux/amd64/17.1/desktop, gcc-9.3.0, glibc-2.32-r2, 5.4.72-gentoo-x86_64 x86_64) ================================================================= System uname: Linux-5.4.72-gentoo-x86_64-x86_64-AMD_Ryzen_7_3800XT_8-Core_Processor-with-gentoo-2.7 KiB Mem: 32848432 total, 27479644 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 02 Dec 2020 06:00:01 +0000 Head commit of repository gentoo: 2f3d99881b4471c635b2ef56a130a8ca5a8c8907 sh bash 5.0_p18 ld GNU ld (Gentoo 2.34 p6) 2.34.0 app-shells/bash: 5.0_p18::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.30.3::gentoo dev-lang/python: 3.7.9::gentoo, 3.8.6::gentoo, 3.9.0::gentoo dev-util/cmake: 3.17.4-r1::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.20::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo sys-devel/automake: 1.16.2-r1::gentoo sys-devel/binutils: 2.34-r2::gentoo sys-devel/gcc: 9.3.0-r1::gentoo sys-devel/gcc-config: 2.3.2-r1::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.32-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: brother-overlay location: /var/lib/layman/brother-overlay masters: gentoo priority: 50 Local location: /usr/local/portage masters: gentoo priority: 99999999 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/fax /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/spool/fax/etc /var/www/localhost/htdocs/phpmyadmin" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.4/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 /var/spool/fax/etc/xferfaxlog" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--autounmask-write=y --keep-going --with-bdeps=y" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs collision-protect config-protect-if-modified 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="-march=native -O2 -pipe" GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.osuosl.org/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" MAKEOPTS="-j8 --load-average=8" 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" USE="X a52 aac acpi alsa amd64 apache2 bluetooth branding bzip2 cairo cdda cdr cgi cleartype cli consolekit corefonts crypt cups dbus dri dts dvd dvdr elogind emboss encode exif fam flac foomaticdb fortran gdbm gif gimp gimpprint gpm gtk gui iconv icu ipv6 java jpeg kpathsea lcms libglvnd libnotify libtirpc lock mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds qt5 qtk readline scanner sdl seccomp session spell split-usr ssl startup-notification svg tcpd tetex thunar tiff truetype type1 udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="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="mmx mmxext sse sse2" 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="evdev" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25 ruby26" SANE_BACKENDS="fujitsu epson2" USERLAND="GNU" VIDEO_CARDS="nvidia 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: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
glabels builds with (barcode) flag but "app-text/barcode-0.99" is missing a library [I] app-office/glabels Available versions: 3.4.1 {barcode eds} Installed versions: 3.4.1(12:10:08 AM 12/05/2020)(barcode -eds) Homepage: https://glabels.org/ Description: Program for creating labels and business cards eix app-text/barcode [?] app-text/barcode Available versions: 0.98-r1 ~0.99 Installed versions: 0.99(01:00:02 AM 12/05/2020) Homepage: https://www.gnu.org/software/barcode/ Description: barcode generator Here is some information that was provided to me: app-text/barcode doesn't provide the lib needed, see below. /// I tried this: # echo app-office/glabels barcode -eds > /etc/portage/package.use/glabels # emerge -aqv app-office/glabels [ebuild R ] app-office/glabels-3.4.1 USE="barcode -eds" Would you like to merge these packages? [Yes/No] y >>> Verifying ebuild manifests >>> Emerging (1 of 1) app-office/glabels-3.4.1::gentoo >>> Jobs: 0 of 1 complete, 1 running Load avg: 1.41, 0.88, 0.52^C I.e. I killed the build process so I could look at the tempdir contents (why doesn't "FEATURES=noclean emerge -aqv app-office/glabels" work ?). Looking at (PORTAGE_TMPDIR def. is /var/tmp) # cat $PORTAGE_TMPDIR/portage/app-office/glabels-3.4.1/temp/build.log ... checking for LIBGLABELS... yes checking for LIBGLBARCODE... yes checking for Barcode_Create in -lbarcode... no checking for ZBarcode_Render in -lzint... no checking for LIBQRENCODE... yes checking for LIBIEC16022... no checking locale.h usability... yes ... Optional barcode backends: GNU Barcode ............. no (See http://www.gnu.org/software/barcode/barcode.html) QR Code ................. yes IEC 16022 ............... no (See http://datenfreihafen.org/projects/iec16022.html) Zint .................... no (See http://www.zint.org.uk) ... # cat $PORTAGE_TMPDIR/portage/app-office/glabels-3.4.1/work/glabels-3.4.1/config.log ... configure:15388: checking for Barcode_Create in -lbarcode configure:15413: x86_64-pc-linux-gnu-gcc -o conftest -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c -lbarcode >&5 /usr/lib/gcc/x86_64-pc-linux-gnu/7.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lbarcode collect2: error: ld returned 1 exit status configure:15413: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "glabels" | #define PACKAGE_TARNAME "glabels" | #define PACKAGE_VERSION "3.4.1" | #define PACKAGE_STRING "glabels 3.4.1" | #define PACKAGE_BUGREPORT "http://bugzilla.gnome.org/enter_bug.cgi?product=glabels" | #define PACKAGE_URL "" | #define PACKAGE "glabels" | #define VERSION "3.4.1" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char Barcode_Create (); | int | main () | { | return Barcode_Create (); | ; | return 0; | } configure:15422: result: no ... So, glabels tries to use barcode, but there is no lib found. Looking at /var/db/pkg/app-text/barcode-0.99/CONTENTS, I see that barcode doesn't provide a lib. $ git clone https://git.savannah.gnu.org/git/barcode.git $ cd barcode $ cat library.c ... struct Barcode_Item *Barcode_Create(char *text) { struct Barcode_Item *bc; bc = malloc(sizeof(*bc)); if (!bc) return NULL; memset(bc, 0, sizeof(*bc)); bc->ascii = strdup(text); bc->margin = BARCODE_DEFAULT_MARGIN; /* default margin */ return bc; } ... So Barcode_Create() exists, but barcode doesn't build the needed library.
As of version 0.99, GNU Barcode no longer installs its library. So install 0.98 from source: ``` wget https://ftp.gnu.org/gnu/barcode/barcode-0.98.tar.gz tar xzf barcode-0.98.tar.gz cd barcode-0.98/ ./configure && make sudo make install I grab my old ebuild: app-text/barcode-0.98-r1 make an overlay, manifest it and installed; re-install the "glabels" and GNU Barcode shows up in the Menu. Ps. I think Gentoo maintainers are too fast in removing working packages from the portage tree with new version that don't work. Removing working packages generates more traffic on Gentoo bug list.
(In reply to Joseph from comment #2) > As of version 0.99, GNU Barcode no longer installs its library. So install > 0.98 from source: > ``` This is not a fix though, is it? It's an upstream bug, it seems. https://lists.gnu.org/archive/html/bug-barcode/2020-01/msg00000.html FYI: this version was added on 25h Feb 2017, stabled on 27th November 2020 for amd64, then the older version was removed on 27th November 2020.
Coming from https://archives.gentoo.org/gentoo-user/message/324bcde6976740c43c5bc4adae2669e5 I found this bug. I do not know why you close this bug!? I would consider building (the old version) from source as a workaround. This will clutter the filesystem with files outside of the control of the package manager. At least configure to install in /usr/local Maybe there is a way to re enable building the library for the 0.99 version. I played around with barcode-0.99 a bit and made it installing the library again. I tested the gnu barcode backend in glabels which also seems fine. The changes may not be perfect but probably are a starting point. In the long run it seems there will be glabels-qt which apparently comes with its own barcode code. Another option would be using zint for barcode generation which seems better maintained than gnu barcode but unfortunately is not in the portage tree. Not going to dive deeper into this. I just stumbled over it and had nothing better to do on a Sunday afternoon ;-)
Created attachment 677047 [details, diff] re enable barcode library
Created attachment 677050 [details, diff] ebuild patch
(In reply to Sam James from comment #3) > (In reply to Joseph from comment #2) > > As of version 0.99, GNU Barcode no longer installs its library. So install > > 0.98 from source: > > ``` > > This is not a fix though, is it? It's an upstream bug, it seems. > > https://lists.gnu.org/archive/html/bug-barcode/2020-01/msg00000.html > > FYI: this version was added on 25h Feb 2017, stabled on 27th November 2020 > for amd64, then the older version was removed on 27th November 2020. Probably the upstream patch should be used instead of mine. It looks a bit saner regarding gettext.
Also with the removal of 0.98 there is a stale patch in $FILEDSIR.
I think this is more a bug in app-text/barcode instead of app-office/glabels. However it also affects glabels as barcode handling with app-text barcode is automagic.
(In reply to Daniel Pielmeier from comment #9) > I think this is more a bug in app-text/barcode instead of > app-office/glabels. However it also affects glabels as barcode handling with > app-text barcode is automagic. I just remembered this btw: https://bugs.gentoo.org/707686#c8
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd3eb60f46af56a02a5b11976349009cadbcc083 commit bd3eb60f46af56a02a5b11976349009cadbcc083 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2021-05-16 18:56:00 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2021-05-16 18:56:51 +0000 app-text/barcode: also install static library Closes: https://bugs.gentoo.org/758491 Package-Manager: Portage-3.0.18, Repoman-3.0.3 RepoMan-Options: --force Signed-off-by: Matthias Maier <tamiko@gentoo.org> .../barcode/{barcode-0.99.ebuild => barcode-0.99-r1.ebuild} | 12 ++++++++++-- .../barcode/files/barcode-0.99-install-static-lib.patch | 13 +++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-)