aports/testing/sedutil/APKBUILD
yzewei ba3b8f0b08 testing/sedutil: fix build
Fix build error due to GCC 13 header dependency changes
(https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes):

In file included from ./Common/log.h:45,
                 from LinuxPBA/LinuxPBA.cpp:25:
./Common/DtaOptions.h:33:5: error: 'uint8_t' does not name a type
   33 |     uint8_t password;   /**< password supplied */
      |     ^~~~~~~
./Common/DtaOptions.h:1:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
  +++ |+#include <cstdint>
    1 | /* C:B**************************************************************************
./Common/DtaOptions.h:34:9: error: 'uint8_t' does not name a type
   34 |         uint8_t userid;   /**< userid supplied */
      |         ^~~~~~~
./Common/DtaOptions.h:34:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:35:9: error: 'uint8_t' does not name a type
   35 |         uint8_t newpassword;   /**< new password for password change */
      |         ^~~~~~~
./Common/DtaOptions.h:35:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:36:9: error: 'uint8_t' does not name a type
   36 |         uint8_t pbafile;   /**< file name for loadPBAimage command */
      |         ^~~~~~~
./Common/DtaOptions.h:36:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:37:5: error: 'uint8_t' does not name a type
   37 |     uint8_t device;   /**< device name  */
      |     ^~~~~~~
./Common/DtaOptions.h:37:5: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:38:5: error: 'uint8_t' does not name a type
   38 |     uint8_t action;   /**< option requested */
      |     ^~~~~~~
./Common/DtaOptions.h:38:5: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:39:9: error: 'uint8_t' does not name a type
   39 |         uint8_t mbrstate;   /**< mbrstate for set mbr commands */
      |         ^~~~~~~
./Common/DtaOptions.h:39:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:40:9: error: 'uint8_t' does not name a type
   40 |         uint8_t lockingrange;  /**< locking range to be manipulated */
      |         ^~~~~~~
./Common/DtaOptions.h:40:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:41:9: error: 'uint8_t' does not name a type
   41 |         uint8_t lockingstate;  /**< locking state to set a lockingrange to */
      |         ^~~~~~~
./Common/DtaOptions.h:41:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:42:9: error: 'uint8_t' does not name a type
   42 |         uint8_t lrstart;                /** the starting block of a lockingrange */
      |         ^~~~~~~
./Common/DtaOptions.h:42:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:43:9: error: 'uint8_t' does not name a type
   43 |         uint8_t lrlength;               /** the length in blocks of a lockingrange */
      |         ^~~~~~~
./Common/DtaOptions.h:43:9: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
./Common/DtaOptions.h:55:1: error: 'uint8_t' does not name a type
   55 | uint8_t DtaOptions(int argc, char * argv[], DTA_OPTIONS * opts);
      | ^~~~~~~
./Common/DtaOptions.h:55:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
make[1]: *** [Makefile:644: LinuxPBA/LinuxPBA.o] Error 1
2024-07-08 02:47:16 +00:00

45 lines
1.2 KiB
Text

# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=sedutil
pkgver=1.15.1
pkgrel=1
pkgdesc="DTA sedutil Self encrypting drive software"
url="https://github.com/Drive-Trust-Alliance/sedutil"
arch="all"
license="GPL-3.0-or-later"
options="!check" # requires hardware
makedepends="automake autoconf libtool linux-headers"
subpackages="$pkgname-doc"
source="sedutil-$pkgver.tar.gz::https://github.com/Drive-Trust-Alliance/sedutil/archive/$pkgver.tar.gz
0001-add-cstdint-def.patch
"
prepare() {
default_prepare
cat > linux/GitVersion.sh <<EOF
#!/bin/sh
echo "#define GIT_VERSION \"$pkgver\""
EOF
autoreconf -vi
}
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var
make
}
package() {
make DESTDIR="$pkgdir" install
}
sha512sums="
9708ef307b457fad2f45735b044685ac6731c353af428c49ff0e312190f3bdc521bcfa71a9e1239d9ffe637d18293a99b09b7e001df96494cdce53f5442750f1 sedutil-1.15.1.tar.gz
a8dac8002d06e3d59c02420abc8bdc2a8fd503b4ed8e905e98c2e62d9c761148d3a70a9dec35b9a5ec56837a76d9f6c1567c8043cce7b71727600622ce185faf 0001-add-cstdint-def.patch
"