Bug 194834 - [fix] x11-fm/librfm issues, rodent too
Summary: [fix] x11-fm/librfm issues, rodent too
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: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 15:07 UTC by John Marino
Modified: 2015-04-25 18:21 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Marino freebsd_committer freebsd_triage 2014-11-05 15:07:46 UTC
the new port x11-fm/librfm is not jobs safe (this affects both platforms).

It also installs the .pc file in the wrong location for DragonFly.
This is my fix for librfm:

CONFIGURE_ARGS+=	--with-pkglibdata
MAKE_JOBS_UNSAFE=	yes

The CONFIGURE_ARGS line won't hurt FreeBSD and it fixes dragonFly.  I think you should add both lines to the makefile.


x11-fm/rodent also has issues.  It won't fully build on DragonFly, but I did discover this is needed for systems without the perl symlink:

USES+=          shebangfix
SHEBANG_FILES=  configure

Please add the equivalent on those lines the rodent makefile.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-05 15:07:46 UTC
Maintainers CC'd
Comment 2 Rodrigo Osorio freebsd_committer freebsd_triage 2014-11-06 23:40:54 UTC
I'll take a look on it asap
Comment 3 Rodrigo Osorio freebsd_committer freebsd_triage 2014-11-16 21:53:02 UTC
committed thanks.

Btw, I try to build the FBSD ports in DF without success, 
there is a manual to do that ?
Comment 4 commit-hook freebsd_committer freebsd_triage 2014-11-16 21:56:28 UTC
A commit references this bug:

Author: rodrigo
Date: Sun Nov 16 21:56:24 UTC 2014
New revision: 372653
URL: https://svnweb.freebsd.org/changeset/ports/372653

Log:
  - fix x11-fm/librfm and rodent issues  with DFbsd
  - fix librfm pkg-descr
  - remove unnecesary dirrm & dirrmtry

  PR:		ports/194834
  Submitted by:	marino
  Approved by:	mentors (implicit)

Changes:
  head/x11-fm/librfm/Makefile
  head/x11-fm/librfm/pkg-descr
  head/x11-fm/librfm/pkg-plist
  head/x11-fm/rodent/Makefile
  head/x11-fm/rodent/pkg-plist
Comment 5 John Marino freebsd_committer freebsd_triage 2014-11-16 21:57:26 UTC
most would build if you stick it in /usr/ports but if checks arch (e.g. ONLY _FOR_ARCH= amd64 or ".if ${ARCH} == amd64") then it would fail because these are converted to x86_64.

But basically it has to be placed in /usr/dports, that's the main trick.
Comment 6 John Marino freebsd_committer freebsd_triage 2014-11-16 21:58:15 UTC
by the way, rodent actually didn't build with this new version.

unless you fixed this error:
../../plugins/mount_points/fstab-module.i:309:3: error: #error "This should not happen"
Comment 7 Rodrigo Osorio freebsd_committer freebsd_triage 2014-11-16 22:00:22 UTC
reopened to fix the bug reported by marino@
Comment 8 John Marino freebsd_committer freebsd_triage 2014-11-16 22:02:29 UTC
thanks.  I was going to eventually look at it, but maybe the issue will be obvious (I haven't looked yet).
Comment 9 John Marino freebsd_committer freebsd_triage 2014-12-15 23:35:22 UTC
I got rodent building with this added to Makefile.DragonFly :

post-patch:
        ${REINPLACE_CMD} -e 's|ac_uname_s=.*|ac_uname_s=FreeBSD|' \
                ${WRKSRC}/apps/fgr/configure \
                ${WRKSRC}/apps/rodent-pkg/configure \
                ${WRKSRC}/apps/rodent-iconmgr/configure \
                ${WRKSRC}/apps/rodent-fgr/configure \
                ${WRKSRC}/apps/rodent-fm/configure \
                ${WRKSRC}/apps/rodent-diff/configure


The problem is ac_name_s only checks FreeBSD and OpenBSD to define "THIS_IS_BSD".

I guess the configure scripts need to be fixed upstream.
Comment 10 John Marino freebsd_committer freebsd_triage 2015-04-02 08:10:50 UTC
Rodrigo, is there an update for this PR?  What (if anything) do you want to do?  Maybe file a bug upstream?
Comment 11 Rodrigo Osorio freebsd_committer freebsd_triage 2015-04-14 21:52:31 UTC
I"m running out of time at the moment but I'll take in count your remarks.
Comment 12 John Marino freebsd_committer freebsd_triage 2015-04-17 18:19:30 UTC
Rodrigo,
why does rodent and librfm require the japanese version of gawk?

gawk:${PORTSDIR}/japanese/gawk

This port is so old that texinfo can't build its documentation anymore and I was going to just remove it from dports, but these dependencies are hindering that.
Comment 13 Rodrigo Osorio freebsd_committer freebsd_triage 2015-04-18 12:42:47 UTC
dependency fixed
Comment 14 Rodrigo Osorio freebsd_committer freebsd_triage 2015-04-19 16:19:34 UTC
I just opened a ticket at upstream to ask for a fix,
in the meantime we cn consider something like what you suggest :

sed 's%"\$ac_uname_s" = "FreeBSD"%"\$ac_uname_s" = "DragonFlyBSD" || "\$ac_uname_s" = "FreeBSD"%'

I'm right now building the dports and if it it works to me :)
Comment 15 Rodrigo Osorio freebsd_committer freebsd_triage 2015-04-25 17:17:46 UTC
@marino, got your point about the fix for DF. 

I opened a ticket upstream to fix rodent for DF and they responded a fix is on the way.

I think we can close this PR now.
Comment 16 John Marino freebsd_committer freebsd_triage 2015-04-25 18:21:45 UTC
great, thanks!  go ahead and close it.  I'll remove the DF patches from dports when the fix comes in.