[kde-freebsd] kdebase3/kdehier error

Michael Nottebrock lofi at freebsd.org
Sat May 12 11:19:23 CEST 2007


On Saturday, 12. May 2007, Michael Nottebrock wrote:
> On Friday, 11. May 2007, Brian Somers wrote:
> > Hi,
> >
> > It seems that there's a very purposeful bug in kdebase3,
> > namely
> >
> > SUB_FILES=      kdm pkg-deinstall pkg-install pkg-message
> >
> > which contains pkg-install and pkg-deinstall.  These
> > scripts explicitly remove PREFIX/share/templates/.keep_me
> > which is carefully created by kdehier.
> >
> > If I "make -C /usr/ports/x11/kde3 package-recursive" it
> > fails because of this (everything's "make install"d and
> > the ensuing "make package-noinstall" fails for kdehier
> > because kdebase3 has removed kdehier's .keep_me file).
> >
> > The cvs logs for pkg-{de,}install.in give no hint at
> > their intent, so I'm at a bit of a loss as to why
> > this is done.
>
> Short explanation:
>
> It's a bad hack, but we can't get rid of it easily.
>
> Long explanation:
>
> The .keep_me files in share/templates unfortunately show up as broken
> desktop context menu entries - so we delete them in pkg-install if kdebase
> is installed because we assume that if someone installs kdebase, they want
> to use the desktop. We put them back if kdebase is deinstalled, because we
> assume that the user might want to keep around other parts of KDE around
> and even might install other ports which add context menu entries and then
> reinstall kdebase later. The final deletion is left to the deinstallation
> of kdehier.

FWIW, I think you should be able to work around this by defining 
PACKAGE_BUILDING (like the FreeBSD package building cluster does) - this will 
prevent pkg-install from being run in the post-install target of the kdebase3 
port and thus should leave the .keep_me files intact.


-- 
   ,_,   | Michael Nottebrock               | lofi at freebsd.org
 (/^ ^\) | FreeBSD - The Power to Serve     | http://www.freebsd.org
   \u/   | K Desktop Environment on FreeBSD | http://freebsd.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-freebsd/attachments/20070512/2830dfe9/attachment.pgp 


More information about the kde-freebsd mailing list