diff options
author | https://www.google.com/accounts/o8/id?id=AItOawlHLiVkr16cy4E11FqrDFre19QM_5u3hBo <Fergus@web> | 2014-12-24 10:23:01 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-12-24 10:23:01 -0400 |
commit | 5b4133d50626337c8d058f843c54867fc40d3068 (patch) | |
tree | 6673d061864a9020b59a44fdef3c0d6c0c2c7879 /doc | |
parent | 97f8b33c1a65fbd1e409e073ec152661e8bff74c (diff) | |
download | ikiwiki-5b4133d50626337c8d058f843c54867fc40d3068.tar ikiwiki-5b4133d50626337c8d058f843c54867fc40d3068.tar.gz |
Create new TODO for minor makefile patches
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/Add_DESTDIR_to_the___39__pm__95__filter__39___and_use_MAKE_in___39__po__47__Makefile__39__.mdwn | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/doc/todo/Add_DESTDIR_to_the___39__pm__95__filter__39___and_use_MAKE_in___39__po__47__Makefile__39__.mdwn b/doc/todo/Add_DESTDIR_to_the___39__pm__95__filter__39___and_use_MAKE_in___39__po__47__Makefile__39__.mdwn new file mode 100644 index 000000000..4b84e56b5 --- /dev/null +++ b/doc/todo/Add_DESTDIR_to_the___39__pm__95__filter__39___and_use_MAKE_in___39__po__47__Makefile__39__.mdwn @@ -0,0 +1,65 @@ +The `PM_FILTER` doesn't include the `DESTDIR` variable. This means that, if you use it with your build, it's incoherent to the rest of the build; i.e. the `INSTALLDIR_AUTOREPLACE` doesn't include it. Honestly I can't recall what the final effect of that was but the following [[patch]] fixed it. + +[[!format diff """ +diff --git a/Makefile.PL b/Makefile.PL +index 5b0eb74..94adb0f 100755 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -194,7 +194,7 @@ coverage: + WriteMakefile( + NAME => 'IkiWiki', + PREFIX => "/usr/local", +- PM_FILTER => './pm_filter $(PREFIX) $(VER) $(PROBABLE_INST_LIB)', ++ PM_FILTER => './pm_filter $(DESTDIR)$(PREFIX) $(VER) $(PROBABLE_INST_LIB)', + MAN1PODS => {}, + PREREQ_PM => { + 'XML::Simple' => "0", +"""]] + +Also, the `po/Makefile` presumes the use of `make`, explicitly. If you use another build tool it fails (ironically I was actually using `gmake` in non-gnu environment so it wasn't aliased to `make`). Switch from the explicit call to the generic recall variable `$(MAKE)`. + +[[!format diff """ +diff --git a/po/Makefile b/po/Makefile +index 5ec4a15..4d1d33e 100644 +--- a/po/Makefile ++++ b/po/Makefile +@@ -84,7 +84,7 @@ underlays: ../ikiwiki.out underlays_copy_stamp + ../ikiwiki.out -libdir .. -setup underlay.setup -refresh + + ../ikiwiki.out: ../Makefile +- make -C .. ikiwiki.out ++ $(MAKE) -C .. ikiwiki.out + + ../Makefile: ../Makefile.PL + cd .. && ./Makefile.PL +"""]] + +Note following comments by [[Joey]] via github + +> These are not mergeable in their current state. +> +> *Pull 'DESTDIR' update to 'Makefile.PL' from mixed-master.* +> +> This doesn't explain +> +> * what the problem was +> * how the change fixed it +> * why the change is correct + +>> No, I suppose not; I won't explain. Hopefully the above clarifies. -- [[ttw]] + +> *Re-merge from 'joeyh' to new, clean head.* +> +> I have no idea what the above commit is doing, but it somehow makes changes to 432 files?! + +>> Yeah, sort of. I'm not very good with computers ... specifically, with `git` and stuff. The diff between my `master` and your `master` is only two files so hopefully it *is* actually doing what's intended (that is, those changes are from your repository into my own -- I "rebased" my own in an attempt to simplify things). Anyway. -- [[ttw]] + +> *Pull the 'po/Makefile' change from the mixed-master.* +> +> This one is adding a $(MAKE) where there was a make. Which is fine, but the commit message is again, horrible. What is the mixed-master? Describe the change you are making, not your internal process for making it. + +>> Note to others, `graft` from `hg` doesn't pull original commit messages the way you wish it did (or I did something wrong ... more likely). -- [[ttw]] + +> Also, please don't use github pull requests for ikiwiki. Post todo items on ikiwiki.info with a link to your git repository and branches to be merged. + +>> NP. [[http://github.com/ttw/ikiwiki]]; `master` branch. -- [[ttw]] |