[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#1253: kthememgr installs empty theme files if build tree is symlink
From:       Petter Reinholdtsen <pere () hungry ! com>
Date:       1999-05-02 21:25:55
[Download RAW message or body]


Package: kthememgr
Version: snapshot 990501

I use lndir to make a separate build directory when installing KDE /
kdenonbeta.  In this case, kthememgr installs empty theme files, as
tar stores the symlinks, not the files.  This patch should fix the
problem.

'tar -h' will get tar to follow symlinks instead of storing the
symlinks themselves.

HP/UX does not have GNU tar as 'tar', and the native 'tar' does not
support --exclude.  I wanted the option to use GNUTAR=gtar on this
platform, and moved this program into it's own variable.

diff -ru src-990501/kthememgr/Makefile.am src-990501-hppa20ux10/kthememgr/Makefile.am
--- src-990501/kthememgr/Makefile.am    Wed Apr 28 03:45:39 1999
+++ src-990501-hppa20ux10/kthememgr/Makefile.am Sun May  2 23:19:38 1999
@@ -1,6 +1,7 @@
 APPSDIR = $(kde_appsdir)/Settings/Desktop
 INCLUDES= $(all_includes)
 THEMESDIR= $(kde_datadir)/kthememgr/Themes
+GNUTAR=tar

 ####### Files

@@ -41,7 +42,7 @@
        cd $(srcdir)/Themes; \
        for f in *; do \
          if [ -d $$f -a $$f != "CVS" ]; then \
-           tar --exclude CVS -c -f - $$f | gzip -c > $(THEMESDIR)/$$f.tar.gz; \
+           $(GNUTAR) --exclude CVS -h -c -f - $$f | gzip -c > $(THEMESDIR)/$$f.
tar.gz; \
          fi; \
        done


-- 
##>  Petter Reinholdtsen <##    | pere@td.org.uit.no
 O-  <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/    | Go Mozilla, go! Go!

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic