Opened 2 years ago

Closed 2 years ago

#17523 closed enhancement (fixed)

libXpm-3.5.15 (Xorg Library)

Reported by: Douglas R. Reno Owned by: blfs-book
Priority: elevated Milestone: 11.3
Component: BOOK Version: git
Severity: normal Keywords:
Cc:

Description

Change History (13)

comment:1 by Xi Ruoyao, 2 years ago

We need --disable-open-zfile or it will require compress, which is not in LFS or BLFS.

comment:2 by Xi Ruoyao, 2 years ago

Some tests fail like

ERROR: XpmCreate - Bail out! ERROR:TestAllFiles.h:80:TestAllFilesByType: assertion failed (err == NULL): Error opening directory ?/home/xry111/sources/xc/lib/libXpm-3.5.15/test/pixmaps/good/generated?: No such file or directory (g-file-error-quark, 4)
ERROR: XpmWrite - Bail out! ERROR:TestAllFiles.h:80:TestAllFilesByType: assertion failed (err == NULL): Error opening directory ?/home/xry111/sources/xc/lib/libXpm-3.5.15/test/pixmaps/good/generated?: No such file or directory (g-file-error-quark, 4)
ERROR: XpmRead - Bail out! ERROR:TestAllFiles.h:80:TestAllFilesByType: assertion failed (err == NULL): Error opening directory ?/home/xry111/sources/xc/lib/libXpm-3.5.15/test/pixmaps/good/generated?: No such file or directory (g-file-error-quark, 4)

It looks like they are related to --disable-open-zfile. But I don't want to add compress command into LFS/BLFS because nobody should use it in 2023 IMO.

comment:3 by Bruce Dubbs, 2 years ago

It looks like they didn't get this right. I checked ./configure --help and it says:

--enable-open-zfile     Search for files with .Z & .gz extensions
                        automatically [default=auto]

But a simple ./configure gives:

checking for compress... no
configure: error: compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile

It also looks like they are conflating .Z files and .gz files. Actually, I think gzip can handle .Z files.

in reply to:  3 ; comment:4 by Xi Ruoyao, 2 years ago

Replying to Bruce Dubbs:

It looks like they didn't get this right. I checked ./configure --help and it says:

--enable-open-zfile     Search for files with .Z & .gz extensions
                        automatically [default=auto]

But a simple ./configure gives:

checking for compress... no
configure: error: compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile

It also looks like they are conflating .Z files and .gz files. Actually, I think gzip can handle .Z files.

gzip provides the uncompress command, which can handle .Z files. But it looks like this package needs compress command as well (for writing .Z files?)

in reply to:  4 comment:5 by Xi Ruoyao, 2 years ago

Replying to Xi Ruoyao:

Replying to Bruce Dubbs:

It looks like they didn't get this right. I checked ./configure --help and it says:

--enable-open-zfile     Search for files with .Z & .gz extensions
                        automatically [default=auto]

But a simple ./configure gives:

checking for compress... no
configure: error: compress not found, set XPM_PATH_COMPRESS or use --disable-stat-zfile

It also looks like they are conflating .Z files and .gz files. Actually, I think gzip can handle .Z files.

gzip provides the uncompress command, which can handle .Z files. But it looks like this package needs compress command as well (for writing .Z files?)

On my system there are no .Z files in /usr hierarchy.

comment:6 by Xi Ruoyao, 2 years ago

I think we can just force XPM_PATH_COMPRESS=/usr/bin/compress, list compress as an external runtime optional dependency, and claim that the test suite does not work.

comment:7 by Bruce Dubbs, 2 years ago

I tried XPM_PATH_COMPRESS=/usr/bin/gzip and it 'almost' worked.

make check failed. Then I tried 'sudo ln -s gzip /usr/bin/compress' and got it to 8 PASS and 1 ERROR.

comment:8 by Xi Ruoyao, 2 years ago

Or maybe we can just install https://vapier.github.io/ncompress/ ?

I think it will be < 0.1 SBU.

comment:9 by Bruce Dubbs, 2 years ago

I really dislike adding a package just for tests. We already have some packages that are not really useful (ed, reiserfsprogs, others).

I tried to find a place to raise an issue upstream, but couldn't find it.

I'd just as soon use './configure XPM_PATH_COMPRESS=/dev/null' and say that the checks are broken (they are).

in reply to:  9 comment:10 by Xi Ruoyao, 2 years ago

Replying to Bruce Dubbs:

I really dislike adding a package just for tests. We already have some packages that are not really useful (ed, reiserfsprogs, others).

I tried to find a place to raise an issue upstream, but couldn't find it.

https://gitlab.freedesktop.org/xorg/lib/libxpm/-/issues

I'd just as soon use './configure XPM_PATH_COMPRESS=/dev/null' and say that the checks are broken (they are).

comment:11 by pierre, 2 years ago

Looks like there is now a MR that fixes the compress issue in tests: https://gitlab.freedesktop.org/xorg/lib/libxpm/-/merge_requests/11

I've not tested yet.

Last edited 2 years ago by pierre (previous) (diff)

comment:12 by Bruce Dubbs, 2 years ago

Looking at the Xorg Libraries page, we say that four packages have test suites, but those do not include libXpm. Let's just leave it that way and add --disable-open-zfile to the case statement.

I suppose we can add compress as an optional external dependency.

comment:13 by Bruce Dubbs, 2 years ago

Resolution: fixed
Status: newclosed

Used 'sed -i '/TestAll.*TRUE/s|||' test/TestAllFiles.h' to make the tests pass.

Fixed at commit 4d91a5b021ad5ac7272e1100095f3a9f2ea618b3

Note: See TracTickets for help on using tickets.