pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: modular Xorg on i386-current?



The latest hiccup is "x11/sessreg", which fails with:

[...]
===> Building for sessreg-1.1.0
/usr/bin/make  all-recursive
Making all in man
  GEN      filenames.sed
/usr/libexec/cc1: text relocations
  GEN      sessreg.1
sed: 3: filenames.sed: unescaped newline inside substitute pattern
*** Error code 1

Stop.
make[2]: stopped in /var/tmp/pkgsrc/x11/sessreg/work/sessreg-1.1.0/man
[...]

Indeed, the generated "${WRKSRC}/man/filenames.sed" is broken:

----------
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
s|__utmp_manpage__|utmpx|g
s|__utmp_file__|
s|__wtmp_manpage__|wtmpx|g
s|__wtmp_file__|
s|__ttys_file__|"/etc/ttys"|g
s|__lastlog_file__|
----------

The 'filenames.sed' script is generated from "filenames.sed.c" by the
C preprocessor (performing textual substitutions) followed by a simple
'sed' command to extract the (supposedly preprocessed) sed syntax above.

Changing to "${WRKSRC}/man/" and running:

  gcc -E -I.. filenames.sed.c

manually and looking at the output, the values substituted for UTF and
WTF are several lines long, so the simple extraction by piping the output
to 'sed' produces broken substitution patterns.

The relevant portion of the preprocessed file:

----------
/__BEGIN_UTMP_ONLY__/,/__END_UTMP_ONLY__/ d
# 31 "filenames.sed.c"
s|__utmp_manpage__|utmpx|g
s|__utmp_file__|
# 32 "filenames.sed.c" 3 4
               "/var/run/utmpx"
# 32 "filenames.sed.c"
                  |g
s|__wtmp_manpage__|wtmpx|g
s|__wtmp_file__|
# 34 "filenames.sed.c" 3 4
               "/var/log/wtmpx"
# 34 "filenames.sed.c"
                  |g
s|__ttys_file__|"/etc/ttys"|g
s|__lastlog_file__|
# 36 "filenames.sed.c" 3 4
                  "/var/log/lastlog"
# 36 "filenames.sed.c"
                           |g
----------

Looking at the included headers "../sessreg.h", <utmp.h> and <utmpx.h>,
I don't know why the preprocessor is mangling the substitution of
UTMP_FILE and/or UTMPX_FILE and LLOG_FILE.

Following the intended rules, I manually generated "filenames.sed" to
get it to build.

-- 
|/"\ John D. Baker, KN5UKS               NetBSD     Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com    OpenBSD            FreeBSD
| X  No HTML/proprietary data in email.   BSD just sits there and works!
|/ \ GPGkeyID:  D703 4A7E 479F 63F8 D3F4  BD99 9572 8F23 E4AD 1645



Home | Main Index | Thread Index | Old Index