New issue 109 by moore...@suncup.net: Debian package
http://code.google.com/p/s3fs/issues/detail?id=109
Reference: http://www.debian.org/doc/maint-guide/
As s3fs is getting its loose ends tied up, it's getting mature enough to
go "mainstream" with a Debian package.
Filed Intent To Package (ITP) bug with Debian
Make sure that new package is dependent upon the fuse-utils package. This
(reportedly) is needed for mounting through /etc/fstab to work.
Include "mime-support" package in the dependency list. Needed for the
/etc/mime.types file
Hi
I gave a stab at packaging s3fs; I'm attaching the packaging.
Unfortunately, I hit a major issue preventing redistribution:
E: s3fs: possible-gpl-code-linked-with-openssl
N:
N: This package appears to be covered by the GNU GPL but depends on the
N: OpenSSL libssl package and does not mention a license exemption or
N: exception for OpenSSL in its copyright file. The GPL (including
N: version 3) is incompatible with some terms of the OpenSSL license, and
N: therefore Debian does not allow GPL-licensed code linked with OpenSSL
N: libraries unless there is a license exception explicitly permitting
N: this.
N:
N: If only the Debian packaging, or some other part of the package not
N: linked with OpenSSL, is covered by the GNU GPL, please add a lintian
N: override for this tag. Lintian currently has no good way of
N: distinguishing between that case and problematic packages.
N:
N: Severity: serious, Certainty: wild-guess
N:
Indeed, s3fs is GPL and links to openssl.
I could build s3fs successfully against both the openssl and the gnutls
version of libcurl in Debian/Ubuntu but I could not build it against
libgnutls instead of openssl: src/s3fs.h includes openssl headers and
s3fs.cpp uses openssl CRYPTO_LOCK and others.
Would you consider gnutls' libgcrypto instead?
I believe the packaging is otherwise complete; I had to disable the
testsuite as it relies on credential in $HOME, so not suitable for a buildd.
Thanks,
Attachments:
s3fs_1.40-1.debian.tar.gz 1.9 KB
Unless anyone else objects, I'd be happy to give gnutls a shot. I'll see
what I can come up with tomorrow. I'd love to have a debian package!
Thanks!
whew, openssl reaches quite a few places in s3fs. gnutls appears to have a
compatibility layer
(http://www.gnu.org/software/gnutls/manual/html_node/Compatibility-with-the-OpenSSL-library.html).
i'll keep poking around though, i'm not familiar with either library. If
anyone is feel free to jump in :)
Shouldn't this only affect url=https:... ? Is there a one-to-one
correspondence with the openssl lib calls and the gnutls lib calls? Are
you running into compile time issues? ...or execution time issues?
Admittedly, I'm mostly uneducated in this stuff, but just throwing a few
thoughts out there.
Thanks for the packaging!
It seems that these files to be added to debian/docs file
(so the will be automatically placed to /usr/share/doc/...)
===========
AUTHORS
COPYING
ChangeLog
INSTALL
NEWS
README
===========
INSTALL is obviously not needed; COPYING isn't needed as all the
information is wrapped in debian/copyright which gets installed there;
AUTHORS is of dubious value to end-users on their installed systems; NEWS
is empty; ChangeLog is relatively limited and distros like Ubuntu strip
ChangeLogs away to save space anyway.
Yep, README would be useful
Is the openssl issue solved already? I'd like to build a package for debian
too. I already uploaded a package to
http://mentors.debian.net/package/s3fs, but because this is my first debian
package, I'm not quite sure if everything is ok. And I read that mentors
only accepts source packages, and I think mine is a binary package.
Anyway, I'like s3fs and I want to help debian provide a packaged version
for it. :-)
OpenSSL issue has not been solved, it may not be any time soon. Admittedly,
I'm not very aware of the finer details when it comes to packaging w/ the
SSLeay license. Does it just exclude the package from eligibility in the
Debian upstream?
I'm not sure if this is still an issue. I was able to build a package with
libcurl4-gnutls-dev installed, instead of libcurl4-openssl-dev.
I read that the BSD license of openssl doesn't match with Debians
preference for GPL. but is that still an issue if I can build the whole
thing without openssl?
Maybe I should get a mentor who'll help me build this package and get me
through this issues...
IANAL, but the quick overview:
Debian's issue is not that it has a preference for the GPL. The problem is
that the advertising/acknowledgement clause of openssl is probably
incompatible with GPL v2 (I don't know about GPLv3)
Debian chooses to error on the side of not linking GPL code to BSD code
that includes the advertising/acknowledgement clause of it's license.
An exception to the sixth clause of the GPL (no additional encumbrances)
can to be added by the s3fs developers to permit redistribution of binaries
linked to openssl.
All the developers of s3fs would have to agree to the exception to the GPL.
A good way to deal with the issue is to allow linking against GnuTLS
instead of OpenSSL