Bug#927919: sway: FTBFS, pkg-config gets variable for scdoc incorrect

2019-04-24 Thread Linda Lapinlampi
Control: reassign -1 scdoc 1.9.4-1
Control: affects -1 + sway
Severity: serious

On Thu, Apr 25, 2019 at 03:07:14AM +, Linda Lapinlampi wrote:
> Dear Maintainer,
> 
> My attempt to build Salsa VCS checkout with `dpkg-buildpackage -us -uc`
> will fail there:
> 
> ```
> Dependency scdoc found: YES 1.9.4
> Called `/usr/bin/pkg-config --variable=scdoc scdoc` -> 0
> /usr/local/bin/scdoc
> Got pkgconfig variable scdoc : /usr/local/bin/scdoc
> Program /usr/local/bin/scdoc found: NO
> 
> meson.build:100:1: ERROR:  Program(s) ['/usr/local/bin/scdoc'] not found or 
> not executable
> ```

For whatever the reason, /usr/share/pkgconfig/scdoc.pc has an unintended
prefix=/usr/local. scdoc 1.9.4's debian/rules hsa PREFIX=/usr, but this
may not be working.



Bug#927919: sway: FTBFS, pkg-config gets variable for scdoc incorrect

2019-04-24 Thread Linda Lapinlampi
Control: notfound -1 1.0~rc3-1

On Thu, Apr 25, 2019 at 03:07:14AM +, Linda Lapinlampi wrote:
> ```
> Dependency scdoc found: YES 1.9.4
> Called `/usr/bin/pkg-config --variable=scdoc scdoc` -> 0
> /usr/local/bin/scdoc
> Got pkgconfig variable scdoc : /usr/local/bin/scdoc
> Program /usr/local/bin/scdoc found: NO
> 
> meson.build:100:1: ERROR:  Program(s) ['/usr/local/bin/scdoc'] not found or 
> not executable
> ```

Possibly relevant change at upstream. Not found from upstream's 1.0~rc5
release, I'd guess.

https://github.com/swaywm/sway/pull/3856

> meson: use pkg-config var for scdoc path



Bug#927919: sway: FTBFS, pkg-config gets variable for scdoc incorrect

2019-04-24 Thread Linda Lapinlampi
Source: sway
Version: 1.0-1
Severity: important
Tags: experimental, ftbfs, upstream

Dear Maintainer,

My attempt to build Salsa VCS checkout with `dpkg-buildpackage -us -uc`
will fail there:

```
Dependency scdoc found: YES 1.9.4
Called `/usr/bin/pkg-config --variable=scdoc scdoc` -> 0
/usr/local/bin/scdoc
Got pkgconfig variable scdoc : /usr/local/bin/scdoc
Program /usr/local/bin/scdoc found: NO

meson.build:100:1: ERROR:  Program(s) ['/usr/local/bin/scdoc'] not found or not 
executable
```

It looks like it finds /usr/bin/scdoc, but then pkg-config changes to
look for /usr/local/bin/scdoc and subsequently fails.

The relevant part of upstream's meson.build is:

```
scdoc = dependency('scdoc', version: '>=1.9.2', native: true, required: 
get_option('man-pages'))
if scdoc.found()
scdoc_prog = find_program(scdoc.get_pkgconfig_variable('scdoc'), 
native: true)
[...]
endif
```

I'm attaching Meson build logs. Thanks.

-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

$ apt policy scdoc
scdoc:
  Installed: 1.9.4-1
  Candidate: 1.9.4-1
  Version table:
 *** 1.9.4-1 500
500 http://deb.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
Build started at 2019-04-25T02:45:02.424601
Main binary: /usr/bin/python3
Python system: Linux
The Meson build system
Version: 0.49.2
Source dir: /home/wub/.local/src/sway/sway
Build dir: /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu
Build type: native build
Project name: sway
Project version: 1.0
Sanity testing C compiler: cc
Is cross compiler: False.
Sanity check compiler command line: cc /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.c -o /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.exe
Sanity check compile stdout:

-
Sanity check compile stderr:

-
Running test binary command: /home/wub/.local/src/sway/sway/obj-x86_64-linux-gnu/meson-private/sanitycheckc.exe
Appending CFLAGS from environment: '-g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security'
Appending LDFLAGS from environment: '-Wl,-z,relro -Wl,-z,now'
Appending CPPFLAGS from environment: '-Wdate-time -D_FORTIFY_SOURCE=2'
Native C compiler: cc (gcc 8.3.0 "cc (Debian 8.3.0-6) 8.3.0")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (1.6.0)
Determining dependency 'json-c' with pkg-config executable '/usr/bin/pkg-config'
Called `/usr/bin/pkg-config --modversion json-c` -> 0
0.13.1
Called `/usr/bin/pkg-config --cflags json-c` -> 0
-I/usr/include/json-c
Called `/usr/bin/pkg-config json-c --libs` -> 0
-L/usr/lib/x86_64-linux-gnu -ljson-c
Called `/usr/bin/pkg-config json-c --libs` -> 0
-ljson-c
Running compile:
Working directory:  /tmp/tmp7u9sl240
Command line:  cc /tmp/tmp7u9sl240/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -o /tmp/tmp7u9sl240/output.exe -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-z,relro -Wl,-z,now -O0 

Code:
 #include

int main(int argc, char **argv) {
printf("%ld\n", (long)(sizeof(void *)));
return 0;
};
Compiler stdout:
 
Compiler stderr:
 
Program stdout:

8

Program stderr:


Running compile:
Working directory:  /tmp/tmp0zuflusu
Command line:  cc /tmp/tmp0zuflusu/testfile.c -pipe -D_FILE_OFFSET_BITS=64 -c -o /tmp/tmp0zuflusu/output.obj -g -O2 -fdebug-prefix-map=/home/wub/.local/src/sway/sway=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -O0 --print-search-dirs 

Code:
 
Compiler stdout:
 install: /usr/lib/gcc/x86_64-linux-gnu/8/
programs: =/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/8/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/8/../../../../x86_64-linux-gnu/bin/
libraries: