Bug 270485 - x11/libXpm: update to 3.5.15
Summary: x11/libXpm: update to 3.5.15
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL: https://lists.x.org/archives/xorg-ann...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-27 18:15 UTC by Dimitry Andric
Modified: 2023-03-30 10:38 UTC (History)
2 users (show)

See Also:
manu: maintainer-feedback+


Attachments
Update x11/libXpm to 3.5.15 (1.24 KB, patch)
2023-03-27 18:16 UTC, Dimitry Andric
no flags Details | Diff
Update x11/libXpm to 3.5.15, round 2 (3.56 KB, patch)
2023-03-28 17:56 UTC, Dimitry Andric
no flags Details | Diff
Update x11/libXpm to 3.5.15, round 3 (3.58 KB, patch)
2023-03-28 18:21 UTC, Dimitry Andric
no flags Details | Diff
Update x11/libXpm to 3.5.15, round 4 (2.81 KB, patch)
2023-03-29 19:08 UTC, Dimitry Andric
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2023-03-27 18:16:41 UTC
Created attachment 241145 [details]
Update x11/libXpm to 3.5.15

This also converts the port to USE_GITLAB, since gitlab.com is upstream now.
Comment 2 Jan Beich freebsd_committer freebsd_triage 2023-03-27 19:00:34 UTC
Disclaimer: I'm not part of x11@, don't use libXpm and don't maintain any port that depends on libXpm. Feel free to ignore my review.

pkg-plist changes are missing:

$ poudriere testport -j 131amd64 x11/libXpm
[...]
===========================================================================
====> Running Q/A tests (stage-qa)
====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: man/man3/XpmAttributesSize.3.gz
Error: Orphaned: man/man3/XpmCreateBuffer.3.gz
Error: Orphaned: man/man3/XpmCreateBufferFromImage.3.gz
Error: Orphaned: man/man3/XpmCreateBufferFromPixmap.3.gz
Error: Orphaned: man/man3/XpmCreateBufferFromXpmImage.3.gz
Error: Orphaned: man/man3/XpmCreateData.3.gz
Error: Orphaned: man/man3/XpmCreateDataFromImage.3.gz
Error: Orphaned: man/man3/XpmCreateDataFromPixmap.3.gz
Error: Orphaned: man/man3/XpmCreateDataFromXpmImage.3.gz
Error: Orphaned: man/man3/XpmCreateImage.3.gz
Error: Orphaned: man/man3/XpmCreateImageFromBuffer.3.gz
Error: Orphaned: man/man3/XpmCreateImageFromData.3.gz
Error: Orphaned: man/man3/XpmCreateImageFromXpmImage.3.gz
Error: Orphaned: man/man3/XpmCreatePixmap.3.gz
Error: Orphaned: man/man3/XpmCreatePixmapFromBuffer.3.gz
Error: Orphaned: man/man3/XpmCreatePixmapFromData.3.gz
Error: Orphaned: man/man3/XpmCreatePixmapFromXpmImage.3.gz
Error: Orphaned: man/man3/XpmCreateXpmImage.3.gz
Error: Orphaned: man/man3/XpmCreateXpmImageFromBuffer.3.gz
Error: Orphaned: man/man3/XpmCreateXpmImageFromData.3.gz
Error: Orphaned: man/man3/XpmCreateXpmImageFromImage.3.gz
Error: Orphaned: man/man3/XpmCreateXpmImageFromPixmap.3.gz
Error: Orphaned: man/man3/XpmFree.3.gz
Error: Orphaned: man/man3/XpmFreeAttributes.3.gz
Error: Orphaned: man/man3/XpmFreeExtensions.3.gz
Error: Orphaned: man/man3/XpmFreeXpmImage.3.gz
Error: Orphaned: man/man3/XpmFreeXpmInfo.3.gz
Error: Orphaned: man/man3/XpmGetErrorString.3.gz
Error: Orphaned: man/man3/XpmLibraryVersion.3.gz
Error: Orphaned: man/man3/XpmMisc.3.gz
Error: Orphaned: man/man3/XpmRead.3.gz
Error: Orphaned: man/man3/XpmReadFileToBuffer.3.gz
Error: Orphaned: man/man3/XpmReadFileToData.3.gz
Error: Orphaned: man/man3/XpmReadFileToImage.3.gz
Error: Orphaned: man/man3/XpmReadFileToPixmap.3.gz
Error: Orphaned: man/man3/XpmReadFileToXpmImage.3.gz
Error: Orphaned: man/man3/XpmWrite.3.gz
Error: Orphaned: man/man3/XpmWriteFileFromBuffer.3.gz
Error: Orphaned: man/man3/XpmWriteFileFromImage.3.gz
Error: Orphaned: man/man3/XpmWriteFileFromPixmap.3.gz
Error: Orphaned: man/man3/XpmWriteFileFromXpmImage.3.gz
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1

