Skip to content

Commit

Permalink
Disable journald input build from filebeat (elastic#19680)
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Siering authored Jul 6, 2020
1 parent a820842 commit efa5eba
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion filebeat/input/journald/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

// +build linux,cgo
// +build linux,cgo,withjournald

package journald

Expand Down
2 changes: 2 additions & 0 deletions filebeat/input/journald/conv.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
// specific language governing permissions and limitations
// under the License.

// +build linux,cgo,withjournald

package journald

import (
Expand Down
2 changes: 1 addition & 1 deletion filebeat/input/journald/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// specific language governing permissions and limitations
// under the License.

// +build linux,cgo
// +build linux,cgo,withjournald

package journald

Expand Down
10 changes: 6 additions & 4 deletions filebeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ var (
devtools.LinuxS390x,
}

deps = devtools.NewPackageInstaller().
AddEach(journaldPlatforms, "libsystemd-dev").
Add(devtools.Linux386, "libsystemd0", "libgcrypt20")
journaldDeps = devtools.NewPackageInstaller().
AddEach(journaldPlatforms, "libsystemd-dev").
Add(devtools.Linux386, "libsystemd0", "libgcrypt20")
)

func init() {
Expand All @@ -69,7 +69,9 @@ func Build() error {
// GolangCrossBuild build the Beat binary inside of the golang-builder.
// Do not use directly, use crossBuild instead.
func GolangCrossBuild() error {
mg.Deps(deps.Installer(devtools.Platform.Name))
// XXX: enable once we have systemd available in the cross build image
// mg.Deps(journaldDeps.Installer(devtools.Platform.Name))

return devtools.GolangCrossBuild(devtools.DefaultGolangCrossBuildArgs())
}

Expand Down

0 comments on commit efa5eba

Please sign in to comment.