aboutsummaryrefslogtreecommitdiff
path: root/audio/amarok
diff options
context:
space:
mode:
authorMarkus Brueffer <markus@FreeBSD.org>2004-03-18 16:56:46 +0000
committerMarkus Brueffer <markus@FreeBSD.org>2004-03-18 16:56:46 +0000
commitbc69b9bc5829989ce6c8de3cc0228b67e000a1bb (patch)
treefc26f6b8568468739a162136dbcd3086a7544a51 /audio/amarok
parent1ee867a24261d15bf22c2590670d397122a3540f (diff)
downloadports-bc69b9bc5829989ce6c8de3cc0228b67e000a1bb.tar.gz
ports-bc69b9bc5829989ce6c8de3cc0228b67e000a1bb.zip
Notes
Diffstat (limited to 'audio/amarok')
-rw-r--r--audio/amarok/Makefile1
-rw-r--r--audio/amarok/files/patch-loader.cpp15
-rw-r--r--audio/amarok/files/patch-playerapp.cpp22
3 files changed, 38 insertions, 0 deletions
diff --git a/audio/amarok/Makefile b/audio/amarok/Makefile
index 227d3d876037..68fd0373446b 100644
--- a/audio/amarok/Makefile
+++ b/audio/amarok/Makefile
@@ -6,6 +6,7 @@
PORTNAME= amarok
PORTVERSION= 0.9
+PORTREVISION= 1
CATEGORIES= audio kde
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/audio/amarok/files/patch-loader.cpp b/audio/amarok/files/patch-loader.cpp
new file mode 100644
index 000000000000..de86b33651aa
--- /dev/null
+++ b/audio/amarok/files/patch-loader.cpp
@@ -0,0 +1,15 @@
+--- amarok/amarok/loader/loader.cpp.orig Fri Mar 5 22:15:11 2004
++++ amarok/amarok/loader/loader.cpp Tue Mar 16 21:48:30 2004
+@@ -156,10 +156,11 @@
+ path += "/.kde/share/apps/amarok/.loader_socket";
+ ::strcpy( &local.sun_path[0], path );
+
+- int len = ::strlen( local.sun_path ) + sizeof( local.sun_family );
++ int len = sizeof( local );
+
+ if ( ::connect( fd, (struct sockaddr*) &local, len ) == -1 ) {
+ // qDebug( "[Loader::tryConnect()] connect() failed" );
++ ::close ( fd );
+ return -1;
+ }
+
diff --git a/audio/amarok/files/patch-playerapp.cpp b/audio/amarok/files/patch-playerapp.cpp
new file mode 100644
index 000000000000..09bbb3135cc7
--- /dev/null
+++ b/audio/amarok/files/patch-playerapp.cpp
@@ -0,0 +1,22 @@
+--- amarok/amarok/playerapp.cpp.orig Fri Mar 5 22:15:10 2004
++++ amarok/amarok/playerapp.cpp Tue Mar 16 21:51:00 2004
+@@ -298,14 +298,18 @@
+ ::strcpy( &local.sun_path[0], path );
+ ::unlink( path );
+
+- int len = ::strlen( local.sun_path ) + sizeof( local.sun_family );
++ int len = sizeof( local );
+
+ if ( ::bind( m_sockfd, (struct sockaddr*) &local, len ) == -1 ) {
+ kdWarning() << k_funcinfo << " bind() error\n";
++ ::close ( m_sockfd );
++ m_sockfd = -1;
+ return;
+ }
+ if ( ::listen( m_sockfd, 1 ) == -1 ) {
+ kdWarning() << k_funcinfo << " listen() error\n";
++ ::close ( m_sockfd );
++ m_sockfd = -1;
+ return;
+ }
+