Compare commits

..

7 Commits
0.4.0 ... 0.4.2

Author SHA1 Message Date
Guillem Jover
918a4dba4a Release libbsd 0.4.2 2012-06-27 09:15:15 +02:00
Guillem Jover
444bd1fbb8 man: Use minus signs and hyphens consistently
Any string that can be copy & pasted into a terminal, for example,
needs to correctly use minus signs (escaped dashes), instead of the
default hyphen.
2012-06-27 09:13:39 +02:00
Guillem Jover
1d69ae1cd5 man: Recode flopen(3) to UTF-8
Spotted-by: Eric Smith <eric@brouhaha.com>
2012-06-04 05:47:26 +02:00
Guillem Jover
14524b545d build: Set default compiler variables from configure
This centralizes the setting so there's no duplication anymore,
makes sure the user supplied variables are never overridden, and
are only set when using gcc.

Reported-by: Samuli Suominen <ssuominen@gentoo.org>
2012-06-03 07:46:00 +02:00
Guillem Jover
c21d788fea Release libbsd 0.4.1 2012-06-01 08:28:00 +02:00
Guillem Jover
fdcae57707 build: Set runtimelibdir to libdir
This makes sure the install-exec-hook under src works as expected even
when no runtimelibdir was specified, otherwise the symlinks end up
pointing to non-existing targets.

Reported-by: Ryan Mullen <rmmullen@gmail.com>
2012-06-01 08:27:33 +02:00
Guillem Jover
e9e4a60d7e build: Use MKDIR_P variable instead of literal «mkdir -p» 2012-06-01 08:15:00 +02:00
5 changed files with 16 additions and 12 deletions

View File

@@ -11,6 +11,9 @@ AM_INIT_AUTOMAKE([1.8 foreign nostdinc])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
# Check and store if we got user supplied variables
user_CFLAGS=${CFLAGS-unset}
# Checks for operating system services and capabilities.
AC_USE_SYSTEM_EXTENSIONS
AC_SYS_LARGEFILE
@@ -22,6 +25,11 @@ AC_PROG_CC
AC_PROG_INSTALL
AC_PROG_LN_S
# Set default compiler variables
if test "$user_CFLAGS" = unset && test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter"
fi
# Checks for libraries.
# Checks for header files.

View File

@@ -1,5 +1,5 @@
.\"-
.\" Copyright (c) 2007 Dag-Erling Co<EFBFBD>dan Sm<EFBFBD>rgrav
.\" Copyright (c) 2007 Dag-Erling Coïdan Smørgrav
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
@@ -84,7 +84,7 @@ includes
If successful,
.Fn flopen
returns a valid file descriptor.
Otherwise, it returns -1, and sets
Otherwise, it returns \-1, and sets
.Va errno
as described in
.Xr flock 2

View File

@@ -126,7 +126,7 @@ if (pfh == NULL) {
warn("Cannot open or create pidfile");
}
if (daemon(0, 0) == -1) {
if (daemon(0, 0) == \-1) {
warn("Cannot daemonize");
pidfile_remove(pfh);
exit(EXIT_FAILURE);
@@ -138,7 +138,7 @@ for (;;) {
/* Do work. */
childpid = fork();
switch (childpid) {
case -1:
case \-1:
syslog(LOG_ERR, "Cannot fork(): %s.", strerror(errno));
break;
case 0:

View File

@@ -1,8 +1,5 @@
## Process this file with automake to produce Makefile.in
# Set default values for user variables
CFLAGS = -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
AM_CPPFLAGS = \
-I$(top_builddir) \
-isystem $(top_srcdir)/include/bsd/ \
@@ -37,7 +34,7 @@ libbsd_la_DEPENDENCIES = \
libbsd.map
libbsd_la_LDFLAGS = \
-Wl,--version-script=$(srcdir)/libbsd.map \
-version-number 0:4:0
-version-number 0:4:2
libbsd_la_SOURCES = \
arc4random.c \
bsd_getopt.c \
@@ -73,9 +70,11 @@ libbsd_la_SOURCES = \
vis.c \
$(nil)
runtimelibdir = $(libdir)
install-exec-hook:
if [ "$(libdir)" != "$(runtimelibdir)" ]; then \
mkdir -p $(DESTDIR)$(runtimelibdir); \
$(MKDIR_P) $(DESTDIR)$(runtimelibdir); \
mv $(DESTDIR)$(libdir)/libbsd*.so.* \
$(DESTDIR)$(runtimelibdir)/; \
soname=`readlink $(DESTDIR)$(libdir)/libbsd.so`; \

View File

@@ -1,8 +1,5 @@
## Process this file with automake to produce Makefile.in
# Set default values for user variables
CFLAGS = -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
AM_CPPFLAGS = \
-I$(top_builddir) \
-isystem $(top_srcdir)/include/bsd/ \