Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread karl
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



Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma


On 12/05/2020 12:33 PM, k...@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, k...@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.





Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma
On 12/05/2020 12:33 PM, k...@aspodata.se wrote:
> Thelma:
>> On 12/05/2020 09:58 AM, k...@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




Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread karl
Thelma:
> On 12/05/2020 09:58 AM, k...@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




Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread 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.

///

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





Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread Dale
the...@sys-concept.com wrote:
> On 12/05/2020 12:35 AM, the...@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

:-)  :-) 



Re: [gentoo-user] glabels not showing GNU Barcode

2020-12-05 Thread thelma
On 12/05/2020 12:35 AM, the...@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.