(In reply to Dimitry Andric from comment #1)
> This also converts the port to USE_GITLAB, since gitlab.com is upstream now.

According to README.md within the distfile, the upstream is https://gitlab.freedesktop.org/xorg/lib/libXpm , not https://gitlab.com/libXpm/libXpm which doen't exist, anyway. USE_GITLAB + GL_COMMIT works fine because USES=xorg-cat:lib adjusts GL_* defaults.

> commit 364b68cacdcf0a95daea5bec9b3d20793c8bea66
> Author: Dimitry Andric <dim@FreeBSD.org>
> Date:   2023-03-26 14:34:10 +0200
> 
>     x11/libXpm: update to 3.5.15

Since ports/ migrated to Git, please, use "git format-patch -1" instead of "git log -1 -p" when attaching patches on the bugzilla. Otherwise, if anyone else lands it's hard to preserve correct attribution other than going the old "Submitted by" style.

> +USE_GITLAB=	yes
> +GL_COMMIT=	ddd8339e262cbb7b25993599299ad40e0c95ccf6

Maybe instead add tar:xz to USES, sorted alphabetically. Besides, it builds faster without implicit USES=autoreconf.

See also https://gitlab.freedesktop.org/xorg/lib/libXpm/-/commit/fa16fbda9c90
Comment 3 Alexey Dokuchaev freebsd_committer freebsd_triage 2023-03-28 07:18:17 UTC
(In reply to Dimitry Andric from comment #1)
> This also converts the port to USE_GITLAB
This looks wrong: according to the linked URL, release tarballs are still sanely named (without ugly embedded hash) and fetched from expected location https://xorg.freedesktop.org/archive/individual/lib/libXpm-3.5.15.tar.xz.  Please fix.

> since gitlab.com is upstream now.
Where their *development* happens is irrelevant as long as fetch process remains the same.
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2023-03-28 17:56:49 UTC
Created attachment 241160 [details]
Update x11/libXpm to 3.5.15, round 2

Adjust according to comments.
Comment 5 Emmanuel Vadot freebsd_committer freebsd_triage 2023-03-28 18:11:35 UTC
(In reply to Dimitry Andric from comment #4)

As jbeich@ noted earlier you don't need to add EXTRACT_SUFFX, just need to add tar:xz to USES.
Comment 6 Dimitry Andric freebsd_committer freebsd_triage 2023-03-28 18:21:21 UTC
Created attachment 241161 [details]
Update x11/libXpm to 3.5.15, round 3

That's the kind of magic I didn't know about. :)
Comment 7 Emmanuel Vadot freebsd_committer freebsd_triage 2023-03-28 19:11:55 UTC
Looks good now :)
Comment 8 Jan Beich freebsd_committer freebsd_triage 2023-03-28 19:27:53 UTC
Comment on attachment 241161 [details]
Update x11/libXpm to 3.5.15, round 3

> +OPTIONS_DEFINE=		MANPAGES NLS
> +OPTIONS_DEFAULT=	MANPAGES
> +OPTIONS_SUB=		yes

The manpages should probably be installed unconditionally if there're no extra dependencies. Otherwise, it'd be inconsistent with other x11@ ports like x11/libX11.
Comment 9 Alexey Dokuchaev freebsd_committer freebsd_triage 2023-03-29 02:33:25 UTC
(In reply to Jan Beich from comment #8)
> The manpages should probably be installed unconditionally if there're no extra
> dependencies.
That's right.  Unlike DOCS, we typically do not guard manpage installation behind the option.  The only exception is when manpages 1) must be generated, and 2) that pulls some heavy stack, e.g. TeX-based.

Now, to be fair, that's a relatively minor issue since the distfile abomination had been fixed.
Comment 10 Emmanuel Vadot freebsd_committer freebsd_triage 2023-03-29 06:06:33 UTC
(In reply to Alexey Dokuchaev from comment #9)

Since manpages where not installed previously I honestly don't care if they aren't enabled by default.
Comment 11 Alexey Dokuchaev freebsd_committer freebsd_triage 2023-03-29 09:00:05 UTC
(In reply to Emmanuel Vadot from comment #10)

So it was a bug before and it's good to have it fixed along with update.  Ports should install manpages, I often type "man some-X-related-function" and it's annoying having to google it because the manpage is not installed; this also saves some Internet traffic (on metered connection).
Comment 12 Jan Beich freebsd_committer freebsd_triage 2023-03-29 10:27:10 UTC
> Since manpages where not installed previously

Some were: man/man1/cxpm.1.gz and man/man1/sxpm.1.gz exist in 3.5.13.
Comment 13 Dimitry Andric freebsd_committer freebsd_triage 2023-03-29 11:05:13 UTC
(In reply to Alexey Dokuchaev from comment #9)
Ah, I wasn't aware of that. I thought maybe it would also save some space on small systems.
Comment 14 Dimitry Andric freebsd_committer freebsd_triage 2023-03-29 19:08:49 UTC
Created attachment 241190 [details]
Update x11/libXpm to 3.5.15, round 4

I think this will be good to commit now.
Comment 15 Emmanuel Vadot freebsd_committer freebsd_triage 2023-03-29 19:31:17 UTC
lgtm
Comment 16 commit-hook freebsd_committer freebsd_triage 2023-03-30 10:35:56 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=74a91198ce81ffca9c461cb0100ea0660738695a

commit 74a91198ce81ffca9c461cb0100ea0660738695a
Author:     Dimitry Andric <dim@FreeBSD.org>
AuthorDate: 2023-03-26 12:34:10 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2023-03-30 10:32:13 +0000

    x11/libXpm: update to 3.5.15

    Changelogs:
    3.5.14: https://gitlab.freedesktop.org/xorg/lib/libxpm/-/merge_requests/5
    3.5.15: https://gitlab.freedesktop.org/xorg/lib/libxpm/-/merge_requests/10

    PR:             270485
    Reviewed by:    danfe, jbeich, manu
    MFH:            2023Q1
    Security:       38f213b6-8f3d-4067-91ef-bf14de7ba518

 x11/libXpm/Makefile  |  5 +++--
 x11/libXpm/distinfo  |  6 +++---
 x11/libXpm/pkg-plist | 41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+), 5 deletions(-)