ports/81333: www/linux-firefox doesn't pick up linux-flashplugin7 via linkfarm

Damian Gerow dgerow at afflictions.org
Sat May 21 05:50:08 UTC 2005


>Number:         81333
>Category:       ports
>Synopsis:       www/linux-firefox doesn't pick up linux-flashplugin7 via linkfarm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 21 05:50:02 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Damian Gerow
>Release:        FreeBSD 5.4-STABLE amd64
>Organization:
>Environment:
System: FreeBSD dementia.afflictions.org 5.4-STABLE FreeBSD 5.4-STABLE #1: Thu May 5 19:13:47 EDT 2005 root@:/usr/obj/usr/src/sys/GENERIC amd64


>Description:
When running linux-firefox and linux-flashplugin7, the links to enable the
plugin must be created manually, as the provided 'linkfarm' utility only looks
for linux-flashplugin6.  Note that concessions also need to be made for
linux-flashplugin, but those are not made here.

The utility also doesn't get rid of stale links, which prohibits someone from
easily swapping, say, flashplugin versions: as each version makes the same
softlink within /usr/X11R6/lib/linux-firefox/plugins, and as linkfarm does
not remove old links, new ones cannot be created.
>How-To-Repeat:
Install www/linux-flashplugin7.  Run linkfarm.  Watch as it doesn't enable
the plugin.
>Fix:
Patch below adds support for www/linux-flashplugin7, and also removes stale
links within the plugin directory:

--- linkfarm.orig       Sat May 21 01:39:40 2005
+++ linkfarm    Sat May 21 01:42:55 2005
@@ -1,11 +1,13 @@
 #!/bin/sh
 # Run this after installing Beonex, Mozilla or Netscape plugins.
 cd /usr/X11R6/lib/linux-firefox/plugins
+/usr/bin/find -L . -type l -delete
 /usr/bin/find /usr/local/lib/linux-beonex/plugins/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/lib/netscape-linux/plugins/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/lib/flash/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/lib/linux-mozilla/plugins/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/lib/linux-netscape*/plugins/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/lib/linux-flashplugin6/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
+/usr/bin/find /usr/local/lib/linux-flashplugin7/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/linux-blackdown-jdk1.3.1/jre/plugin/i386/mozilla/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null
 /usr/bin/find /usr/local/linux-blackdown-jdk1.4.1/jre/plugin/i386/mozilla/* -maxdepth 1 -exec /bin/ln -s {} \; 2>/dev/null

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list