Merge pull request #39681 from seemethere/only_add_btrfs_when_needed_please
Remove btrfs_noversion build tag, no longer needed
This commit is contained in:
commit
3a4b51ebb8
4 changed files with 2 additions and 24 deletions
|
@ -1,4 +1,4 @@
|
||||||
// +build linux,!btrfs_noversion
|
// +build linux
|
||||||
|
|
||||||
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
||||||
|
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
// +build linux,btrfs_noversion
|
|
||||||
|
|
||||||
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
|
||||||
|
|
||||||
// TODO(vbatts) remove this work-around once supported linux distros are on
|
|
||||||
// btrfs utilities of >= 3.16.1
|
|
||||||
|
|
||||||
func btrfsBuildVersion() string {
|
|
||||||
return "-"
|
|
||||||
}
|
|
||||||
|
|
||||||
func btrfsLibVersion() int {
|
|
||||||
return -1
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
// +build linux,!btrfs_noversion
|
// +build linux
|
||||||
|
|
||||||
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
package btrfs // import "github.com/docker/docker/daemon/graphdriver/btrfs"
|
||||||
|
|
||||||
|
|
|
@ -115,14 +115,6 @@ elif ${PKG_CONFIG} 'libsystemd-journal' 2> /dev/null ; then
|
||||||
DOCKER_BUILDTAGS+=" journald journald_compat"
|
DOCKER_BUILDTAGS+=" journald journald_compat"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# test whether "btrfs/version.h" exists and apply btrfs_noversion appropriately
|
|
||||||
if \
|
|
||||||
command -v gcc &> /dev/null \
|
|
||||||
&& ! gcc -E - -o /dev/null &> /dev/null <<<'#include <btrfs/version.h>' \
|
|
||||||
; then
|
|
||||||
DOCKER_BUILDTAGS+=' btrfs_noversion'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# test whether "libdevmapper.h" is new enough to support deferred remove
|
# test whether "libdevmapper.h" is new enough to support deferred remove
|
||||||
# functionality. We favour libdm_dlsym_deferred_remove over
|
# functionality. We favour libdm_dlsym_deferred_remove over
|
||||||
# libdm_no_deferred_remove in dynamic cases because the binary could be shipped
|
# libdm_no_deferred_remove in dynamic cases because the binary could be shipped
|
||||||
|
|
Loading…
Reference in a new issue