1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

- update to 4.6

- tab -> space for pkg-descr WWW
- Remove leading indefinite article from COMMENT
- Remove upstreamed patch
This commit is contained in:
Baptiste Daroussin 2013-08-22 21:58:25 +00:00
parent 905b29b6e0
commit d1701f00f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325237
4 changed files with 6 additions and 77 deletions

View File

@ -2,15 +2,12 @@
# $FreeBSD$
PORTNAME= i3
DISTVERSION= 4.5.1
PORTREVISION= 1
DISTVERSION= 4.6
CATEGORIES= x11-wm
MASTER_SITES= http://i3wm.org/downloads/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= dhn
MASTER_SITES= http://i3wm.org/downloads/
MAINTAINER= bapt@FreeBSD.org
COMMENT= An improved dynamic tiling window manager
COMMENT= Improved dynamic tiling window manager
LICENSE= BSD

View File

@ -1,2 +1,2 @@
SHA256 (i3-4.5.1.tar.bz2) = bae55f1c7c4a21d71aae182e4fab6038ba65ba4be5d1ceff9e269f4f74b823f2
SIZE (i3-4.5.1.tar.bz2) = 878954
SHA256 (i3-4.6.tar.bz2) = f5d2118441cec8b623d18610f3793c55df9da6af15b4df8523e86309096956e1
SIZE (i3-4.6.tar.bz2) = 891862

View File

@ -1,68 +0,0 @@
--- ./src/log.c.orig 2013-03-20 15:28:14.746383400 +0100
+++ ./src/log.c 2013-03-20 18:27:56.885378021 +0100
@@ -81,11 +81,11 @@
void init_logging(void) {
if (!errorfilename) {
if (!(errorfilename = get_process_filename("errorlog")))
- ELOG("Could not initialize errorlog\n");
+ fprintf(stderr, "Could not initialize errorlog\n");
else {
errorfile = fopen(errorfilename, "w");
if (fcntl(fileno(errorfile), F_SETFD, FD_CLOEXEC)) {
- ELOG("Could not set close-on-exec flag\n");
+ fprintf(stderr, "Could not set close-on-exec flag\n");
}
}
}
@@ -107,25 +107,28 @@
sysconf(_SC_PAGESIZE);
#endif
logbuffer_size = min(physical_mem_bytes * 0.01, shmlog_size);
- sasprintf(&shmlogname, "/i3-log-%d", getpid());
+#if defined(__FreeBSD__)
+ asprintf(&shmlogname, "/tmp/i3-log-%d", getpid());
+#else
+ asprintf(&shmlogname, "/i3-log-%d", getpid());
+#endif
logbuffer_shm = shm_open(shmlogname, O_RDWR | O_CREAT, S_IREAD | S_IWRITE);
if (logbuffer_shm == -1) {
- ELOG("Could not shm_open SHM segment for the i3 log: %s\n", strerror(errno));
+ fprintf(stderr, "Could not shm_open SHM segment for the i3 log: %s\n", strerror(errno));
return;
}
-
if (ftruncate(logbuffer_shm, logbuffer_size) == -1) {
close(logbuffer_shm);
- shm_unlink("/i3-log-");
- ELOG("Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno));
+ shm_unlink(shmlogname);
+ fprintf(stderr, "Could not ftruncate SHM segment for the i3 log: %s\n", strerror(errno));
return;
}
logbuffer = mmap(NULL, logbuffer_size, PROT_READ | PROT_WRITE, MAP_SHARED, logbuffer_shm, 0);
if (logbuffer == MAP_FAILED) {
close(logbuffer_shm);
- shm_unlink("/i3-log-");
- ELOG("Could not mmap SHM segment for the i3 log: %s\n", strerror(errno));
+ shm_unlink(shmlogname);
+ fprintf(stderr, "Could not mmap SHM segment for the i3 log: %s\n", strerror(errno));
logbuffer = NULL;
return;
}
@@ -138,13 +141,14 @@
pthread_condattr_t cond_attr;
pthread_condattr_init(&cond_attr);
if (pthread_condattr_setpshared(&cond_attr, PTHREAD_PROCESS_SHARED) != 0)
- ELOG("pthread_condattr_setpshared() failed, i3-dump-log -f will not work!\n");
+ fprintf(stderr, "pthread_condattr_setpshared() failed, i3-dump-log -f will not work!\n");
pthread_cond_init(&(header->condvar), &cond_attr);
logwalk = logbuffer + sizeof(i3_shmlog_header);
loglastwrap = logbuffer + logbuffer_size;
store_log_markers();
}
+
atexit(purge_zerobyte_logfile);
}

View File

@ -1,4 +1,4 @@
i3 is an improved dynamic, tiling window manager.
Inspired by wmii that supported Xinerama.
WWW: http://i3wm.org
WWW: http://i3wm.org