Last weekend I updated my cdk since a couple of weeks. I knew that there was an update of the zlib package in it. After the update when I did a "make .enigma" the new version of zlib was downloaded, but nothing further happened. In Makefile there are a number of dependancies that at least should trigger this package to build.
This problem is caused by the timestamp of the downloaded file. The timestamp is of Oct 2004. The file was downloaded with wget which also copies the timestamp. This makes the file .libz (which is the target that should rebuild zlib) newer, and this prohibits the package from building.
Below is a patch for the cdk with my suggestion for a solution. A line is added in rules-archive.pl that does a "touch" on archive package after download. There is also a change included on Makefile.am: This will cause Makefile to rebuild after changing rules-archive.pl.
Could you please consider to include this in cvs? In case of questions or if some needs the patch in a file then you can always contact me.
Cheers,
Sat-Turner
Code: Alles auswählen
Index: cdk/rules-archive.pl
===================================================================
--- cdk/rules-archive.pl (revision 9)
+++ cdk/rules-archive.pl (working copy)
@@ -28,6 +28,7 @@
}
}
$output .= " || \\\n\twget -c -P Archive http://tuxbox.berlios.de/pub/tuxbox/cdk/src/" . $file;
+ $output .= "\n\t\@touch \$\@";
$output .= "\n\n";
}
}
Index: cdk/Makefile.am
===================================================================
--- cdk/Makefile.am (revision 18)
+++ cdk/Makefile.am (working copy)
@@ -2119,7 +2119,7 @@
@ARCHIVE@
if MAINTAINER_MODE
-Makefile-archive: $(top_srcdir)/rules-archive
+Makefile-archive: $(top_srcdir)/rules-archive $(top_srcdir)/rules-archive.pl
$(top_srcdir)/rules-archive.pl $(top_srcdir)/rules-archive > Makefile-archive
endif