Bug 223644

Summary: sysutils/pacman installs an empty copy of bin/repo-add on FreeBSD 11.x.
Product: Ports & Packages Reporter: Ed Schouten <ed>
Component: Individual Port(s)Assignee: Dmitry Marakasov <amdmi3>
Status: Closed FIXED    
Severity: Affects Only Me CC: amdmi3, ed
Priority: --- Flags: amdmi3: maintainer-feedback+
Version: Latest   
Hardware: Any   
OS: Any   

Description Ed Schouten freebsd_committer freebsd_triage 2017-11-13 07:15:37 UTC
Hi there,

I'm replacing a 10.x system by one based on 11.1-STABLE r325708. On this system, I need to generate Arch Linux repositories, which is why I have pacman installed.

On 10.x, the port works fine, but on 11.x, bin/repo-add is empty, meaning I can't create any repositories:

08:14:16 ed@x ~ $ ls -l /usr/local/bin/repo-add
-r-xr-xr-x  1 root  wheel  0 Nov 13 08:10 /usr/local/bin/repo-add*

Is this a known issue?
Comment 1 Ed Schouten freebsd_committer freebsd_triage 2017-11-13 07:55:57 UTC
Figured it out: I saw some 'gm4: command not found' errors during the build. Installing the m4 package manually and rebuilding the port makes 'repo-add' work for me again.

In other words, pacman should have a m4 build dependency.
Comment 2 commit-hook freebsd_committer freebsd_triage 2017-11-23 18:55:26 UTC
A commit references this bug:

Author: amdmi3
Date: Thu Nov 23 18:54:44 UTC 2017
New revision: 454770
URL: https://svnweb.freebsd.org/changeset/ports/454770

Log:
  - Add missing dependency on GNU m4 [1]
  - Switch to USES=localbase
  - Switch to options helpers

  PR:		223644 [1]
  Submitted by:	ed [1]

Changes:
  head/sysutils/pacman/Makefile