Bug 254031 - graphics/xfig: Fix desktop menu entry, portlint fixes
Summary: graphics/xfig: Fix desktop menu entry, portlint fixes
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: Guido Falsi
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-05 09:33 UTC by Guido Falsi
Modified: 2021-03-06 11:38 UTC (History)
2 users (show)

See Also:
mjl: maintainer-feedback+
madpilot: merge-quarterly+


Attachments
patch (906 bytes, patch)
2021-03-05 09:33 UTC, Guido Falsi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Guido Falsi freebsd_committer freebsd_triage 2021-03-05 09:33:45 UTC
Created attachment 222995 [details]
patch

On the mailing lists user Antonio Olivares <olivares14031@gmail.com> reported on current@ that xfig installs an incorrect desktop entry, with /usr/bin/xfig binary path hardcoded.

Attached patch fixes this replacing the hardcoded path with one generated from PREFIX, pointing to the actually installed binary location.

While here I also converted the port to USES localbase and silenced some portlint warnings about order of statements.

Can you approve these changes?
Comment 1 mjl 2021-03-06 00:59:30 UTC
As maintainer, I am fine with this patch being committed.  One question though: is the full path in the Exec line even needed?  I noticed emacs.desktop just has 

Exec=emacs %F

Lastly, can someone please look at

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252092

Its the latest version of xfig (3 months ago).
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-03-06 11:35:07 UTC
A commit references this bug:

Author: madpilot
Date: Sat Mar  6 11:34:28 UTC 2021
New revision: 567478
URL: https://svnweb.freebsd.org/changeset/ports/567478

Log:
  - Fix .desktop entry, remove wrong path from Exec line
  - Convert port to USES=localbase
  - SSilence portlint warnings about variables order

  PR:		254031
  Approved by:	mjl@luckie.org.nz (maintainer)
  MFH:		2021Q1

Changes:
  head/graphics/xfig/Makefile
Comment 3 commit-hook freebsd_committer freebsd_triage 2021-03-06 11:36:09 UTC
A commit references this bug:

Author: madpilot
Date: Sat Mar  6 11:35:50 UTC 2021
New revision: 567479
URL: https://svnweb.freebsd.org/changeset/ports/567479

Log:
  MFH: r567478

  - Fix .desktop entry, remove wrong path from Exec line
  - Convert port to USES=localbase
  - Silence portlint warnings about variables order

  PR:		254031
  Approved by:	mjl@luckie.org.nz (maintainer)

Changes:
_U  branches/2021Q1/
  branches/2021Q1/graphics/xfig/Makefile
Comment 4 Guido Falsi freebsd_committer freebsd_triage 2021-03-06 11:38:38 UTC
Committed this patch and also merged it to quarterly.

Your other issue is assigned to the committed who is also maintaining the other port involved. I also see him in CC to this bug report, so he is reading these messages.

If he can't handle it he can return it to the pool to signal other committers it can be taken.