Bug 235235 - textproc/uchardet: packaging error when DEBUG is enabled
Summary: textproc/uchardet: packaging error when DEBUG is enabled
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Yuri Victorovich
URL:
Keywords: needs-patch
Depends on:
Blocks:
 
Reported: 2019-01-27 11:03 UTC by Roman Bogorodskiy
Modified: 2019-01-27 18:07 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (yuri)
koobs: merge-quarterly?


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Bogorodskiy freebsd_committer 2019-01-27 11:03:13 UTC
port directory: /usr/ports/textproc/uchardet
package name: uchardet-0.0.6
...
#### /usr/local/etc/poudriere.d/current-make.conf ####
OPTIONS_SET=    DEBUG
OPTIONS_UNSET=  NLS DOCS EXAMPLES TEST MANPAGES
WITH_DEBUG=yes
...
=======================<phase: stage          >============================
===>  Staging for uchardet-0.0.6
===>   Generating temporary packing list
[0/1] cd /wrkdirs/usr/ports/textproc/uchardet/work/.build && /usr/local/bin/cmake -P cmake_install.cmake
-- Install configuration: "Debug"
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/libdata/pkgconfig/uchardet.pc
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/lib/libuchardet.so.0.0.6.debug
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/lib/libuchardet.so.0
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/lib/libuchardet.so
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/lib/libuchardet.a
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/include/uchardet/uchardet.h
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/bin/uchardet
-- Set runtime path of "/wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/bin/uchardet" to ""
-- Installing: /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/man/man1/uchardet.1
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for uchardet-0.0.6
pkg-static: Unable to access file /wrkdirs/usr/ports/textproc/uchardet/work/stage/usr/local/lib/libuchardet.so.0.0.6:No such file or directory
*** Error code 1

As you can see, when debug is enabled, it installs libuchardet.so.0.0.6.debug instead of libuchardet.so.0.0.6.

I can share complete poudriere log if needed.
Comment 1 Yuri Victorovich freebsd_committer 2019-01-27 17:53:13 UTC
WITH_DEBUG=yes is what triggers it.
Comment 2 Yuri Victorovich freebsd_committer 2019-01-27 18:06:37 UTC
Fix committed.
Thanks for reporting it!
Comment 3 commit-hook freebsd_committer 2019-01-27 18:07:23 UTC
A commit references this bug:

Author: yuri
Date: Sun Jan 27 18:06:21 UTC 2019
New revision: 491374
URL: https://svnweb.freebsd.org/changeset/ports/491374

Log:
  textproc/uchardet: Fix packaging error when WITH_DEBUG is set

  PR:		235235
  Reported by:	novel

Changes:
  head/textproc/uchardet/Makefile
  head/textproc/uchardet/pkg-plist