public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] glabels not showing GNU Barcode
@ 2020-12-05  7:35 thelma
  2020-12-05  8:03 ` thelma
  2020-12-05 13:52 ` karl
  0 siblings, 2 replies; 14+ messages in thread
From: thelma @ 2020-12-05  7:35 UTC (permalink / raw
  To: Gentoo mailing list

I have app-office/glabels installed with (barcode -eds)
but the style menus is not showing "GNU Barcode

Is it a bug?

-- 
Thelma


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05  7:35 [gentoo-user] glabels not showing GNU Barcode thelma
@ 2020-12-05  8:03 ` thelma
  2020-12-05  8:26   ` Dale
  2020-12-05 13:52 ` karl
  1 sibling, 1 reply; 14+ messages in thread
From: thelma @ 2020-12-05  8:03 UTC (permalink / raw
  To: Gentoo mailing list

On 12/05/2020 12:35 AM, thelma@sys-concept.com wrote:
> I have app-office/glabels installed with (barcode -eds)
> but the style menus is not showing "GNU Barcode
> 
> Is it a bug?

The only difference after installation I've notice question mark in a
bracket, instead of "I"

eix app-text/barcode
[?] app-text/barcode

Normally, after compiling it shows [I]

The package compiled without any errors.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05  8:03 ` thelma
@ 2020-12-05  8:26   ` Dale
  0 siblings, 0 replies; 14+ messages in thread
From: Dale @ 2020-12-05  8:26 UTC (permalink / raw
  To: gentoo-user

thelma@sys-concept.com wrote:
> On 12/05/2020 12:35 AM, thelma@sys-concept.com wrote:
>> I have app-office/glabels installed with (barcode -eds)
>> but the style menus is not showing "GNU Barcode
>>
>> Is it a bug?
> The only difference after installation I've notice question mark in a
> bracket, instead of "I"
>
> eix app-text/barcode
> [?] app-text/barcode
>
> Normally, after compiling it shows [I]
>
> The package compiled without any errors.
>
>
>

Usually when it shows a question mark, it means that what is installed
is no longer in the tree.  In other words, it doesn't know where the
package came from since it is no longer in the database.  You don't
mention what version you're using but here is the current info for that
package.

https://packages.gentoo.org/packages/app-text/barcode

It shows 0.99 as the only version available.  Is that the version you
have installed?  If not, you may need to sync and then update to that
version.  You can only hope that the new version works as you expect. 

Hope that helps.

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05  7:35 [gentoo-user] glabels not showing GNU Barcode thelma
  2020-12-05  8:03 ` thelma
@ 2020-12-05 13:52 ` karl
  2020-12-05 16:58   ` [gentoo-user] karl
  1 sibling, 1 reply; 14+ messages in thread
From: karl @ 2020-12-05 13:52 UTC (permalink / raw
  To: gentoo-user

Thelma:
> I have app-office/glabels installed with (barcode -eds)
> but the style menus is not showing "GNU Barcode
> 
> Is it a bug?

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.

Regards,
/Karl Hammar




^ permalink raw reply	[flat|nested] 14+ messages in thread

* [gentoo-user]
  2020-12-05 13:52 ` karl
@ 2020-12-05 16:58   ` karl
  2020-12-05 18:36     ` [gentoo-user] thelma
  0 siblings, 1 reply; 14+ messages in thread
From: karl @ 2020-12-05 16:58 UTC (permalink / raw
  To: gentoo-user

Karl:
> Thelma:
> > I have app-office/glabels installed with (barcode -eds)
> > but the style menus is not showing "GNU Barcode
> > 
> > Is it a bug?
> 
> app-text/barcode doesn't provide the lib needed, see below.

Instead of barcode you could try out zint:

git clone https://git.code.sf.net/p/zint/code zint-code
cd zint-code
git co ade31c41fba14b942cca30a4a605e48517613d25
mkdir build
cd build
cmake ..
make
make install

Note:
 Since ZBarcode_Render was removed in
 commit f9d969cdd66984906719c87ed486909a673decec
 you have to check out an earlier commit e.g. the one
 I used above.

 possible also as root
ldconfig

 And then reinstalling glabels

emerge -aqv app-office/glabels

///

There is also the iec16022 package,

wget https://archive.kernel.org/debian-archive/debian/pool/main/i/iec16022/iec16022_0.2.4.orig.tar.gz
tar zxf iec16022_0.2.4.orig.tar.gz
cd iec16022_0.2.4
./configure
make
make install

and then reemerge glabels.

Regards,
/Karl Hammar




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user]
  2020-12-05 16:58   ` [gentoo-user] karl
@ 2020-12-05 18:36     ` thelma
  2020-12-05 19:33       ` [gentoo-user] glabels not showing GNU Barcode karl
  0 siblings, 1 reply; 14+ messages in thread
From: thelma @ 2020-12-05 18:36 UTC (permalink / raw
  To: gentoo-user

On 12/05/2020 09:58 AM, karl@aspodata.se wrote:
> Karl:
>> Thelma:
>>> I have app-office/glabels installed with (barcode -eds)
>>> but the style menus is not showing "GNU Barcode
>>>
>>> Is it a bug?
>>
>> app-text/barcode doesn't provide the lib needed, see below.
> 
> Instead of barcode you could try out zint:
> 
> git clone https://git.code.sf.net/p/zint/code zint-code
> cd zint-code
> git co ade31c41fba14b942cca30a4a605e48517613d25
> mkdir build
> cd build
> cmake ..
> make
> make install
> 
> Note:
>  Since ZBarcode_Render was removed in
>  commit f9d969cdd66984906719c87ed486909a673decec
>  you have to check out an earlier commit e.g. the one
>  I used above.
> 
>  possible also as root
> ldconfig
> 
>  And then reinstalling glabels

Running "ldconfig" didn't help.

> 
> emerge -aqv app-office/glabels
> 
> ///
> 
> There is also the iec16022 package,
> 
> wget https://archive.kernel.org/debian-archive/debian/pool/main/i/iec16022/iec16022_0.2.4.orig.tar.gz
> tar zxf iec16022_0.2.4.orig.tar.gz
> cd iec16022_0.2.4
> ./configure
> make
> make install
> 
> and then reemerge glabels.
> 
> Regards,
> /Karl Hammar

I'll try the second solution if I have a change.  Thanks for the input.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05 18:36     ` [gentoo-user] thelma
@ 2020-12-05 19:33       ` karl
  2020-12-05 20:58         ` thelma
  2020-12-05 21:07         ` thelma
  0 siblings, 2 replies; 14+ messages in thread
From: karl @ 2020-12-05 19:33 UTC (permalink / raw
  To: gentoo-user

Thelma:
> On 12/05/2020 09:58 AM, karl@aspodata.se wrote:
> > Karl:
...
> > Instead of barcode you could try out zint:
> > 
> > git clone https://git.code.sf.net/p/zint/code zint-code
> > cd zint-code
> > git co ade31c41fba14b942cca30a4a605e48517613d25
> > mkdir build
> > cd build
> > cmake ..
> > make
> > make install
> > 
> > Note:
> >  Since ZBarcode_Render was removed in
> >  commit f9d969cdd66984906719c87ed486909a673decec
> >  you have to check out an earlier commit e.g. the one
> >  I used above.
> > 
> >  possible also as root
> > ldconfig
> > 
> >  And then reinstalling glabels
> 
> Running "ldconfig" didn't help.

Strange, worked like a charm here.
It has a lot of styles, do you want help making it work ?

> > There is also the iec16022 package,
...
> I'll try the second solution if I have a change.  Thanks for the input.

Note that the iec16022 package only has one choise, just like QREncode.

Regards,
/Karl Hammar



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05 19:33       ` [gentoo-user] glabels not showing GNU Barcode karl
@ 2020-12-05 20:58         ` thelma
  2020-12-05 21:07         ` thelma
  1 sibling, 0 replies; 14+ messages in thread
From: thelma @ 2020-12-05 20:58 UTC (permalink / raw
  To: gentoo-user

On 12/05/2020 12:33 PM, karl@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, karl@aspodata.se wrote:
>>> Karl:
> ...
>>> Instead of barcode you could try out zint:
>>>
>>> git clone https://git.code.sf.net/p/zint/code zint-code
>>> cd zint-code
>>> git co ade31c41fba14b942cca30a4a605e48517613d25
>>> mkdir build
>>> cd build
>>> cmake ..
>>> make
>>> make install
>>>
>>> Note:
>>>  Since ZBarcode_Render was removed in
>>>  commit f9d969cdd66984906719c87ed486909a673decec
>>>  you have to check out an earlier commit e.g. the one
>>>  I used above.
>>>
>>>  possible also as root>>> ldconfig
>>>
>>>  And then reinstalling glabels
>>
>> Running "ldconfig" didn't help.
> 
> Strange, worked like a charm here.
> It has a lot of styles, do you want help making it work ?
> 
>>> There is also the iec16022 package,
> ...
>> I'll try the second solution if I have a change.  Thanks for the input.
> 
> Note that the iec16022 package only has one choise, just like QREncode.
> 
> Regards,
> /Karl Hammar

I run as root:  ldconfig
(no output)

Re-emerge glabels and barcode
but, there is still "? mark

eix app-text/barcode
[?] app-text/barcode
     Available versions:  0.98-r1 ~0.99
     Installed versions:  0.99(01:54:54 PM 12/05/2020)
     Homepage:            https://www.gnu.org/software/barcode/
     Description:         barcode generator



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05 19:33       ` [gentoo-user] glabels not showing GNU Barcode karl
  2020-12-05 20:58         ` thelma
@ 2020-12-05 21:07         ` thelma
  2020-12-05 21:31           ` karl
  1 sibling, 1 reply; 14+ messages in thread
From: thelma @ 2020-12-05 21:07 UTC (permalink / raw
  To: gentoo-user


On 12/05/2020 12:33 PM, karl@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, karl@aspodata.se wrote:
[snip]

>>>  possible also as root
>>> ldconfig
>>>
>>>  And then reinstalling glabels
>>
>> Running "ldconfig" didn't help.
> 
> Strange, worked like a charm here.
> It has a lot of styles, do you want help making it work ?
> 
>>> There is also the iec16022 package,
> ...
>> I'll try the second solution if I have a change.  Thanks for the input.
> 
> Note that the iec16022 package only has one choise, just like QREncode.
> 
> Regards,
> /Karl Hammar

https://packages.gentoo.org/packages/app-office/glabels

It seems that version 3.99 is available upstream, while the latest
version in the Gentoo tree is 3.4.1.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] glabels not showing GNU Barcode
  2020-12-05 21:07         ` thelma
@ 2020-12-05 21:31           ` karl
  2020-12-06  2:01             ` [gentoo-user] [SOLVED] " thelma
  0 siblings, 1 reply; 14+ messages in thread
From: karl @ 2020-12-05 21:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 837 bytes --]

Thelma:
...
> https://packages.gentoo.org/packages/app-office/glabels
> 
> It seems that version 3.99 is available upstream, while the latest
> version in the Gentoo tree is 3.4.1.

There is two glabels, the "old" 3-series, and the newer "qt"
4-series, you can get them with:

git clone https://github.com/jimevins/glabels.git
git clone https://github.com/jimevins/glabels-qt.git

///

BTW, reading
 glabels-qt/docs/BUILD-INSTRUCTIONS-LINUX.md 
I see the following excerp:

 <<
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
```
 >>

Doing just that and then reemerging glabels, gives me the missing gnu 
barcode backend.

Regards,
/Karl Hammar


[-- Attachment #2: gnu_barcode_styles.jpg --]
[-- Type: image/jpeg , Size: 19957 bytes --]

[-- Attachment #3: zint_styles.jpg --]
[-- Type: image/jpeg , Size: 36357 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode
  2020-12-05 21:31           ` karl
@ 2020-12-06  2:01             ` thelma
  2020-12-06 12:22               ` karl
  0 siblings, 1 reply; 14+ messages in thread
From: thelma @ 2020-12-06  2:01 UTC (permalink / raw
  To: Gentoo mailing list

On 12/05/2020 02:31 PM, karl@aspodata.se wrote:
> Thelma:
> ...
>> https://packages.gentoo.org/packages/app-office/glabels
>>
>> It seems that version 3.99 is available upstream, while the latest
>> version in the Gentoo tree is 3.4.1.
> 
> There is two glabels, the "old" 3-series, and the newer "qt"
> 4-series, you can get them with:
> 
> git clone https://github.com/jimevins/glabels.git
> git clone https://github.com/jimevins/glabels-qt.git
> 
> ///
> 
> BTW, reading
>  glabels-qt/docs/BUILD-INSTRUCTIONS-LINUX.md 
> I see the following excerp:
> 
>  <<
> 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
> ```
>  >>
> 
> Doing just that and then reemerging glabels, gives me the missing gnu 
> barcode backend.
> 
> Regards,
> /Karl Hammar

IT WORKED!

I created local overlay manifest the barcode-0.98-r1.ebuild  (get it
from gentoo "attic" )
emerged =app-text/barcode-0.98-r1
but it is missing something as there is a "?" beside installed version
Don't know why?

eix barcode shows:

[I] app-text/barcode
     Available versions:  0.98-r1 ~0.99
     Installed versions:  0.98-r1[?](06:45:36 PM 12/05/2020)
     Homepage:            https://www.gnu.org/software/barcode/
     Description:         barcode generator

re-emerged "app-office/glabels"
and the GNU barcode show up.


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode
  2020-12-06  2:01             ` [gentoo-user] [SOLVED] " thelma
@ 2020-12-06 12:22               ` karl
  2020-12-06 15:39                 ` Daniel Pielmeier
  0 siblings, 1 reply; 14+ messages in thread
From: karl @ 2020-12-06 12:22 UTC (permalink / raw
  To: gentoo-user

Thelma:
...
> IT WORKED!

Great!

Regards,
/Karl Hammar



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode
  2020-12-06 12:22               ` karl
@ 2020-12-06 15:39                 ` Daniel Pielmeier
  2020-12-06 15:46                   ` Daniel Pielmeier
  0 siblings, 1 reply; 14+ messages in thread
From: Daniel Pielmeier @ 2020-12-06 15:39 UTC (permalink / raw
  To: gentoo-user

karl@aspodata.se schrieb am 06.12.20 um 13:22:
> Thelma:
> ...
>> IT WORKED!
> 
> Great!
> 
> Regards,
> /Karl Hammar
> 
> 

Things like this should be handled in a bug report!

Actually there is one [1] already. Don't know who opened it and if it 
was independent of this discussion. Times of this thread and the bug 
opening suggest a relation ;-)

[1] https://bugs.gentoo.org/758491

-- 
Regards
Daniel


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [gentoo-user] [SOLVED] glabels not showing GNU Barcode
  2020-12-06 15:39                 ` Daniel Pielmeier
@ 2020-12-06 15:46                   ` Daniel Pielmeier
  0 siblings, 0 replies; 14+ messages in thread
From: Daniel Pielmeier @ 2020-12-06 15:46 UTC (permalink / raw
  To: gentoo-user

Daniel Pielmeier schrieb am 06.12.20 um 16:39:
> karl@aspodata.se schrieb am 06.12.20 um 13:22:
>> Thelma:
>> ...
>>> IT WORKED!
>>
>> Great!
>>
>> Regards,
>> /Karl Hammar
>>
>>
> 
> Things like this should be handled in a bug report!
> 
> Actually there is one [1] already. Don't know who opened it and if it 
> was independent of this discussion. Times of this thread and the bug 
> opening suggest a relation ;-)
> 
> [1] https://bugs.gentoo.org/758491
> 

Okay now I know who opened the bug :-)

thelma=joseph?

Next time just add this information here. This way everybody interested 
can also track the progress at the bug tracker!

-- 
Best Regards
Daniel


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-12-06 15:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-05  7:35 [gentoo-user] glabels not showing GNU Barcode thelma
2020-12-05  8:03 ` thelma
2020-12-05  8:26   ` Dale
2020-12-05 13:52 ` karl
2020-12-05 16:58   ` [gentoo-user] karl
2020-12-05 18:36     ` [gentoo-user] thelma
2020-12-05 19:33       ` [gentoo-user] glabels not showing GNU Barcode karl
2020-12-05 20:58         ` thelma
2020-12-05 21:07         ` thelma
2020-12-05 21:31           ` karl
2020-12-06  2:01             ` [gentoo-user] [SOLVED] " thelma
2020-12-06 12:22               ` karl
2020-12-06 15:39                 ` Daniel Pielmeier
2020-12-06 15:46                   ` Daniel Pielmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox