foxfirefey: A fox colored like flame over an ornately framed globe (Default)
foxfirefey ([personal profile] foxfirefey) wrote in [site community profile] dw_dev2009-06-24 10:47 pm
Entry tags:

Some notes on moving forward with OpenID 2.0

This is mostly about some poking around I did today re: Bug 991: OpenID 2.0 is not supported.

The libraries we use have moved from the Six Apart repository to GitHub. Unfortunately, the Ubuntu packages for the server and consumer don't even start using a post-1.0 version that supports OpenID 2.0 until the karmic release, and I don't think we are anywhere near that production wise.

What would the most production-friendly way be to get an updated version of the library on my dev system to work with? I'm not an experienced enough sysadmin to know the best way, and I kind of get the feeling make && make install is not it.
mark: A photo of Mark kneeling on top of the Taal Volcano in the Philippines. It was a long hike. (Default)

[staff profile] mark 2009-06-25 03:26 pm (UTC)(link)
For Ubuntu/Debian systems, you don't want make/make install. You want dh-make-perl. The easiest way of doing this whole process is,

(as root)

# perl -MCPAN -e shell
> look Net::OpenID::Consumer
# dh-make-perl --build
# mv ../*.deb /root
# exit
> look Net::OpenID::Server
# dh-make-perl --build
# mv ../*.deb /root
# exit
> exit
# cd /root
# dpkg -i libnet-openid-*.deb

Or something like that. Then you end up with package files. Sorry this isn't very verbose, I'm about to run to work. But dh-make-perl is the clue, and there is plenty of information online on how to build packages out of Perl modules on Ubuntu/Debian.