mdadm-4.1

This commit is contained in:
Rmys
2023-11-09 12:04:03 +03:00
committed by GitHub
parent 5df8d091ba
commit 2218a79354
2 changed files with 8 additions and 9 deletions
+4 -4
View File
@@ -11,18 +11,18 @@ from pisi.actionsapi import shelltools
def builddiet():
autotools.make("clean")
shelltools.export("CC", "diet %s %s %s %s -DHAVE_STDINT_H -Os -static" % (get.CC(), get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
shelltools.export("GCC", "diet %s %s %s %s -DHAVE_STDINT_H -Os -static" % (get.CC(), get.CFLAGS(), get.CXXFLAGS(), get.LDFLAGS()))
autotools.make("mdadm.static")
autotools.make("mdassemble.static")
#autotools.make("mdassemble.static")
pisitools.insinto("/sbin", "mdadm.static")
pisitools.insinto("/sbin", "mdassemble.static")
#pisitools.insinto("/sbin", "mdassemble.static")
def build():
# fix build with gcc-4.9.0
pisitools.dosed("Makefile", "(Wall) -Werror", "\\1")
# Not sure about MDASSEMBLE_AUTO=1. Need to investigate.
autotools.make("SYSCONFDIR=/%s MDASSEMBLE_AUTO=1 mdadm mdmon" % get.confDIR())
autotools.make("SYSCONFDIR=/%s MDASSEMBLE_AUTO=1 mdadm mdmon" % get.confDIR())
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())