deprecating kerbsrc.zip
Elzey, Blaine A (Blaine)
blaine.elzey at alcatel-lucent.com
Thu Sep 20 07:22:55 EDT 2012
Ben,
I used the latest 10.3 source to build on Linux, Solaris, and Windows. I used the krbsrc.zip and had to make the following changes:
On Unix:
Add to Makefile.in before `make -f Makefile.in kerbsrc.zip`
for "FILES" variable, add:
clients/kswitch/*
util/profile/testmod/*
for "WINFILES" variable, add:
util/wshelper/*
windows/leash/htmlhelp/*
windows/leash/res/*
windows/leashdll/include/*
windows/leashdll/res/*
windows/include/*
windows/include/arpa/*
remove from lib/krb5/krb/Makefile.in:
line 187 "$(OUTPRE)preauth_sam2.$(OBJEXT) \"
I also have a note to "fix Makefile" for "install-windows::". I think this was to add an "@if exist" check.
fix Makefile
install-windows::
@if "$(KRB_INSTALL_DIR)"=="" @echo KRB_INSTALL_DIR is not defined! Please define it.
@if "$(KRB_INSTALL_DIR)"=="" @dir /b \nul\nul
@if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @echo The directory $(KRB_INSTALL_DIR) does not exist. Please create it.
@if not exist "$(KRB_INSTALL_DIR)\$(NULL)" @dir /b $(KRB_INSTALL_DIR)\nul
@if not exist "$(KRB_INSTALL_DIR)\include\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include"
@if not exist "$(KRB_INSTALL_DIR)\include\krb5\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include\krb5"
@if not exist "$(KRB_INSTALL_DIR)\include\gssapi\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\include\gssapi"
@if not exist "$(KRB_INSTALL_DIR)\lib\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\lib"
@if not exist "$(KRB_INSTALL_DIR)\bin\$(NULL)" @mkdir "$(KRB_INSTALL_DIR)\bin"
copy include\krb5.h "$(KRB_INSTALL_DIR)\include\."
copy include\krb5\krb5.h "$(KRB_INSTALL_DIR)\include\krb5\."
copy include\win-mac.h "$(KRB_INSTALL_DIR)\include\."
copy include\profile.h "$(KRB_INSTALL_DIR)\include\."
copy include\com_err.h "$(KRB_INSTALL_DIR)\include\."
copy include\gssapi\gssapi.h "$(KRB_INSTALL_DIR)\include\gssapi\."
copy include\gssapi\gssapi_alloc.h "$(KRB_INSTALL_DIR)\include\gssapi\."
copy include\gssapi\gssapi_krb5.h "$(KRB_INSTALL_DIR)\include\gssapi\."
copy include\gssapi\gssapi_ext.h "$(KRB_INSTALL_DIR)\include\gssapi\."
copy lib\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
copy lib\$(OUTPRE)*.dll "$(KRB_INSTALL_DIR)\bin\."
@if exist lib\$(OUTPRE)*.pdb copy lib\$(OUTPRE)*.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\cns\$(OUTPRE)krb5.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist copy windows\cns\$(OUTPRE)krb5.pdb "$(KRB_INSTALL_DIR)\bin\."
copy appl\gss-sample\$(OUTPRE)gss-server.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist copy appl\gss-sample\$(OUTPRE)gss-server.pdb "$(KRB_INSTALL_DIR)\bin\."
copy appl\gss-sample\$(OUTPRE)gss-client.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist copy appl\gss-sample\$(OUTPRE)gss-client.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\ms2mit\$(OUTPRE)*.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist windows\ms2mit\$(OUTPRE)*.pdb copy windows\ms2mit\$(OUTPRE)*.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\leashdll\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
copy windows\leashdll\$(OUTPRE)*.dll "$(KRB_INSTALL_DIR)\bin\."
@if exist windows\leashdll\$(OUTPRE)*.pdb copy windows\leashdll\$(OUTPRE)*.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\leash\$(OUTPRE)*.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist windows\leash\$(OUTPRE)*.pdb copy windows\leash\$(OUTPRE)*.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\kfwlogon\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
copy windows\kfwlogon\$(OUTPRE)*.exe "$(KRB_INSTALL_DIR)\bin\."
copy windows\kfwlogon\$(OUTPRE)*.dll "$(KRB_INSTALL_DIR)\bin\."
@if exist windows\kfwlogon\$(OUTPRE)*.pdb copy windows\kfwlogon\$(OUTPRE)*.pdb "$(KRB_INSTALL_DIR)\bin\."
copy util\windows\$(OUTPRE)*.lib "$(KRB_INSTALL_DIR)\lib\."
copy util\wshelper\$(OUTPRE)$(DLIB).lib "$(KRB_INSTALL_DIR)\lib\."
copy util\wshelper\$(OUTPRE)$(DLIB).dll "$(KRB_INSTALL_DIR)\bin\."
@if exist util\wshelper\$(OUTPRE)$(DLIB).pdb copy util\wshelper\$(OUTPRE)$(DLIB).pdb "$(KRB_INSTALL_DIR)\bin\."
copy ccapi\lib\win\srctmp\$(OUTPRE)$(CCLIB).dll "$(KRB_INSTALL_DIR)\bin\."
@if exist ccapi\lib\win\srctmp\$(OUTPRE)$(CCLIB).pdb copy opy ccapi\lib\win\srctmp\$(OUTPRE)$(CCLIB).pdb "$(KRB_INSTALL_DIR)\bin\."
copy ccapi\lib\win\srctmp\$(CCLIB).lib "$(KRB_INSTALL_DIR)\lib\."
copy ccapi\server\win\srctmp\$(OUTPRE)ccapiserver.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kvno\$(OUTPRE)kvno.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\klist\$(OUTPRE)klist.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kinit\$(OUTPRE)kinit.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kdestroy\$(OUTPRE)kdestroy.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kcpytkt\$(OUTPRE)kcpytkt.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kdeltkt\$(OUTPRE)kdeltkt.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kpasswd\$(OUTPRE)kpasswd.exe "$(KRB_INSTALL_DIR)\bin\."
copy clients\kswitch\$(OUTPRE)kswitch.exe "$(KRB_INSTALL_DIR)\bin\."
@if exist ccapi\server\win\srctmp\$(OUTPRE)ccapiserver.pdb copy ccapi\server\win\srctmp\$(OUTPRE)ccapiserver.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kvno\$(OUTPRE)kvno.pdb clients\kvno\$(OUTPRE)kvno.pdb copy "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\klist\$(OUTPRE)klist.pdb copy clients\klist\$(OUTPRE)klist.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kinit\$(OUTPRE)kinit.pdb copy clients\kinit\$(OUTPRE)kinit.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kdestroy\$(OUTPRE)kdestroy.pdb copy clients\kdestroy\$(OUTPRE)kdestroy.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kcpytkt\$(OUTPRE)kcpytkt.pdb copy clients\kcpytkt\$(OUTPRE)kcpytkt.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kdeltkt\$(OUTPRE)kdeltkt.pdb copy clients\kdeltkt\$(OUTPRE)kdeltkt.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kpasswd\$(OUTPRE)kpasswd.pdb copy clients\kpasswd\$(OUTPRE)kpasswd.pdb "$(KRB_INSTALL_DIR)\bin\."
@if exist clients\kswitch\$(OUTPRE)kswitch.pdb copy clients\kswitch\$(OUTPRE)kswitch.pdb "$(KRB_INSTALL_DIR)\bin\."
copy windows\leash\htmlhelp\*.chm "$(KRB_INSTALL_DIR)\bin\."
Blaine
-----Original Message-----
From: krbdev-bounces at mit.edu [mailto:krbdev-bounces at mit.edu] On Behalf Of Benjamin Kaduk
Sent: Wednesday, September 19, 2012 4:56 PM
To: krbdev at mit.edu
Cc: kfwdev at mit.edu
Subject: deprecating kerbsrc.zip
[setting reply-to since kfwdev does not seem to get much discussion
traffic]
Hi all,
I have staged on github ('kfw' branch) an update to src/windows/README
which attempts to bring it up-to-date with the recent changes that have
gone in towards KfW 4.0.0.
As part of that staged update, I claim that the kerbsrc.zip method of
building kerberos on windows is no longer supported; this is, however, not
a claim that I wish to make unilaterally.
We had traffic on kerberos at mit.edu last month that seemed to indicate that
the zipfile had broken, with error messages such as "don't know how to
make 'clients\kswitch\Makefile.in'". I don't know of anyone using it for
development (though nor have I really asked) -- I have been using VMware
shared folders to copy a git checkout into my VM, and I believe other
developers are just using git clients natively on windows.
Does anyone think that we should attempt to retain the kerbsrc.zip target?
(Is it worth attempting to verify that it is indeed currently broken?)
Given the availability of git clients for Windows, and github's ability to
produce zip files on demand, getting the source on Windows is surely an
easy matter. The freely available Utilities and SDK for Subsystem for
Unix-based Applications from Microsoft can provide the sed/awk/cat/cp
which were potentially avoided by the kerbsrc.zip target (having never
actually used it, I am not 100% certain on its reason for existence).
Simply put, I don't know of a reason for kerbsrc.zip to stay around, and I
don't see a need to put effort into fixing and maintaining it.
Does anyone think we should continue to maintain and support kerbsrc.zip?
I plan to remove the Makefile glue for it in a separate commit if we
decide not to keep it.
-Ben
_______________________________________________
krbdev mailing list krbdev at mit.edu
https://mailman.mit.edu/mailman/listinfo/krbdev
More information about the krbdev
mailing list