Bug 242451

Summary: Wrong File Location Print Test Page sysutils/plasma5-systemsettings
Product: Ports & Packages Reporter: Anthony Donnelly <amzo1337>
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed FIXED    
Severity: Affects Some People CC: tcberner
Priority: --- Flags: tcberner: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Remove Hardcoded path
none
Makefile patch none

Description Anthony Donnelly 2019-12-05 14:11:41 UTC
When printing a test page from within plasma5 system settings, it returns an error that it couldn't find the file for the test page.

The file it tries to print is provided by cups-filter and is located in:

${LOCALBASE}/share/cups/data/testprint

However, running truss when trying to print the test page shows it is looking in the wrong location:

openat(AT_FDCWD,"/usr/share/cups/data/testprint",O_RDONLY,00) ERR#2 'No such file or directory'

In one of the KDE packages there is a hardcoded path to the print test page.
Comment 1 Tobias C. Berner freebsd_committer freebsd_triage 2019-12-05 17:39:34 UTC
Thanks, I'll look into it.

Mfg Tobias
Comment 2 commit-hook freebsd_committer freebsd_triage 2019-12-05 18:50:51 UTC
A commit references this bug:

Author: tcberner
Date: Thu Dec  5 18:50:36 UTC 2019
New revision: 519104
URL: https://svnweb.freebsd.org/changeset/ports/519104

Log:
  print/print-manager: fix cups install location path

  PR:		242451
  Submitted by:	Anthony <amzo1337@gmail.com>

Changes:
  head/print/print-manager/Makefile
Comment 3 Tobias C. Berner freebsd_committer freebsd_triage 2019-12-05 18:52:19 UTC
Fixed. Thank for the report.
Comment 4 Anthony Donnelly 2019-12-05 18:52:45 UTC
Created attachment 209737 [details]
Remove Hardcoded path
Comment 5 Anthony Donnelly 2019-12-05 18:58:03 UTC
Created attachment 209738 [details]
Makefile patch
Comment 6 Anthony Donnelly 2019-12-05 18:59:32 UTC
Looks like I submitted my patches just as you fixed it. My bad. My way wasn't as efficient of a solution anyways.