Squashfs support is not included in vanilla kernel sources. In addition to squashfs-tools, the squashfs packages comes with squashfs kernel patches but they are not installed by squashfs-tools ebuilds. This means that after emerging squashfs-tools, you may have to go hunting for kernel patches unless you are running gentoo-sources. This ebuild installs the patches that come with squashfs tarball used by the squashfs-tools ebuilds and also includes patches for 2.6.21 and 2.6.22 kernels from genpatches, as those are not included in the tarball. The attached ebuild adds the following lines to squashfs-tools-3.2_p2.ebuild docinto kernel-patches dodoc kernel-patches/README #rename patches to their target kernel version for f in ${S}/../kernel-patches/linux-* ; do newdoc ${f}/* `basename ${f}` done cp ${FILESDIR}/linux-2.6.* "${D}/usr/share/doc/${PF}/kernel-patches" || die
Created attachment 125287 [details] updated ebuild
Created attachment 125288 [details] bzipped 2.6.21 patch
Created attachment 125290 [details] bzipped 2.6.22 patch
Why would we include the patches with the *tools* ebuild, anyway? The upstream package is just "squashfs" whereas ours is just the tools. The kernel patches are included with our supported kernels. Users of other kernels are totally on their own, anyway. I don't really see this as a bad idea other than I don't want to start supporting the people who file bugs after trying to patch things themselves. As it stands currently, we don't "provide" the patches, so the user understands that they're on their own. Adding the patches will increase the convenience, but only for users that are already unsupported by Gentoo.