Skip to content

Commit

Permalink
pkg/ndctl/PKGBUILD: fix iniparser.h include
Browse files Browse the repository at this point in the history
The iniparser.h's path is different for different distributions.
For arch the path is /usr/include.
For ubuntu/debian the path is /usr/include/iniparser

Fix following issue:

```
../util/parse-configs.c:7:10: fatal error: iniparser.h: No such file or directory
    7 | #include <iniparser.h>
```

makepkg RT:

```
{
  "makepkg.pass": [
    1
  ]
}
```

Link: pmem/ndctl#186
Signed-off-by: Zou Yu <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
Zou Yu authored and rli9 committed May 26, 2022
1 parent 03cce16 commit 3a9de10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/ndctl/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ md5sums=('SKIP')

build() {
cd "$srcdir/${pkgname}"
[[ -e '/usr/include/iniparser.h' ]] || cp /usr/include/iniparser/* /usr/include/
meson setup build
meson configure -Dtest=enabled -Ddocs=disabled -Drootprefix=/lkp -Dprefix=/lkp/benchmarks build
meson compile -C build
Expand Down

0 comments on commit 3a9de10

Please sign in to comment.