rpms/rpmfusion-free-release/F-18 rpmfusion-free-release.spec, 1.35, 1.36 rpmfusion-free-updates.repo, 1.17, 1.18
by Nicolas Chauvet
Author: kwizart
Update of /cvs/free/rpms/rpmfusion-free-release/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv2207/F-18
Modified Files:
rpmfusion-free-release.spec rpmfusion-free-updates.repo
Log Message:
Enable updates repo
Index: rpmfusion-free-release.spec
===================================================================
RCS file: /cvs/free/rpms/rpmfusion-free-release/F-18/rpmfusion-free-release.spec,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- rpmfusion-free-release.spec 17 Sep 2012 21:12:25 -0000 1.35
+++ rpmfusion-free-release.spec 21 Sep 2012 09:43:02 -0000 1.36
@@ -3,7 +3,7 @@
Name: rpmfusion-%{repo}-release
Version: 18
-Release: 0.3
+Release: 0.4
Summary: RPM Fusion (%{repo}) Repository Configuration
Group: System Environment/Base
@@ -93,6 +93,9 @@
%config(noreplace) %{_sysconfdir}/yum.repos.d/*
%changelog
+* Fri Sep 21 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 18-0.4
+- Enable updates - empty for now
+
* Mon Sep 17 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 18-0.3
- Add F-19 key for Rawhide
12 years, 2 months
rpms/smplayer/F-16 smplayer-0.8.1-system-qtsingleapplication.patch, NONE, 1.1 smplayer-0.8.1-system-quazip.patch, NONE, 1.1 .cvsignore, 1.13, 1.14 smplayer.spec, 1.16, 1.17 sources, 1.13, 1.14 smplayer-0.8.0-system-qtsingleapplication.patch, 1.1, NONE smplayer-0.8.0-system-quazip.patch, 1.1, NONE
by Sérgio M. Basto
Author: sergiomb
Update of /cvs/free/rpms/smplayer/F-16
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv12107
Modified Files:
.cvsignore smplayer.spec sources
Added Files:
smplayer-0.8.1-system-qtsingleapplication.patch
smplayer-0.8.1-system-quazip.patch
Removed Files:
smplayer-0.8.0-system-qtsingleapplication.patch
smplayer-0.8.0-system-quazip.patch
Log Message:
* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
- New upsteam release.
- rfbz #2113, all done by Nucleo.
smplayer-0.8.1-system-qtsingleapplication.patch:
smtube-1.2.1/src/smtube.pro | 9 +++------
src/smplayer.pro | 10 +---------
2 files changed, 4 insertions(+), 15 deletions(-)
--- NEW FILE smplayer-0.8.1-system-qtsingleapplication.patch ---
--- smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-05-09 01:12:42.000000000 +0300
+++ smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-09-20 13:11:52.937317532 +0300
@@ -5,10 +5,11 @@
TEMPLATE = app
QT += network xml
TARGET =
-DEPENDPATH += . qtsingleapplication
-INCLUDEPATH += . qtsingleapplication
+DEPENDPATH += .
+INCLUDEPATH += .
CONFIG += qt warn_on release
+CONFIG += qtsingleapplication
RESOURCES = icons.qrc
@@ -63,10 +64,6 @@
translations/smtube_hu.ts \
translations/smtube_pl.ts
-# qtsingleapplication
-SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
-HEADERS += qtsingleapplication.h qtlocalpeer.h
-
unix {
UI_DIR = .ui
MOC_DIR = .moc
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:11:52.937317532 +0300
@@ -3,6 +3,7 @@
CONFIG += qt warn_on
CONFIG += release
+CONFIG += qtsingleapplication
#CONFIG += debug
QT += network xml
@@ -235,15 +236,6 @@
about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
toolbareditor.ui
-# qtsingleapplication
-contains( DEFINES, SINGLE_INSTANCE ) {
- INCLUDEPATH += qtsingleapplication
- DEPENDPATH += qtsingleapplication
-
- SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
- HEADERS += qtsingleapplication.h qtlocalpeer.h
-}
-
# Find subtitles dialog
contains( DEFINES, FIND_SUBTITLES ) {
DEFINES += DOWNLOAD_SUBS
smplayer-0.8.1-system-quazip.patch:
findsubtitles/findsubtitles.pro | 20 ++------------------
smplayer.pro | 22 ++++------------------
2 files changed, 6 insertions(+), 36 deletions(-)
--- NEW FILE smplayer-0.8.1-system-quazip.patch ---
--- smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-03-31 15:46:16.000000000 +0300
+++ smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-09-20 13:06:27.086599698 +0300
@@ -34,30 +34,14 @@
DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += filedownloader quazip
- DEPENDPATH += filedownloader quazip
+ INCLUDEPATH += filedownloader
+ DEPENDPATH += filedownloader
HEADERS += filedownloader.h subchooserdialog.h
SOURCES += filedownloader.cpp subchooserdialog.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
-
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
LIBS += -lz
win32 {
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:06:27.087599689 +0300
@@ -258,31 +258,17 @@
# Download subtitles
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
- DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
+ INCLUDEPATH += findsubtitles/filedownloader
+ DEPENDPATH += findsubtitles/filedownloader
HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
+ INCLUDEPATH += /usr/include/quazip /usr/include/minizip
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
- LIBS += -lz
+ LIBS += -lz -lquazip
win32 {
INCLUDEPATH += ..\\zlib
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-16/.cvsignore,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- .cvsignore 6 May 2012 21:16:59 -0000 1.13
+++ .cvsignore 20 Sep 2012 22:29:16 -0000 1.14
@@ -1,2 +1,2 @@
-smplayer-0.8.0.tar.bz2
-smtube-1.1.tar.bz2
+smplayer-0.8.1.tar.bz2
+smtube-1.2.1.tar.bz2
Index: smplayer.spec
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-16/smplayer.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- smplayer.spec 6 May 2012 21:16:59 -0000 1.16
+++ smplayer.spec 20 Sep 2012 22:29:17 -0000 1.17
@@ -1,8 +1,8 @@
-%global smtube_ver 1.1
+%global smtube_ver 1.2.1
Name: smplayer
-Version: 0.8.0
-Release: 2%{?dist}
+Version: 0.8.1
+Release: 1%{?dist}
Summary: A graphical frontend for mplayer
Group: Applications/Multimedia
@@ -17,8 +17,8 @@
# Fix regression in Thunar (TODO: re-check in upcoming versions!)
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1217
Patch0: smplayer-0.8.0-desktop-files.patch
-Patch1: smplayer-0.8.0-system-quazip.patch
-Patch2: smplayer-0.8.0-system-qtsingleapplication.patch
+Patch1: smplayer-0.8.1-system-quazip.patch
+Patch2: smplayer-0.8.1-system-qtsingleapplication.patch
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel
@@ -27,6 +27,7 @@
# smplayer without mplayer is quite useless
Requires: mplayer
Requires: kde-filesystem
+%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
%description
smplayer intends to be a complete front-end for Mplayer, from basic features
@@ -40,9 +41,10 @@
%setup -qn %{name}-%{version}
%setup -a3 -qn %{name}-%{version}
#remove some bundle sources
-rm -rf zlib-1.2.6
+rm -rf zlib
rm -rf src/findsubtitles/quazip
rm -rf src/qtsingleapplication/
+rm -rf smtube-%{smtube_ver}/src/qtsingleapplication/
%patch0 -p0 -b .desktop-files
%patch1 -p1 -b .quazip
@@ -54,9 +56,6 @@
iconv -f Latin1 -t UTF-8 -o Changelog.utf8 Changelog
mv Changelog.utf8 Changelog
-# use lrelease from qt4-devel
-sed -i 's|LRELEASE=lrelease|LRELEASE=%{_bindir}/lrelease-qt4|' Makefile
-
# fix path of docs
sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer-%{version}|' Makefile
@@ -67,15 +66,13 @@
echo "NotShowIn=KDE;" >> smplayer_enqueue.desktop
%build
-make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
pushd smtube-%{smtube_ver}
-sed -i 's|lrelease|%{_bindir}/lrelease-qt4|' Makefile
-sed -i 's|qmake|%{_qt4_qmake}|' Makefile
sed -i 's|/usr/local|%{_prefix}|' Makefile
sed -i 's|doc/smtube|doc/%{name}-%{version}/smtube|' Makefile
sed -i 's|smtube/translations|smplayer/translations|' Makefile
-make PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
popd
@@ -130,6 +127,10 @@
%{_datadir}/kde4/services/ServiceMenus/smplayer_enqueue.desktop
%changelog
+* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
+- New upsteam release.
+- rfbz #2113, all done by Nucleo.
+
* Sat Apr 28 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.0-2
- fix smtube translations.
- drop support for Fedora < 9 and EPEL 5, since we need kde4.
Index: sources
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-16/sources,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sources 6 May 2012 21:16:59 -0000 1.13
+++ sources 20 Sep 2012 22:29:17 -0000 1.14
@@ -1,2 +1,2 @@
-8f7d3a9c116e956c68976d0e5dbb83dd smplayer-0.8.0.tar.bz2
-e5018fcd9ebdc08658136476ba4843d2 smtube-1.1.tar.bz2
+39556a6113afcd9ceee071a8f85477dc smplayer-0.8.1.tar.bz2
+04eab6c1034670bf4269eb1a3eb110ef smtube-1.2.1.tar.bz2
--- smplayer-0.8.0-system-qtsingleapplication.patch DELETED ---
--- smplayer-0.8.0-system-quazip.patch DELETED ---
12 years, 2 months
rpms/smplayer/F-17 smplayer-0.8.1-system-qtsingleapplication.patch, NONE, 1.1 smplayer-0.8.1-system-quazip.patch, NONE, 1.1 .cvsignore, 1.13, 1.14 smplayer.spec, 1.19, 1.20 sources, 1.13, 1.14 smplayer-0.8.0-system-qtsingleapplication.patch, 1.1, NONE smplayer-0.8.0-system-quazip.patch, 1.1, NONE
by Sérgio M. Basto
Author: sergiomb
Update of /cvs/free/rpms/smplayer/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8846
Modified Files:
.cvsignore smplayer.spec sources
Added Files:
smplayer-0.8.1-system-qtsingleapplication.patch
smplayer-0.8.1-system-quazip.patch
Removed Files:
smplayer-0.8.0-system-qtsingleapplication.patch
smplayer-0.8.0-system-quazip.patch
Log Message:
* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
- New upsteam release.
- rfbz #2113, all done by Nucleo.
smplayer-0.8.1-system-qtsingleapplication.patch:
smtube-1.2.1/src/smtube.pro | 9 +++------
src/smplayer.pro | 10 +---------
2 files changed, 4 insertions(+), 15 deletions(-)
--- NEW FILE smplayer-0.8.1-system-qtsingleapplication.patch ---
--- smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-05-09 01:12:42.000000000 +0300
+++ smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-09-20 13:11:52.937317532 +0300
@@ -5,10 +5,11 @@
TEMPLATE = app
QT += network xml
TARGET =
-DEPENDPATH += . qtsingleapplication
-INCLUDEPATH += . qtsingleapplication
+DEPENDPATH += .
+INCLUDEPATH += .
CONFIG += qt warn_on release
+CONFIG += qtsingleapplication
RESOURCES = icons.qrc
@@ -63,10 +64,6 @@
translations/smtube_hu.ts \
translations/smtube_pl.ts
-# qtsingleapplication
-SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
-HEADERS += qtsingleapplication.h qtlocalpeer.h
-
unix {
UI_DIR = .ui
MOC_DIR = .moc
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:11:52.937317532 +0300
@@ -3,6 +3,7 @@
CONFIG += qt warn_on
CONFIG += release
+CONFIG += qtsingleapplication
#CONFIG += debug
QT += network xml
@@ -235,15 +236,6 @@
about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
toolbareditor.ui
-# qtsingleapplication
-contains( DEFINES, SINGLE_INSTANCE ) {
- INCLUDEPATH += qtsingleapplication
- DEPENDPATH += qtsingleapplication
-
- SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
- HEADERS += qtsingleapplication.h qtlocalpeer.h
-}
-
# Find subtitles dialog
contains( DEFINES, FIND_SUBTITLES ) {
DEFINES += DOWNLOAD_SUBS
smplayer-0.8.1-system-quazip.patch:
findsubtitles/findsubtitles.pro | 20 ++------------------
smplayer.pro | 22 ++++------------------
2 files changed, 6 insertions(+), 36 deletions(-)
--- NEW FILE smplayer-0.8.1-system-quazip.patch ---
--- smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-03-31 15:46:16.000000000 +0300
+++ smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-09-20 13:06:27.086599698 +0300
@@ -34,30 +34,14 @@
DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += filedownloader quazip
- DEPENDPATH += filedownloader quazip
+ INCLUDEPATH += filedownloader
+ DEPENDPATH += filedownloader
HEADERS += filedownloader.h subchooserdialog.h
SOURCES += filedownloader.cpp subchooserdialog.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
-
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
LIBS += -lz
win32 {
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:06:27.087599689 +0300
@@ -258,31 +258,17 @@
# Download subtitles
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
- DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
+ INCLUDEPATH += findsubtitles/filedownloader
+ DEPENDPATH += findsubtitles/filedownloader
HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
+ INCLUDEPATH += /usr/include/quazip /usr/include/minizip
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
- LIBS += -lz
+ LIBS += -lz -lquazip
win32 {
INCLUDEPATH += ..\\zlib
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-17/.cvsignore,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- .cvsignore 28 Apr 2012 01:45:28 -0000 1.13
+++ .cvsignore 20 Sep 2012 21:39:45 -0000 1.14
@@ -1,2 +1,2 @@
-smplayer-0.8.0.tar.bz2
-smtube-1.1.tar.bz2
+smplayer-0.8.1.tar.bz2
+smtube-1.2.1.tar.bz2
Index: smplayer.spec
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-17/smplayer.spec,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- smplayer.spec 6 May 2012 21:10:03 -0000 1.19
+++ smplayer.spec 20 Sep 2012 21:39:47 -0000 1.20
@@ -1,8 +1,8 @@
-%global smtube_ver 1.1
+%global smtube_ver 1.2.1
Name: smplayer
-Version: 0.8.0
-Release: 2%{?dist}
+Version: 0.8.1
+Release: 1%{?dist}
Summary: A graphical frontend for mplayer
Group: Applications/Multimedia
@@ -17,8 +17,8 @@
# Fix regression in Thunar (TODO: re-check in upcoming versions!)
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1217
Patch0: smplayer-0.8.0-desktop-files.patch
-Patch1: smplayer-0.8.0-system-quazip.patch
-Patch2: smplayer-0.8.0-system-qtsingleapplication.patch
+Patch1: smplayer-0.8.1-system-quazip.patch
+Patch2: smplayer-0.8.1-system-qtsingleapplication.patch
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel
@@ -27,6 +27,7 @@
# smplayer without mplayer is quite useless
Requires: mplayer
Requires: kde-filesystem
+%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
%description
smplayer intends to be a complete front-end for Mplayer, from basic features
@@ -40,9 +41,10 @@
%setup -qn %{name}-%{version}
%setup -a3 -qn %{name}-%{version}
#remove some bundle sources
-rm -rf zlib-1.2.6
+rm -rf zlib
rm -rf src/findsubtitles/quazip
rm -rf src/qtsingleapplication/
+rm -rf smtube-%{smtube_ver}/src/qtsingleapplication/
%patch0 -p0 -b .desktop-files
%patch1 -p1 -b .quazip
@@ -54,9 +56,6 @@
iconv -f Latin1 -t UTF-8 -o Changelog.utf8 Changelog
mv Changelog.utf8 Changelog
-# use lrelease from qt4-devel
-sed -i 's|LRELEASE=lrelease|LRELEASE=%{_bindir}/lrelease-qt4|' Makefile
-
# fix path of docs
sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer-%{version}|' Makefile
@@ -67,15 +66,13 @@
echo "NotShowIn=KDE;" >> smplayer_enqueue.desktop
%build
-make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
pushd smtube-%{smtube_ver}
-sed -i 's|lrelease|%{_bindir}/lrelease-qt4|' Makefile
-sed -i 's|qmake|%{_qt4_qmake}|' Makefile
sed -i 's|/usr/local|%{_prefix}|' Makefile
sed -i 's|doc/smtube|doc/%{name}-%{version}/smtube|' Makefile
sed -i 's|smtube/translations|smplayer/translations|' Makefile
-make PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
popd
@@ -130,6 +127,10 @@
%{_datadir}/kde4/services/ServiceMenus/smplayer_enqueue.desktop
%changelog
+* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
+- New upsteam release.
+- rfbz #2113, all done by Nucleo.
+
* Sat Apr 28 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.0-2
- fix smtube translations.
- drop support for Fedora < 9 and EPEL 5, since we need kde4.
Index: sources
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-17/sources,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sources 28 Apr 2012 01:45:28 -0000 1.13
+++ sources 20 Sep 2012 21:39:47 -0000 1.14
@@ -1,2 +1,2 @@
-8f7d3a9c116e956c68976d0e5dbb83dd smplayer-0.8.0.tar.bz2
-e5018fcd9ebdc08658136476ba4843d2 smtube-1.1.tar.bz2
+39556a6113afcd9ceee071a8f85477dc smplayer-0.8.1.tar.bz2
+04eab6c1034670bf4269eb1a3eb110ef smtube-1.2.1.tar.bz2
--- smplayer-0.8.0-system-qtsingleapplication.patch DELETED ---
--- smplayer-0.8.0-system-quazip.patch DELETED ---
12 years, 2 months
rpms/smplayer/F-18 smplayer-0.8.1-system-qtsingleapplication.patch, NONE, 1.1 smplayer-0.8.1-system-quazip.patch, NONE, 1.1 smplayer.spec, 1.20, 1.21 sources, 1.13, 1.14 smplayer-0.8.0-system-qtsingleapplication.patch, 1.1, NONE smplayer-0.8.0-system-quazip.patch, 1.1, NONE
by Sérgio M. Basto
Author: sergiomb
Update of /cvs/free/rpms/smplayer/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv8345
Modified Files:
smplayer.spec sources
Added Files:
smplayer-0.8.1-system-qtsingleapplication.patch
smplayer-0.8.1-system-quazip.patch
Removed Files:
smplayer-0.8.0-system-qtsingleapplication.patch
smplayer-0.8.0-system-quazip.patch
Log Message:
* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
- New upsteam release.
- rfbz #2113, all done by Nucleo.
smplayer-0.8.1-system-qtsingleapplication.patch:
smtube-1.2.1/src/smtube.pro | 9 +++------
src/smplayer.pro | 10 +---------
2 files changed, 4 insertions(+), 15 deletions(-)
--- NEW FILE smplayer-0.8.1-system-qtsingleapplication.patch ---
--- smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-05-09 01:12:42.000000000 +0300
+++ smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-09-20 13:11:52.937317532 +0300
@@ -5,10 +5,11 @@
TEMPLATE = app
QT += network xml
TARGET =
-DEPENDPATH += . qtsingleapplication
-INCLUDEPATH += . qtsingleapplication
+DEPENDPATH += .
+INCLUDEPATH += .
CONFIG += qt warn_on release
+CONFIG += qtsingleapplication
RESOURCES = icons.qrc
@@ -63,10 +64,6 @@
translations/smtube_hu.ts \
translations/smtube_pl.ts
-# qtsingleapplication
-SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
-HEADERS += qtsingleapplication.h qtlocalpeer.h
-
unix {
UI_DIR = .ui
MOC_DIR = .moc
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:11:52.937317532 +0300
@@ -3,6 +3,7 @@
CONFIG += qt warn_on
CONFIG += release
+CONFIG += qtsingleapplication
#CONFIG += debug
QT += network xml
@@ -235,15 +236,6 @@
about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
toolbareditor.ui
-# qtsingleapplication
-contains( DEFINES, SINGLE_INSTANCE ) {
- INCLUDEPATH += qtsingleapplication
- DEPENDPATH += qtsingleapplication
-
- SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
- HEADERS += qtsingleapplication.h qtlocalpeer.h
-}
-
# Find subtitles dialog
contains( DEFINES, FIND_SUBTITLES ) {
DEFINES += DOWNLOAD_SUBS
smplayer-0.8.1-system-quazip.patch:
findsubtitles/findsubtitles.pro | 20 ++------------------
smplayer.pro | 22 ++++------------------
2 files changed, 6 insertions(+), 36 deletions(-)
--- NEW FILE smplayer-0.8.1-system-quazip.patch ---
--- smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-03-31 15:46:16.000000000 +0300
+++ smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-09-20 13:06:27.086599698 +0300
@@ -34,30 +34,14 @@
DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += filedownloader quazip
- DEPENDPATH += filedownloader quazip
+ INCLUDEPATH += filedownloader
+ DEPENDPATH += filedownloader
HEADERS += filedownloader.h subchooserdialog.h
SOURCES += filedownloader.cpp subchooserdialog.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
-
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
LIBS += -lz
win32 {
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:06:27.087599689 +0300
@@ -258,31 +258,17 @@
# Download subtitles
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
- DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
+ INCLUDEPATH += findsubtitles/filedownloader
+ DEPENDPATH += findsubtitles/filedownloader
HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
+ INCLUDEPATH += /usr/include/quazip /usr/include/minizip
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
- LIBS += -lz
+ LIBS += -lz -lquazip
win32 {
INCLUDEPATH += ..\\zlib
Index: smplayer.spec
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-18/smplayer.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- smplayer.spec 6 May 2012 21:08:09 -0000 1.20
+++ smplayer.spec 20 Sep 2012 21:35:12 -0000 1.21
@@ -1,8 +1,8 @@
-%global smtube_ver 1.1
+%global smtube_ver 1.2.1
Name: smplayer
-Version: 0.8.0
-Release: 2%{?dist}
+Version: 0.8.1
+Release: 1%{?dist}
Summary: A graphical frontend for mplayer
Group: Applications/Multimedia
@@ -17,8 +17,8 @@
# Fix regression in Thunar (TODO: re-check in upcoming versions!)
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1217
Patch0: smplayer-0.8.0-desktop-files.patch
-Patch1: smplayer-0.8.0-system-quazip.patch
-Patch2: smplayer-0.8.0-system-qtsingleapplication.patch
+Patch1: smplayer-0.8.1-system-quazip.patch
+Patch2: smplayer-0.8.1-system-qtsingleapplication.patch
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel
@@ -27,6 +27,7 @@
# smplayer without mplayer is quite useless
Requires: mplayer
Requires: kde-filesystem
+%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
%description
smplayer intends to be a complete front-end for Mplayer, from basic features
@@ -40,9 +41,10 @@
%setup -qn %{name}-%{version}
%setup -a3 -qn %{name}-%{version}
#remove some bundle sources
-rm -rf zlib-1.2.6
+rm -rf zlib
rm -rf src/findsubtitles/quazip
rm -rf src/qtsingleapplication/
+rm -rf smtube-%{smtube_ver}/src/qtsingleapplication/
%patch0 -p0 -b .desktop-files
%patch1 -p1 -b .quazip
@@ -54,9 +56,6 @@
iconv -f Latin1 -t UTF-8 -o Changelog.utf8 Changelog
mv Changelog.utf8 Changelog
-# use lrelease from qt4-devel
-sed -i 's|LRELEASE=lrelease|LRELEASE=%{_bindir}/lrelease-qt4|' Makefile
-
# fix path of docs
sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer-%{version}|' Makefile
@@ -67,15 +66,13 @@
echo "NotShowIn=KDE;" >> smplayer_enqueue.desktop
%build
-make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
pushd smtube-%{smtube_ver}
-sed -i 's|lrelease|%{_bindir}/lrelease-qt4|' Makefile
-sed -i 's|qmake|%{_qt4_qmake}|' Makefile
sed -i 's|/usr/local|%{_prefix}|' Makefile
sed -i 's|doc/smtube|doc/%{name}-%{version}/smtube|' Makefile
sed -i 's|smtube/translations|smplayer/translations|' Makefile
-make PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
popd
@@ -130,6 +127,10 @@
%{_datadir}/kde4/services/ServiceMenus/smplayer_enqueue.desktop
%changelog
+* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
+- New upsteam release.
+- rfbz #2113, all done by Nucleo.
+
* Sat Apr 28 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.0-2
- fix smtube translations.
- drop support for Fedora < 9 and EPEL 5, since we need kde4.
Index: sources
===================================================================
RCS file: /cvs/free/rpms/smplayer/F-18/sources,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sources 28 Apr 2012 01:26:44 -0000 1.13
+++ sources 20 Sep 2012 21:35:12 -0000 1.14
@@ -1,2 +1,2 @@
-8f7d3a9c116e956c68976d0e5dbb83dd smplayer-0.8.0.tar.bz2
-e5018fcd9ebdc08658136476ba4843d2 smtube-1.1.tar.bz2
+39556a6113afcd9ceee071a8f85477dc smplayer-0.8.1.tar.bz2
+04eab6c1034670bf4269eb1a3eb110ef smtube-1.2.1.tar.bz2
--- smplayer-0.8.0-system-qtsingleapplication.patch DELETED ---
--- smplayer-0.8.0-system-quazip.patch DELETED ---
12 years, 2 months
rpms/smplayer/devel smplayer-0.8.1-system-qtsingleapplication.patch, NONE, 1.1 smplayer-0.8.1-system-quazip.patch, NONE, 1.1 .cvsignore, 1.13, 1.14 smplayer.spec, 1.20, 1.21 sources, 1.13, 1.14 smplayer-0.8.0-system-qtsingleapplication.patch, 1.1, NONE
by Sérgio M. Basto
Author: sergiomb
Update of /cvs/free/rpms/smplayer/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv6436
Modified Files:
.cvsignore smplayer.spec sources
Added Files:
smplayer-0.8.1-system-qtsingleapplication.patch
smplayer-0.8.1-system-quazip.patch
Removed Files:
smplayer-0.8.0-system-qtsingleapplication.patch
Log Message:
* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
- New upsteam release.
- rfbz #2113, all done by Nucleo.
smplayer-0.8.1-system-qtsingleapplication.patch:
smtube-1.2.1/src/smtube.pro | 9 +++------
src/smplayer.pro | 10 +---------
2 files changed, 4 insertions(+), 15 deletions(-)
--- NEW FILE smplayer-0.8.1-system-qtsingleapplication.patch ---
--- smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-05-09 01:12:42.000000000 +0300
+++ smplayer-0.8.1/smtube-1.2.1/src/smtube.pro 2012-09-20 13:11:52.937317532 +0300
@@ -5,10 +5,11 @@
TEMPLATE = app
QT += network xml
TARGET =
-DEPENDPATH += . qtsingleapplication
-INCLUDEPATH += . qtsingleapplication
+DEPENDPATH += .
+INCLUDEPATH += .
CONFIG += qt warn_on release
+CONFIG += qtsingleapplication
RESOURCES = icons.qrc
@@ -63,10 +64,6 @@
translations/smtube_hu.ts \
translations/smtube_pl.ts
-# qtsingleapplication
-SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
-HEADERS += qtsingleapplication.h qtlocalpeer.h
-
unix {
UI_DIR = .ui
MOC_DIR = .moc
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:11:52.937317532 +0300
@@ -3,6 +3,7 @@
CONFIG += qt warn_on
CONFIG += release
+CONFIG += qtsingleapplication
#CONFIG += debug
QT += network xml
@@ -235,15 +236,6 @@
about.ui inputmplayerversion.ui errordialog.ui timedialog.ui \
toolbareditor.ui
-# qtsingleapplication
-contains( DEFINES, SINGLE_INSTANCE ) {
- INCLUDEPATH += qtsingleapplication
- DEPENDPATH += qtsingleapplication
-
- SOURCES += qtsingleapplication.cpp qtlocalpeer.cpp
- HEADERS += qtsingleapplication.h qtlocalpeer.h
-}
-
# Find subtitles dialog
contains( DEFINES, FIND_SUBTITLES ) {
DEFINES += DOWNLOAD_SUBS
smplayer-0.8.1-system-quazip.patch:
findsubtitles/findsubtitles.pro | 20 ++------------------
smplayer.pro | 22 ++++------------------
2 files changed, 6 insertions(+), 36 deletions(-)
--- NEW FILE smplayer-0.8.1-system-quazip.patch ---
--- smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-03-31 15:46:16.000000000 +0300
+++ smplayer-0.8.1/src/findsubtitles/findsubtitles.pro 2012-09-20 13:06:27.086599698 +0300
@@ -34,30 +34,14 @@
DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += filedownloader quazip
- DEPENDPATH += filedownloader quazip
+ INCLUDEPATH += filedownloader
+ DEPENDPATH += filedownloader
HEADERS += filedownloader.h subchooserdialog.h
SOURCES += filedownloader.cpp subchooserdialog.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
-
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
LIBS += -lz
win32 {
--- smplayer-0.8.1/src/smplayer.pro 2012-06-01 18:37:36.000000000 +0300
+++ smplayer-0.8.1/src/smplayer.pro 2012-09-20 13:06:27.087599689 +0300
@@ -258,31 +258,17 @@
# Download subtitles
contains( DEFINES, DOWNLOAD_SUBS ) {
- INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
- DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
+ INCLUDEPATH += findsubtitles/filedownloader
+ DEPENDPATH += findsubtitles/filedownloader
HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
FORMS += subchooserdialog.ui
- HEADERS += crypt.h \
- ioapi.h \
- quazip.h \
- quazipfile.h \
- quazipfileinfo.h \
- quazipnewinfo.h \
- unzip.h \
- zip.h
+ INCLUDEPATH += /usr/include/quazip /usr/include/minizip
- SOURCES += ioapi.c \
- quazip.cpp \
- quazipfile.cpp \
- quazipnewinfo.cpp \
- unzip.c \
- zip.c
-
- LIBS += -lz
+ LIBS += -lz -lquazip
win32 {
INCLUDEPATH += ..\\zlib
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/smplayer/devel/.cvsignore,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- .cvsignore 28 Apr 2012 01:26:44 -0000 1.13
+++ .cvsignore 20 Sep 2012 21:09:07 -0000 1.14
@@ -1,2 +1,2 @@
-smplayer-0.8.0.tar.bz2
-smtube-1.1.tar.bz2
+smplayer-0.8.1.tar.bz2
+smtube-1.2.1.tar.bz2
Index: smplayer.spec
===================================================================
RCS file: /cvs/free/rpms/smplayer/devel/smplayer.spec,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- smplayer.spec 6 May 2012 21:08:09 -0000 1.20
+++ smplayer.spec 20 Sep 2012 21:09:07 -0000 1.21
@@ -1,8 +1,8 @@
-%global smtube_ver 1.1
+%global smtube_ver 1.2.1
Name: smplayer
-Version: 0.8.0
-Release: 2%{?dist}
+Version: 0.8.1
+Release: 1%{?dist}
Summary: A graphical frontend for mplayer
Group: Applications/Multimedia
@@ -17,8 +17,8 @@
# Fix regression in Thunar (TODO: re-check in upcoming versions!)
# https://bugzilla.rpmfusion.org/show_bug.cgi?id=1217
Patch0: smplayer-0.8.0-desktop-files.patch
-Patch1: smplayer-0.8.0-system-quazip.patch
-Patch2: smplayer-0.8.0-system-qtsingleapplication.patch
+Patch1: smplayer-0.8.1-system-quazip.patch
+Patch2: smplayer-0.8.1-system-qtsingleapplication.patch
BuildRequires: desktop-file-utils
BuildRequires: qt4-devel
@@ -27,6 +27,7 @@
# smplayer without mplayer is quite useless
Requires: mplayer
Requires: kde-filesystem
+%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
%description
smplayer intends to be a complete front-end for Mplayer, from basic features
@@ -40,9 +41,10 @@
%setup -qn %{name}-%{version}
%setup -a3 -qn %{name}-%{version}
#remove some bundle sources
-rm -rf zlib-1.2.6
+rm -rf zlib
rm -rf src/findsubtitles/quazip
rm -rf src/qtsingleapplication/
+rm -rf smtube-%{smtube_ver}/src/qtsingleapplication/
%patch0 -p0 -b .desktop-files
%patch1 -p1 -b .quazip
@@ -54,9 +56,6 @@
iconv -f Latin1 -t UTF-8 -o Changelog.utf8 Changelog
mv Changelog.utf8 Changelog
-# use lrelease from qt4-devel
-sed -i 's|LRELEASE=lrelease|LRELEASE=%{_bindir}/lrelease-qt4|' Makefile
-
# fix path of docs
sed -i 's|DOC_PATH=$(PREFIX)/share/doc/packages/smplayer|DOC_PATH=$(PREFIX)/share/doc/smplayer-%{version}|' Makefile
@@ -67,15 +66,13 @@
echo "NotShowIn=KDE;" >> smplayer_enqueue.desktop
%build
-make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
pushd smtube-%{smtube_ver}
-sed -i 's|lrelease|%{_bindir}/lrelease-qt4|' Makefile
-sed -i 's|qmake|%{_qt4_qmake}|' Makefile
sed -i 's|/usr/local|%{_prefix}|' Makefile
sed -i 's|doc/smtube|doc/%{name}-%{version}/smtube|' Makefile
sed -i 's|smtube/translations|smplayer/translations|' Makefile
-make PREFIX=%{_prefix}
+make QMAKE=%{_qt4_qmake} PREFIX=%{_prefix} LRELEASE=%{_bindir}/lrelease-qt4
popd
@@ -130,6 +127,10 @@
%{_datadir}/kde4/services/ServiceMenus/smplayer_enqueue.desktop
%changelog
+* Thu Sep 20 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.1-1
+- New upsteam release.
+- rfbz #2113, all done by Nucleo.
+
* Sat Apr 28 2012 Sérgio Basto <sergio(a)serjux.com> - 0.8.0-2
- fix smtube translations.
- drop support for Fedora < 9 and EPEL 5, since we need kde4.
Index: sources
===================================================================
RCS file: /cvs/free/rpms/smplayer/devel/sources,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- sources 28 Apr 2012 01:26:44 -0000 1.13
+++ sources 20 Sep 2012 21:09:07 -0000 1.14
@@ -1,2 +1,2 @@
-8f7d3a9c116e956c68976d0e5dbb83dd smplayer-0.8.0.tar.bz2
-e5018fcd9ebdc08658136476ba4843d2 smtube-1.1.tar.bz2
+39556a6113afcd9ceee071a8f85477dc smplayer-0.8.1.tar.bz2
+04eab6c1034670bf4269eb1a3eb110ef smtube-1.2.1.tar.bz2
--- smplayer-0.8.0-system-qtsingleapplication.patch DELETED ---
12 years, 2 months
rpms/gnome-mplayer/devel gnome-mplayer.spec,1.40,1.41
by Julian Sikorski
Author: belegdol
Update of /cvs/free/rpms/gnome-mplayer/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv4568
Modified Files:
gnome-mplayer.spec
Log Message:
* Mon Apr 16 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 1.0.6-2
- Rebuilt for new libimobiledevice and usbmuxd (RPM Fusion #2280)
Index: gnome-mplayer.spec
===================================================================
RCS file: /cvs/free/rpms/gnome-mplayer/devel/gnome-mplayer.spec,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- gnome-mplayer.spec 7 Apr 2012 11:39:11 -0000 1.40
+++ gnome-mplayer.spec 20 Sep 2012 20:39:35 -0000 1.41
@@ -2,7 +2,7 @@
Name: gnome-mplayer
Version: 1.0.6
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: An MPlayer GUI, a full-featured binary
License: GPLv2+
@@ -176,6 +176,9 @@
%changelog
+* Mon Apr 16 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 1.0.6-2
+- Rebuilt for new libimobiledevice and usbmuxd (RPM Fusion #2280)
+
* Fri Apr 06 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 1.0.6-1
- Updated to 1.0.6
- Dropped explicit nautilus-extensions dependency
12 years, 2 months
rpms/openafs-kmod/F-18 openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch, NONE, 1.1 openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch, NONE, 1.1 openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch, NONE, 1.1 openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch, NONE, 1.1 openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch, NONE, 1.1 openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch, NONE, 1.1 openafs-1.
by Ken Dreyer
Author: ktdreyer
Update of /cvs/free/rpms/openafs-kmod/F-18
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv14351
Modified Files:
openafs-kmod.spec
Added Files:
openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch
openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch
openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch
openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch
openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch
openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch
openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch
openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch
Log Message:
* Wed Sep 19 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-3
- Add upstream patches for kernel 3.6
openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch:
afs_bypasscache.c | 64 ++++++++++++++++++++----------------------------------
1 file changed, 24 insertions(+), 40 deletions(-)
--- NEW FILE openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch ---
>From a9b3e53dcb693182b51e7f5b43586e3e2dc29b8a Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 20:32:08 -0400
Subject: [PATCH 1/8] Linux: bypass: consolidate copy_page macros into a
single function
The copy_page(s) macros are very similar; combine them into a
single function that can be used for all cases.
This will make it easier to add some pre-processor logic around
the kmap_atomic calls to adapt to Linux API changes.
Reviewed-on: http://gerrit.openafs.org/7980
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 0a8256a26fafb490b454f2a857b0c15d859572c5)
Change-Id: I6835a024428b26a8cd8d073f6304d0d0b3042b24
---
src/afs/afs_bypasscache.c | 63 ++++++++++++++++++-----------------------------
1 file changed, 24 insertions(+), 39 deletions(-)
diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c
index e447024..b350233 100644
--- a/src/afs/afs_bypasscache.c
+++ b/src/afs/afs_bypasscache.c
@@ -270,49 +270,12 @@ done:
#ifdef UKERNEL
typedef void * bypass_page_t;
-#define copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- int dolen = auio->uio_iov[curiov].iov_len - pageoff; \
- memcpy(((char *)pp) + pageoff, \
- ((char *)rxiov[iovno].iov_base) + iovoff, dolen); \
- auio->uio_resid -= dolen; \
- } while(0)
-
-#define copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- int dolen = rxiov[iovno].iov_len - iovoff; \
- memcpy(((char *)pp) + pageoff, \
- ((char *)rxiov[iovno].iov_base) + iovoff, dolen); \
- auio->uio_resid -= dolen; \
- } while(0)
-
#define unlock_and_release_pages(auio)
#define release_full_page(pp, pageoff)
#else
typedef struct page * bypass_page_t;
-#define copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- char *address; \
- int dolen = auio->uio_iov[curiov].iov_len - pageoff; \
- address = kmap_atomic(pp, KM_USER0); \
- memcpy(address + pageoff, \
- (char *)(rxiov[iovno].iov_base) + iovoff, dolen); \
- kunmap_atomic(address, KM_USER0); \
- } while(0)
-
-#define copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- char *address; \
- int dolen = rxiov[iovno].iov_len - iovoff; \
- address = kmap_atomic(pp, KM_USER0); \
- memcpy(address + pageoff, \
- (char *)(rxiov[iovno].iov_base) + iovoff, dolen); \
- kunmap_atomic(address, KM_USER0); \
- } while(0)
-
-
#define unlock_and_release_pages(auio) \
do { \
struct iovec *ciov; \
@@ -347,8 +310,30 @@ typedef struct page * bypass_page_t;
afs_warn("afs_NoCacheFetchProc: page not locked!\n"); \
put_page(pp); /* decrement refcount */ \
} while(0)
+#endif
+
+static void
+afs_bypass_copy_page(bypass_page_t pp, int pageoff, struct iovec *rxiov,
+ int iovno, int iovoff, struct uio *auio, int curiov, int partial)
+{
+ char *address;
+ int dolen;
+
+ if (partial)
+ dolen = rxiov[iovno].iov_len - iovoff;
+ else
+ dolen = auio->uio_iov[curiov].iov_len - pageoff;
+#if !defined(UKERNEL)
+ address = kmap_atomic(pp, KM_USER0);
+#else
+ address = pp;
#endif
+ memcpy(address + pageoff, (char *)(rxiov[iovno].iov_base) + iovoff, dolen);
+#if !defined(UKERNEL)
+ kunmap_atomic(address, KM_USER0);
+#endif
+}
/* no-cache prefetch routine */
static afs_int32
@@ -447,7 +432,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
if (pageoff + (rxiov[iovno].iov_len - iovoff) <= auio->uio_iov[curpage].iov_len) {
/* Copy entire (or rest of) current iovec into current page */
if (pp)
- copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curpage);
+ afs_bypass_copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage, 0);
length -= (rxiov[iovno].iov_len - iovoff);
pageoff += rxiov[iovno].iov_len - iovoff;
iovno++;
@@ -455,7 +440,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
} else {
/* Copy only what's needed to fill current page */
if (pp)
- copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage);
+ afs_bypass_copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage, 1);
length -= (auio->uio_iov[curpage].iov_len - pageoff);
iovoff += auio->uio_iov[curpage].iov_len - pageoff;
pageoff = auio->uio_iov[curpage].iov_len;
--
1.7.11.4
openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch:
acinclude.m4 | 1 +
src/afs/afs_bypasscache.c | 8 ++++++++
src/cf/linux-test4.m4 | 13 ++++++++++++-
3 files changed, 21 insertions(+), 1 deletion(-)
--- NEW FILE openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch ---
>From 2e1c365052d43813ab2c7f5a4d4268c3b03315f0 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 16:34:42 -0400
Subject: [PATCH 2/8] Linux 3.6: kmap_atomic API change
kmap_atomic no longer requires a KM_TYPE argument. Test for this
and adjust the affected code.
Reviewed-on: http://gerrit.openafs.org/7981
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 049c485b4a39ba510035788b4959d839ef668c55)
Change-Id: Iac8be7901da4b277864b1b6cc987cf5087992789
---
acinclude.m4 | 1 +
src/afs/afs_bypasscache.c | 8 ++++++++
src/cf/linux-test4.m4 | 12 ++++++++++++
3 files changed, 21 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index 25484cf..20fd15e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -959,6 +959,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_IOP_MKDIR_TAKES_UMODE_T
LINUX_IOP_CREATE_TAKES_UMODE_T
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
+ LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c
index b350233..1138f89 100644
--- a/src/afs/afs_bypasscache.c
+++ b/src/afs/afs_bypasscache.c
@@ -325,13 +325,21 @@ afs_bypass_copy_page(bypass_page_t pp, int pageoff, struct iovec *rxiov,
dolen = auio->uio_iov[curiov].iov_len - pageoff;
#if !defined(UKERNEL)
+# if defined(KMAP_ATOMIC_TAKES_NO_KM_TYPE)
+ address = kmap_atomic(pp);
+# else
address = kmap_atomic(pp, KM_USER0);
+# endif
#else
address = pp;
#endif
memcpy(address + pageoff, (char *)(rxiov[iovno].iov_base) + iovoff, dolen);
#if !defined(UKERNEL)
+# if defined(KMAP_ATOMIC_TAKES_NO_KM_TYPE)
+ kunmap_atomic(address);
+# else
kunmap_atomic(address, KM_USER0);
+# endif
#endif
}
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index f13e97d..7db805f 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -675,3 +675,15 @@ AC_DEFUN([LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES], [
[define if encode_fh export op takes inode arguments],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE], [
+ AC_CHECK_LINUX_BUILD([whether kmap_atomic takes no km_type argument],
+ [ac_cv_linux_kma_atomic_takes_no_km_type],
+ [#include <linux/highmem.h>],
+ [struct page *p = NULL;
+ kmap_atomic(p);],
+ [KMAP_ATOMIC_TAKES_NO_KM_TYPE],
+ [define if kmap_atomic takes no km_type argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_compat.h | 16 ++++++++++++++++
src/afs/LINUX/osi_file.c | 4 ++--
src/cf/linux-test4.m4 | 13 ++++++++++++-
4 files changed, 31 insertions(+), 3 deletions(-)
--- NEW FILE openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch ---
>From a03c03800be47c35a0a95bd88bc1e79fca81460f Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 21:36:15 -0400
Subject: [PATCH 3/8] Linux 3.6: dentry_open API change
dentry_open now takes a path argument that combines the dentry and
the vfsmount pointers.
Add a configure test and a new compat inline function to keep things
cleaner in the main source file.
Reviewed-on: http://gerrit.openafs.org/7982
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 8766a65e97eb90cb6c97ccd35181c441ece14f8a)
Change-Id: I2c0f59ad9aa6e544a2a613e902933d463f22a5b6
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_compat.h | 16 ++++++++++++++++
src/afs/LINUX/osi_file.c | 4 ++--
src/cf/linux-test4.m4 | 12 ++++++++++++
4 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 20fd15e..d99c755 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -960,6 +960,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_IOP_CREATE_TAKES_UMODE_T
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
+ LINUX_DENTRY_OPEN_TAKES_PATH
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h
index 4c7c261..84fcaa5 100644
--- a/src/afs/LINUX/osi_compat.h
+++ b/src/afs/LINUX/osi_compat.h
@@ -445,4 +445,20 @@ afs_get_dentry_ref(struct path *path, struct vfsmount **mnt, struct dentry **dpp
#endif
}
+#if defined(STRUCT_TASK_STRUCT_HAS_CRED)
+static inline struct file *
+afs_dentry_open(struct dentry *dp, struct vfsmount *mnt, int flags, const struct cred *creds) {
+#if defined(DENTRY_OPEN_TAKES_PATH)
+ struct path path;
+ struct file *filp;
+ path.mnt = mnt;
+ path.dentry = dp;
+ filp = dentry_open(&path, flags, creds);
+ return filp;
+#else
+ return dentry_open(dp, mntget(mnt), flags, creds);
+#endif
+}
+#endif
+
#endif /* AFS_LINUX_OSI_COMPAT_H */
diff --git a/src/afs/LINUX/osi_file.c b/src/afs/LINUX/osi_file.c
index 3c20fd9..27806ab 100644
--- a/src/afs/LINUX/osi_file.c
+++ b/src/afs/LINUX/osi_file.c
@@ -56,9 +56,9 @@ afs_linux_raw_open(afs_dcache_id_t *ainode)
#if defined(STRUCT_TASK_STRUCT_HAS_CRED)
/* Use stashed credentials - prevent selinux/apparmor problems */
- filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, cache_creds);
+ filp = afs_dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, cache_creds);
if (IS_ERR(filp))
- filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, current_cred());
+ filp = afs_dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, current_cred());
#else
filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR);
#endif
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 7db805f..427c5e1 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -687,3 +687,15 @@ AC_DEFUN([LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE], [
[define if kmap_atomic takes no km_type argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_DENTRY_OPEN_TAKES_PATH], [
+ AC_CHECK_LINUX_BUILD([whether dentry_open takes a path argument],
+ [ac_cv_linux_dentry_open_takes_path],
+ [#include <linux/fs.h>],
+ [struct path p;
+ dentry_open(&p, 0, NULL);],
+ [DENTRY_OPEN_TAKES_PATH],
+ [define if dentry_open takes a path argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vcache.c | 12 ++++++++++++
src/afs/afs_daemons.c | 5 +++++
src/cf/linux-test4.m4 | 14 +++++++++++++-
4 files changed, 31 insertions(+), 1 deletion(-)
--- NEW FILE openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch ---
>From 1eaf7b62e12affca7e529b790597fad330da01ee Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 21:55:25 -0400
Subject: [PATCH 4/8] Linux 3.6: d_alias and i_dentry are now hlists
The d_alias pointer is now the head of an hlist. This means the
iterator is a different macro and has no "reverse" version since
hlists have no direct pointer to the list tail.
inode->i_dentry gets the same treatment. Adjust where we use it.
Reviewed-on: http://gerrit.openafs.org/7983
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 6bea047fb404bde828c6358ae06f7941aa2bc959)
Change-Id: I7e7b87e5f5c240f3f0ff25fa723c857ab9d0108c
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vcache.c | 12 ++++++++++++
src/afs/afs_daemons.c | 5 +++++
src/cf/linux-test4.m4 | 13 +++++++++++++
4 files changed, 31 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index d99c755..d52d149 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -961,6 +961,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
LINUX_DENTRY_OPEN_TAKES_PATH
+ LINUX_D_ALIAS_IS_HLIST
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vcache.c b/src/afs/LINUX/osi_vcache.c
index e82d78e..cd61c65 100644
--- a/src/afs/LINUX/osi_vcache.c
+++ b/src/afs/LINUX/osi_vcache.c
@@ -19,7 +19,11 @@ osi_TryEvictVCache(struct vcache *avc, int *slept, int defersleep) {
struct dentry *dentry;
struct inode *inode = AFSTOV(avc);
+#if defined(D_ALIAS_IS_HLIST)
+ struct hlist_node *cur, *head;
+#else
struct list_head *cur, *head;
+#endif
/* First, see if we can evict the inode from the dcache */
if (defersleep && avc != afs_globalVp && VREFCOUNT(avc) > 1 && avc->opens == 0) {
@@ -53,12 +57,20 @@ restart:
spin_unlock(&dcache_lock);
#else /* HAVE_DCACHE_LOCK */
spin_lock(&inode->i_lock);
+#if defined(D_ALIAS_IS_HLIST)
+ head = inode->i_dentry.first;
+#else
head = &inode->i_dentry;
+#endif
restart:
cur = head;
while ((cur = cur->next) != head) {
+#if defined(D_ALIAS_IS_HLIST)
+ dentry = hlist_entry(cur, struct dentry, d_alias);
+#else
dentry = list_entry(cur, struct dentry, d_alias);
+#endif
spin_lock(&dentry->d_lock);
if (d_unhashed(dentry)) {
diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c
index 23655e3..f47be0e 100644
--- a/src/afs/afs_daemons.c
+++ b/src/afs/afs_daemons.c
@@ -396,8 +396,13 @@ afs_CheckRootVolume(void)
spin_lock(&dp->d_lock);
#endif
#endif
+#if defined(D_ALIAS_IS_HLIST)
+ hlist_del_init(&dp->d_alias);
+ hlist_add_head(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
+#else
list_del_init(&dp->d_alias);
list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
+#endif
dp->d_inode = AFSTOV(vcp);
#if defined(AFS_LINUX24_ENV)
#if defined(AFS_LINUX26_ENV)
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 427c5e1..6b70059 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -699,3 +699,16 @@ AC_DEFUN([LINUX_DENTRY_OPEN_TAKES_PATH], [
[define if dentry_open takes a path argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_D_ALIAS_IS_HLIST], [
+ AC_CHECK_LINUX_BUILD([whether dentry->d_alias is an hlist],
+ [ac_cv_linux_d_alias_is_hlist],
+ [#include <linux/fs.h>],
+ [struct dentry *d = NULL;
+ struct hlist_node *hn = NULL;
+ d->d_alias = *hn;],
+ [D_ALIAS_IS_HLIST],
+ [define if dentry->d_alias is an hlist],
+ [])
+])
--
1.7.11.4
openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch:
osi_vnodeops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch ---
>From 439897bfcf7dbf4dc4f6967b69ca399252a54e29 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 17:11:08 -0400
Subject: [PATCH 5/8] Linux: fix variable used to test for the iop create API
Use correct variable when testing for the create API to use.
This is just for looks - there is no effect since mkdir and create
were changed in the same kernel release.
Reviewed-on: http://gerrit.openafs.org/7984
Reviewed-by: Alistair Ferguson <alistair.ferguson(a)mac.com>
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit c633a92a1bc7881f18ee641082ff2efe7da1a8cb)
Change-Id: Ib23fe9a34bc07227614c149b0f16d3b0a067501b
---
src/afs/LINUX/osi_vnodeops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 4cda547..b3bf115 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1094,7 +1094,7 @@ struct dentry_operations afs_dentry_operations = {
* name is in kernel space at this point.
*/
static int
-#if defined(IOP_MKDIR_TAKES_UMODE_T)
+#if defined(IOP_CREATE_TAKES_UMODE_T)
afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
struct nameidata *nd)
#else
--
1.7.11.4
openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 9 +++++----
src/cf/linux-test4.m4 | 16 +++++++++++++++-
3 files changed, 21 insertions(+), 5 deletions(-)
--- NEW FILE openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch ---
>From 3e27f1e2e7302f0f87c03d5e174b1754379fb66e Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 17:28:50 -0400
Subject: [PATCH 6/8] Linux 3.6: create inode operation API change
The nameidata argument is dropped and a flag is added.
Reviewed-on: http://gerrit.openafs.org/7985
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 020e32779c103817ca89caa51259fb53bc3dde79)
Change-Id: Iae2a0301a1c4acb6835eb0bdca6ae22b143b2cda
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 9 +++++----
src/cf/linux-test4.m4 | 15 +++++++++++++++
3 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index d52d149..1c84354 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -962,6 +962,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
LINUX_DENTRY_OPEN_TAKES_PATH
LINUX_D_ALIAS_IS_HLIST
+ LINUX_IOP_I_CREATE_TAKES_BOOL
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index b3bf115..8c8045b 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1094,17 +1094,18 @@ struct dentry_operations afs_dentry_operations = {
* name is in kernel space at this point.
*/
static int
-#if defined(IOP_CREATE_TAKES_UMODE_T)
+#if defined(IOP_CREATE_TAKES_BOOL)
+afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
+ bool excl)
+#elif defined(IOP_CREATE_TAKES_UMODE_T)
afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
struct nameidata *nd)
-#else
-#ifdef IOP_CREATE_TAKES_NAMEIDATA
+#elif defined(IOP_CREATE_TAKES_NAMEIDATA)
afs_linux_create(struct inode *dip, struct dentry *dp, int mode,
struct nameidata *nd)
#else
afs_linux_create(struct inode *dip, struct dentry *dp, int mode)
#endif
-#endif
{
struct vattr vattr;
cred_t *credp = crref();
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 6b70059..dc30770 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -712,3 +712,18 @@ AC_DEFUN([LINUX_D_ALIAS_IS_HLIST], [
[define if dentry->d_alias is an hlist],
[])
])
+
+
+AC_DEFUN([LINUX_IOP_I_CREATE_TAKES_BOOL], [
+ AC_CHECK_LINUX_BUILD([whether inode_operations.create takes a bool],
+ [ac_cv_linux_func_i_create_takes_bool],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct inode _inode = {};
+ struct dentry _dentry;
+ bool b = true;
+ (void)_inode.i_op->create(&_inode, &_dentry, 0, b);],
+ [IOP_CREATE_TAKES_BOOL],
+ [define if your iops.create takes a bool argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 8 +++++++-
src/cf/linux-test4.m4 | 15 ++++++++++++++-
3 files changed, 22 insertions(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch ---
>From 57f3a2bbe873dae41bc57130a5985e8c334a5303 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 18:08:51 -0400
Subject: [PATCH 7/8] Linux 3.6: revalidate dentry op API change
The nameidata argument is dropped, replaced by an unsigned flags
value. The configure test is very specific; kernels with the
older API with a signed int flags value should fall through.
Reviewed-on: http://gerrit.openafs.org/7986
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 7413cd09a53f89882a46fd100bf6c501348f2188)
Change-Id: Ie68d70dcf414d24e7e980c8a8f35b83550d2da7c
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 8 +++++++-
src/cf/linux-test4.m4 | 14 ++++++++++++++
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 1c84354..8bb5bf7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -963,6 +963,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_DENTRY_OPEN_TAKES_PATH
LINUX_D_ALIAS_IS_HLIST
LINUX_IOP_I_CREATE_TAKES_BOOL
+ LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 8c8045b..49f8b96 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -906,7 +906,9 @@ afs_linux_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *sta
* later on, we shouldn't have to do it until later. Perhaps in the future..
*/
static int
-#ifdef DOP_REVALIDATE_TAKES_NAMEIDATA
+#if defined(DOP_REVALIDATE_TAKES_UNSIGNED)
+afs_linux_dentry_revalidate(struct dentry *dp, unsigned int flags)
+#elif defined(DOP_REVALIDATE_TAKES_NAMEIDATA)
afs_linux_dentry_revalidate(struct dentry *dp, struct nameidata *nd)
#else
afs_linux_dentry_revalidate(struct dentry *dp, int flags)
@@ -921,7 +923,11 @@ afs_linux_dentry_revalidate(struct dentry *dp, int flags)
#ifdef LOOKUP_RCU
/* We don't support RCU path walking */
+# if defined(DOP_REVALIDATE_TAKES_UNSIGNED)
+ if (flags & LOOKUP_RCU)
+# else
if (nd->flags & LOOKUP_RCU)
+# endif
return -ECHILD;
#endif
AFS_GLOCK();
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index dc30770..4a6ec02 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -727,3 +727,17 @@ AC_DEFUN([LINUX_IOP_I_CREATE_TAKES_BOOL], [
[define if your iops.create takes a bool argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED], [
+ AC_CHECK_LINUX_BUILD([whether dentry_operations.d_revalidate takes an unsigned int],
+ [ac_cv_linux_func_d_revalidate_takes_unsigned],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct dentry_operations dops;
+ int reval(struct dentry *d, unsigned int i) { return 0; };
+ dops.d_revalidate = reval;],
+ [DOP_REVALIDATE_TAKES_UNSIGNED],
+ [define if your dops.d_revalidate takes an unsigned int argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 5 ++++-
src/cf/linux-test4.m4 | 15 ++++++++++++++-
3 files changed, 19 insertions(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch ---
>From a131b915fec5ca7679c092af2031ac20e9e78658 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 18:26:24 -0400
Subject: [PATCH 8/8] Linux 3.6: lookup inode operation API change
The nameidata argument is replaced with an unsigned int flags
argument.
Reviewed-on: http://gerrit.openafs.org/7987
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit ec48dca871ef98adb69792a34047c6be5818f1b2)
Change-Id: Ic8be26141ede6e1c4062872c79a846efb0045bda
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 5 ++++-
src/cf/linux-test4.m4 | 14 ++++++++++++++
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 8bb5bf7..4b49449 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -964,6 +964,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_D_ALIAS_IS_HLIST
LINUX_IOP_I_CREATE_TAKES_BOOL
LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED
+ LINUX_IOP_LOOKUP_TAKES_UNSIGNED
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 49f8b96..c376bd1 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1147,7 +1147,10 @@ afs_linux_create(struct inode *dip, struct dentry *dp, int mode)
/* afs_linux_lookup */
static struct dentry *
-#ifdef IOP_LOOKUP_TAKES_NAMEIDATA
+#if defined(IOP_LOOKUP_TAKES_UNSIGNED)
+afs_linux_lookup(struct inode *dip, struct dentry *dp,
+ unsigned flags)
+#elif defined(IOP_LOOKUP_TAKES_NAMEIDATA)
afs_linux_lookup(struct inode *dip, struct dentry *dp,
struct nameidata *nd)
#else
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 4a6ec02..fc0149f 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -741,3 +741,17 @@ AC_DEFUN([LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED], [
[define if your dops.d_revalidate takes an unsigned int argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_IOP_LOOKUP_TAKES_UNSIGNED], [
+ AC_CHECK_LINUX_BUILD([whether inode operation lookup takes an unsigned int],
+ [ac_cv_linux_func_lookup_takes_unsigned],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct inode_operations iops;
+ struct dentry *look(struct inode *i, struct dentry *d, unsigned int j) { return NULL; };
+ iops.lookup = look;],
+ [IOP_LOOKUP_TAKES_UNSIGNED],
+ [define if your iops.lookup takes an unsigned int argument],
+ [-Werror])
+])
--
1.7.11.4
Index: openafs-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/openafs-kmod/F-18/openafs-kmod.spec,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- openafs-kmod.spec 24 Aug 2012 18:26:46 -0000 1.22
+++ openafs-kmod.spec 20 Sep 2012 02:23:37 -0000 1.23
@@ -21,7 +21,7 @@
Name: %{kmod_name}-kmod
Version: 1.6.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Kernel module(s)
Group: System Environment/Kernel
@@ -31,10 +31,46 @@
Source0: http://dl.openafs.org/dl/%{version}/%{kmod_name}-%{version}-src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# Upstream patches to build on newer kernels
+# Upstream patches to build on kernel 3.5
Patch0: openafs-1.6.1-clear_inode.patch
Patch1: openafs-1.6.1-encode_fh.patch
+# Upstream patches to build on kernel 3.6. In-progress in Gerrit.
+# Steps to create these patches:
+# 1) git clone from openafs.org
+# 2) git checkout openafs-stable-1_6_1
+# 3) git checkout -b fedora
+# 4) Get the two Patches above (patch0 and patch1)
+# git cherry-pick -x cc63cbbc138f60d6b5964fa859dcd778717b24c2
+# git cherry-pick -x 407e7c90a97143d436ad3a6af6bbfa431c849191
+# 5) Take note of the commit hash here.
+# 6) Cherry-pick the appropriate patches from Gerrit onto this "fedora" branch
+# When cherry-picking "d_alias and i_dentry are now hlists"
+# (http://gerrit.openafs.org/8080), avoid the post-1.6.1 canonical_dentry()
+# function from http://gerrit.openafs.org/7951 .
+# 7) Create the patch files
+# git format-patch <hash in step 5>
+# If you forgot the hash from step 5, look with "git log --oneline"
+# 8) Rename patche files according to Fedora package guidelines:
+# for i in $(ls *.patch); do mv $i openafs-1.6.1-$i; done
+
+# http://gerrit.openafs.org/8077
+Patch4: openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch
+# http://gerrit.openafs.org/8078
+Patch5: openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch
+# http://gerrit.openafs.org/8079
+Patch6: openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch
+# http://gerrit.openafs.org/8080
+Patch7: openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch
+# http://gerrit.openafs.org/8081
+Patch8: openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch
+# http://gerrit.openafs.org/8082
+Patch9: openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch
+# http://gerrit.openafs.org/8083
+Patch10: openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch
+# http://gerrit.openafs.org/8084
+Patch11: openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch
+
%global AkmodsBuildRequires %{_bindir}/kmodtool, pam-devel, ncurses-devel, flex, byacc, bison, automake
BuildRequires: %{AkmodsBuildRequires}
@@ -61,8 +97,18 @@
# apply patches and do other stuff here
pushd %{kmod_name}-%{version}
+# Kernel 3.5 patches
%patch0 -p1
%patch1 -p1
+# Kernel 3.6 patches
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
./regen.sh
popd
@@ -101,6 +147,9 @@
%changelog
+* Wed Sep 19 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-3
+- Add upstream patches for kernel 3.6
+
* Wed Aug 01 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-2
- Add upstream patches for kernel 3.5
12 years, 2 months
rpms/openafs-kmod/devel openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch, NONE, 1.1 openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch, NONE, 1.1 openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch, NONE, 1.1 openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch, NONE, 1.1 openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch, NONE, 1.1 openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch, NONE, 1.1 openafs-1
by Ken Dreyer
Author: ktdreyer
Update of /cvs/free/rpms/openafs-kmod/devel
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv29881
Modified Files:
openafs-kmod.spec
Added Files:
openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch
openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch
openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch
openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch
openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch
openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch
openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch
openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch
Log Message:
* Wed Sep 19 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-3
- Add upstream patches for kernel 3.6
openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch:
afs_bypasscache.c | 64 ++++++++++++++++++++----------------------------------
1 file changed, 24 insertions(+), 40 deletions(-)
--- NEW FILE openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch ---
>From a9b3e53dcb693182b51e7f5b43586e3e2dc29b8a Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 20:32:08 -0400
Subject: [PATCH 1/8] Linux: bypass: consolidate copy_page macros into a
single function
The copy_page(s) macros are very similar; combine them into a
single function that can be used for all cases.
This will make it easier to add some pre-processor logic around
the kmap_atomic calls to adapt to Linux API changes.
Reviewed-on: http://gerrit.openafs.org/7980
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 0a8256a26fafb490b454f2a857b0c15d859572c5)
Change-Id: I6835a024428b26a8cd8d073f6304d0d0b3042b24
---
src/afs/afs_bypasscache.c | 63 ++++++++++++++++++-----------------------------
1 file changed, 24 insertions(+), 39 deletions(-)
diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c
index e447024..b350233 100644
--- a/src/afs/afs_bypasscache.c
+++ b/src/afs/afs_bypasscache.c
@@ -270,49 +270,12 @@ done:
#ifdef UKERNEL
typedef void * bypass_page_t;
-#define copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- int dolen = auio->uio_iov[curiov].iov_len - pageoff; \
- memcpy(((char *)pp) + pageoff, \
- ((char *)rxiov[iovno].iov_base) + iovoff, dolen); \
- auio->uio_resid -= dolen; \
- } while(0)
-
-#define copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- int dolen = rxiov[iovno].iov_len - iovoff; \
- memcpy(((char *)pp) + pageoff, \
- ((char *)rxiov[iovno].iov_base) + iovoff, dolen); \
- auio->uio_resid -= dolen; \
- } while(0)
-
#define unlock_and_release_pages(auio)
#define release_full_page(pp, pageoff)
#else
typedef struct page * bypass_page_t;
-#define copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- char *address; \
- int dolen = auio->uio_iov[curiov].iov_len - pageoff; \
- address = kmap_atomic(pp, KM_USER0); \
- memcpy(address + pageoff, \
- (char *)(rxiov[iovno].iov_base) + iovoff, dolen); \
- kunmap_atomic(address, KM_USER0); \
- } while(0)
-
-#define copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curiov) \
- do { \
- char *address; \
- int dolen = rxiov[iovno].iov_len - iovoff; \
- address = kmap_atomic(pp, KM_USER0); \
- memcpy(address + pageoff, \
- (char *)(rxiov[iovno].iov_base) + iovoff, dolen); \
- kunmap_atomic(address, KM_USER0); \
- } while(0)
-
-
#define unlock_and_release_pages(auio) \
do { \
struct iovec *ciov; \
@@ -347,8 +310,30 @@ typedef struct page * bypass_page_t;
afs_warn("afs_NoCacheFetchProc: page not locked!\n"); \
put_page(pp); /* decrement refcount */ \
} while(0)
+#endif
+
+static void
+afs_bypass_copy_page(bypass_page_t pp, int pageoff, struct iovec *rxiov,
+ int iovno, int iovoff, struct uio *auio, int curiov, int partial)
+{
+ char *address;
+ int dolen;
+
+ if (partial)
+ dolen = rxiov[iovno].iov_len - iovoff;
+ else
+ dolen = auio->uio_iov[curiov].iov_len - pageoff;
+#if !defined(UKERNEL)
+ address = kmap_atomic(pp, KM_USER0);
+#else
+ address = pp;
#endif
+ memcpy(address + pageoff, (char *)(rxiov[iovno].iov_base) + iovoff, dolen);
+#if !defined(UKERNEL)
+ kunmap_atomic(address, KM_USER0);
+#endif
+}
/* no-cache prefetch routine */
static afs_int32
@@ -447,7 +432,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
if (pageoff + (rxiov[iovno].iov_len - iovoff) <= auio->uio_iov[curpage].iov_len) {
/* Copy entire (or rest of) current iovec into current page */
if (pp)
- copy_pages(pp, pageoff, rxiov, iovno, iovoff, auio, curpage);
+ afs_bypass_copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage, 0);
length -= (rxiov[iovno].iov_len - iovoff);
pageoff += rxiov[iovno].iov_len - iovoff;
iovno++;
@@ -455,7 +440,7 @@ afs_NoCacheFetchProc(struct rx_call *acall,
} else {
/* Copy only what's needed to fill current page */
if (pp)
- copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage);
+ afs_bypass_copy_page(pp, pageoff, rxiov, iovno, iovoff, auio, curpage, 1);
length -= (auio->uio_iov[curpage].iov_len - pageoff);
iovoff += auio->uio_iov[curpage].iov_len - pageoff;
pageoff = auio->uio_iov[curpage].iov_len;
--
1.7.11.4
openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch:
acinclude.m4 | 1 +
src/afs/afs_bypasscache.c | 8 ++++++++
src/cf/linux-test4.m4 | 13 ++++++++++++-
3 files changed, 21 insertions(+), 1 deletion(-)
--- NEW FILE openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch ---
>From 2e1c365052d43813ab2c7f5a4d4268c3b03315f0 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 16:34:42 -0400
Subject: [PATCH 2/8] Linux 3.6: kmap_atomic API change
kmap_atomic no longer requires a KM_TYPE argument. Test for this
and adjust the affected code.
Reviewed-on: http://gerrit.openafs.org/7981
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 049c485b4a39ba510035788b4959d839ef668c55)
Change-Id: Iac8be7901da4b277864b1b6cc987cf5087992789
---
acinclude.m4 | 1 +
src/afs/afs_bypasscache.c | 8 ++++++++
src/cf/linux-test4.m4 | 12 ++++++++++++
3 files changed, 21 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index 25484cf..20fd15e 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -959,6 +959,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_IOP_MKDIR_TAKES_UMODE_T
LINUX_IOP_CREATE_TAKES_UMODE_T
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
+ LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/afs_bypasscache.c b/src/afs/afs_bypasscache.c
index b350233..1138f89 100644
--- a/src/afs/afs_bypasscache.c
+++ b/src/afs/afs_bypasscache.c
@@ -325,13 +325,21 @@ afs_bypass_copy_page(bypass_page_t pp, int pageoff, struct iovec *rxiov,
dolen = auio->uio_iov[curiov].iov_len - pageoff;
#if !defined(UKERNEL)
+# if defined(KMAP_ATOMIC_TAKES_NO_KM_TYPE)
+ address = kmap_atomic(pp);
+# else
address = kmap_atomic(pp, KM_USER0);
+# endif
#else
address = pp;
#endif
memcpy(address + pageoff, (char *)(rxiov[iovno].iov_base) + iovoff, dolen);
#if !defined(UKERNEL)
+# if defined(KMAP_ATOMIC_TAKES_NO_KM_TYPE)
+ kunmap_atomic(address);
+# else
kunmap_atomic(address, KM_USER0);
+# endif
#endif
}
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index f13e97d..7db805f 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -675,3 +675,15 @@ AC_DEFUN([LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES], [
[define if encode_fh export op takes inode arguments],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE], [
+ AC_CHECK_LINUX_BUILD([whether kmap_atomic takes no km_type argument],
+ [ac_cv_linux_kma_atomic_takes_no_km_type],
+ [#include <linux/highmem.h>],
+ [struct page *p = NULL;
+ kmap_atomic(p);],
+ [KMAP_ATOMIC_TAKES_NO_KM_TYPE],
+ [define if kmap_atomic takes no km_type argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_compat.h | 16 ++++++++++++++++
src/afs/LINUX/osi_file.c | 4 ++--
src/cf/linux-test4.m4 | 13 ++++++++++++-
4 files changed, 31 insertions(+), 3 deletions(-)
--- NEW FILE openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch ---
>From a03c03800be47c35a0a95bd88bc1e79fca81460f Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 21:36:15 -0400
Subject: [PATCH 3/8] Linux 3.6: dentry_open API change
dentry_open now takes a path argument that combines the dentry and
the vfsmount pointers.
Add a configure test and a new compat inline function to keep things
cleaner in the main source file.
Reviewed-on: http://gerrit.openafs.org/7982
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 8766a65e97eb90cb6c97ccd35181c441ece14f8a)
Change-Id: I2c0f59ad9aa6e544a2a613e902933d463f22a5b6
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_compat.h | 16 ++++++++++++++++
src/afs/LINUX/osi_file.c | 4 ++--
src/cf/linux-test4.m4 | 12 ++++++++++++
4 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 20fd15e..d99c755 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -960,6 +960,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_IOP_CREATE_TAKES_UMODE_T
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
+ LINUX_DENTRY_OPEN_TAKES_PATH
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h
index 4c7c261..84fcaa5 100644
--- a/src/afs/LINUX/osi_compat.h
+++ b/src/afs/LINUX/osi_compat.h
@@ -445,4 +445,20 @@ afs_get_dentry_ref(struct path *path, struct vfsmount **mnt, struct dentry **dpp
#endif
}
+#if defined(STRUCT_TASK_STRUCT_HAS_CRED)
+static inline struct file *
+afs_dentry_open(struct dentry *dp, struct vfsmount *mnt, int flags, const struct cred *creds) {
+#if defined(DENTRY_OPEN_TAKES_PATH)
+ struct path path;
+ struct file *filp;
+ path.mnt = mnt;
+ path.dentry = dp;
+ filp = dentry_open(&path, flags, creds);
+ return filp;
+#else
+ return dentry_open(dp, mntget(mnt), flags, creds);
+#endif
+}
+#endif
+
#endif /* AFS_LINUX_OSI_COMPAT_H */
diff --git a/src/afs/LINUX/osi_file.c b/src/afs/LINUX/osi_file.c
index 3c20fd9..27806ab 100644
--- a/src/afs/LINUX/osi_file.c
+++ b/src/afs/LINUX/osi_file.c
@@ -56,9 +56,9 @@ afs_linux_raw_open(afs_dcache_id_t *ainode)
#if defined(STRUCT_TASK_STRUCT_HAS_CRED)
/* Use stashed credentials - prevent selinux/apparmor problems */
- filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, cache_creds);
+ filp = afs_dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, cache_creds);
if (IS_ERR(filp))
- filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, current_cred());
+ filp = afs_dentry_open(dp, mntget(afs_cacheMnt), O_RDWR, current_cred());
#else
filp = dentry_open(dp, mntget(afs_cacheMnt), O_RDWR);
#endif
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 7db805f..427c5e1 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -687,3 +687,15 @@ AC_DEFUN([LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE], [
[define if kmap_atomic takes no km_type argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_DENTRY_OPEN_TAKES_PATH], [
+ AC_CHECK_LINUX_BUILD([whether dentry_open takes a path argument],
+ [ac_cv_linux_dentry_open_takes_path],
+ [#include <linux/fs.h>],
+ [struct path p;
+ dentry_open(&p, 0, NULL);],
+ [DENTRY_OPEN_TAKES_PATH],
+ [define if dentry_open takes a path argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vcache.c | 12 ++++++++++++
src/afs/afs_daemons.c | 5 +++++
src/cf/linux-test4.m4 | 14 +++++++++++++-
4 files changed, 31 insertions(+), 1 deletion(-)
--- NEW FILE openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch ---
>From 1eaf7b62e12affca7e529b790597fad330da01ee Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Mon, 13 Aug 2012 21:55:25 -0400
Subject: [PATCH 4/8] Linux 3.6: d_alias and i_dentry are now hlists
The d_alias pointer is now the head of an hlist. This means the
iterator is a different macro and has no "reverse" version since
hlists have no direct pointer to the list tail.
inode->i_dentry gets the same treatment. Adjust where we use it.
Reviewed-on: http://gerrit.openafs.org/7983
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 6bea047fb404bde828c6358ae06f7941aa2bc959)
Change-Id: I7e7b87e5f5c240f3f0ff25fa723c857ab9d0108c
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vcache.c | 12 ++++++++++++
src/afs/afs_daemons.c | 5 +++++
src/cf/linux-test4.m4 | 13 +++++++++++++
4 files changed, 31 insertions(+)
diff --git a/acinclude.m4 b/acinclude.m4
index d99c755..d52d149 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -961,6 +961,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_EXPORT_OP_ENCODE_FH_TAKES_INODES
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
LINUX_DENTRY_OPEN_TAKES_PATH
+ LINUX_D_ALIAS_IS_HLIST
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vcache.c b/src/afs/LINUX/osi_vcache.c
index e82d78e..cd61c65 100644
--- a/src/afs/LINUX/osi_vcache.c
+++ b/src/afs/LINUX/osi_vcache.c
@@ -19,7 +19,11 @@ osi_TryEvictVCache(struct vcache *avc, int *slept, int defersleep) {
struct dentry *dentry;
struct inode *inode = AFSTOV(avc);
+#if defined(D_ALIAS_IS_HLIST)
+ struct hlist_node *cur, *head;
+#else
struct list_head *cur, *head;
+#endif
/* First, see if we can evict the inode from the dcache */
if (defersleep && avc != afs_globalVp && VREFCOUNT(avc) > 1 && avc->opens == 0) {
@@ -53,12 +57,20 @@ restart:
spin_unlock(&dcache_lock);
#else /* HAVE_DCACHE_LOCK */
spin_lock(&inode->i_lock);
+#if defined(D_ALIAS_IS_HLIST)
+ head = inode->i_dentry.first;
+#else
head = &inode->i_dentry;
+#endif
restart:
cur = head;
while ((cur = cur->next) != head) {
+#if defined(D_ALIAS_IS_HLIST)
+ dentry = hlist_entry(cur, struct dentry, d_alias);
+#else
dentry = list_entry(cur, struct dentry, d_alias);
+#endif
spin_lock(&dentry->d_lock);
if (d_unhashed(dentry)) {
diff --git a/src/afs/afs_daemons.c b/src/afs/afs_daemons.c
index 23655e3..f47be0e 100644
--- a/src/afs/afs_daemons.c
+++ b/src/afs/afs_daemons.c
@@ -396,8 +396,13 @@ afs_CheckRootVolume(void)
spin_lock(&dp->d_lock);
#endif
#endif
+#if defined(D_ALIAS_IS_HLIST)
+ hlist_del_init(&dp->d_alias);
+ hlist_add_head(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
+#else
list_del_init(&dp->d_alias);
list_add(&dp->d_alias, &(AFSTOV(vcp)->i_dentry));
+#endif
dp->d_inode = AFSTOV(vcp);
#if defined(AFS_LINUX24_ENV)
#if defined(AFS_LINUX26_ENV)
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 427c5e1..6b70059 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -699,3 +699,16 @@ AC_DEFUN([LINUX_DENTRY_OPEN_TAKES_PATH], [
[define if dentry_open takes a path argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_D_ALIAS_IS_HLIST], [
+ AC_CHECK_LINUX_BUILD([whether dentry->d_alias is an hlist],
+ [ac_cv_linux_d_alias_is_hlist],
+ [#include <linux/fs.h>],
+ [struct dentry *d = NULL;
+ struct hlist_node *hn = NULL;
+ d->d_alias = *hn;],
+ [D_ALIAS_IS_HLIST],
+ [define if dentry->d_alias is an hlist],
+ [])
+])
--
1.7.11.4
openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch:
osi_vnodeops.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch ---
>From 439897bfcf7dbf4dc4f6967b69ca399252a54e29 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 17:11:08 -0400
Subject: [PATCH 5/8] Linux: fix variable used to test for the iop create API
Use correct variable when testing for the create API to use.
This is just for looks - there is no effect since mkdir and create
were changed in the same kernel release.
Reviewed-on: http://gerrit.openafs.org/7984
Reviewed-by: Alistair Ferguson <alistair.ferguson(a)mac.com>
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit c633a92a1bc7881f18ee641082ff2efe7da1a8cb)
Change-Id: Ib23fe9a34bc07227614c149b0f16d3b0a067501b
---
src/afs/LINUX/osi_vnodeops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 4cda547..b3bf115 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1094,7 +1094,7 @@ struct dentry_operations afs_dentry_operations = {
* name is in kernel space at this point.
*/
static int
-#if defined(IOP_MKDIR_TAKES_UMODE_T)
+#if defined(IOP_CREATE_TAKES_UMODE_T)
afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
struct nameidata *nd)
#else
--
1.7.11.4
openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 9 +++++----
src/cf/linux-test4.m4 | 16 +++++++++++++++-
3 files changed, 21 insertions(+), 5 deletions(-)
--- NEW FILE openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch ---
>From 3e27f1e2e7302f0f87c03d5e174b1754379fb66e Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 17:28:50 -0400
Subject: [PATCH 6/8] Linux 3.6: create inode operation API change
The nameidata argument is dropped and a flag is added.
Reviewed-on: http://gerrit.openafs.org/7985
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 020e32779c103817ca89caa51259fb53bc3dde79)
Change-Id: Iae2a0301a1c4acb6835eb0bdca6ae22b143b2cda
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 9 +++++----
src/cf/linux-test4.m4 | 15 +++++++++++++++
3 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index d52d149..1c84354 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -962,6 +962,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_KMAP_ATOMIC_TAKES_NO_KM_TYPE
LINUX_DENTRY_OPEN_TAKES_PATH
LINUX_D_ALIAS_IS_HLIST
+ LINUX_IOP_I_CREATE_TAKES_BOOL
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index b3bf115..8c8045b 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1094,17 +1094,18 @@ struct dentry_operations afs_dentry_operations = {
* name is in kernel space at this point.
*/
static int
-#if defined(IOP_CREATE_TAKES_UMODE_T)
+#if defined(IOP_CREATE_TAKES_BOOL)
+afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
+ bool excl)
+#elif defined(IOP_CREATE_TAKES_UMODE_T)
afs_linux_create(struct inode *dip, struct dentry *dp, umode_t mode,
struct nameidata *nd)
-#else
-#ifdef IOP_CREATE_TAKES_NAMEIDATA
+#elif defined(IOP_CREATE_TAKES_NAMEIDATA)
afs_linux_create(struct inode *dip, struct dentry *dp, int mode,
struct nameidata *nd)
#else
afs_linux_create(struct inode *dip, struct dentry *dp, int mode)
#endif
-#endif
{
struct vattr vattr;
cred_t *credp = crref();
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 6b70059..dc30770 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -712,3 +712,18 @@ AC_DEFUN([LINUX_D_ALIAS_IS_HLIST], [
[define if dentry->d_alias is an hlist],
[])
])
+
+
+AC_DEFUN([LINUX_IOP_I_CREATE_TAKES_BOOL], [
+ AC_CHECK_LINUX_BUILD([whether inode_operations.create takes a bool],
+ [ac_cv_linux_func_i_create_takes_bool],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct inode _inode = {};
+ struct dentry _dentry;
+ bool b = true;
+ (void)_inode.i_op->create(&_inode, &_dentry, 0, b);],
+ [IOP_CREATE_TAKES_BOOL],
+ [define if your iops.create takes a bool argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 8 +++++++-
src/cf/linux-test4.m4 | 15 ++++++++++++++-
3 files changed, 22 insertions(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch ---
>From 57f3a2bbe873dae41bc57130a5985e8c334a5303 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 18:08:51 -0400
Subject: [PATCH 7/8] Linux 3.6: revalidate dentry op API change
The nameidata argument is dropped, replaced by an unsigned flags
value. The configure test is very specific; kernels with the
older API with a signed int flags value should fall through.
Reviewed-on: http://gerrit.openafs.org/7986
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit 7413cd09a53f89882a46fd100bf6c501348f2188)
Change-Id: Ie68d70dcf414d24e7e980c8a8f35b83550d2da7c
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 8 +++++++-
src/cf/linux-test4.m4 | 14 ++++++++++++++
3 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 1c84354..8bb5bf7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -963,6 +963,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_DENTRY_OPEN_TAKES_PATH
LINUX_D_ALIAS_IS_HLIST
LINUX_IOP_I_CREATE_TAKES_BOOL
+ LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 8c8045b..49f8b96 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -906,7 +906,9 @@ afs_linux_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *sta
* later on, we shouldn't have to do it until later. Perhaps in the future..
*/
static int
-#ifdef DOP_REVALIDATE_TAKES_NAMEIDATA
+#if defined(DOP_REVALIDATE_TAKES_UNSIGNED)
+afs_linux_dentry_revalidate(struct dentry *dp, unsigned int flags)
+#elif defined(DOP_REVALIDATE_TAKES_NAMEIDATA)
afs_linux_dentry_revalidate(struct dentry *dp, struct nameidata *nd)
#else
afs_linux_dentry_revalidate(struct dentry *dp, int flags)
@@ -921,7 +923,11 @@ afs_linux_dentry_revalidate(struct dentry *dp, int flags)
#ifdef LOOKUP_RCU
/* We don't support RCU path walking */
+# if defined(DOP_REVALIDATE_TAKES_UNSIGNED)
+ if (flags & LOOKUP_RCU)
+# else
if (nd->flags & LOOKUP_RCU)
+# endif
return -ECHILD;
#endif
AFS_GLOCK();
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index dc30770..4a6ec02 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -727,3 +727,17 @@ AC_DEFUN([LINUX_IOP_I_CREATE_TAKES_BOOL], [
[define if your iops.create takes a bool argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED], [
+ AC_CHECK_LINUX_BUILD([whether dentry_operations.d_revalidate takes an unsigned int],
+ [ac_cv_linux_func_d_revalidate_takes_unsigned],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct dentry_operations dops;
+ int reval(struct dentry *d, unsigned int i) { return 0; };
+ dops.d_revalidate = reval;],
+ [DOP_REVALIDATE_TAKES_UNSIGNED],
+ [define if your dops.d_revalidate takes an unsigned int argument],
+ [-Werror])
+])
--
1.7.11.4
openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch:
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 5 ++++-
src/cf/linux-test4.m4 | 15 ++++++++++++++-
3 files changed, 19 insertions(+), 2 deletions(-)
--- NEW FILE openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch ---
>From a131b915fec5ca7679c092af2031ac20e9e78658 Mon Sep 17 00:00:00 2001
From: Marc Dionne <marc.c.dionne(a)gmail.com>
Date: Tue, 14 Aug 2012 18:26:24 -0400
Subject: [PATCH 8/8] Linux 3.6: lookup inode operation API change
The nameidata argument is replaced with an unsigned int flags
argument.
Reviewed-on: http://gerrit.openafs.org/7987
Tested-by: BuildBot <buildbot(a)rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow(a)dementix.org>
(cherry picked from commit ec48dca871ef98adb69792a34047c6be5818f1b2)
Change-Id: Ic8be26141ede6e1c4062872c79a846efb0045bda
---
acinclude.m4 | 1 +
src/afs/LINUX/osi_vnodeops.c | 5 ++++-
src/cf/linux-test4.m4 | 14 ++++++++++++++
3 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/acinclude.m4 b/acinclude.m4
index 8bb5bf7..4b49449 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -964,6 +964,7 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
LINUX_D_ALIAS_IS_HLIST
LINUX_IOP_I_CREATE_TAKES_BOOL
LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED
+ LINUX_IOP_LOOKUP_TAKES_UNSIGNED
dnl If we are guaranteed that keyrings will work - that is
dnl a) The kernel has keyrings enabled
diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c
index 49f8b96..c376bd1 100644
--- a/src/afs/LINUX/osi_vnodeops.c
+++ b/src/afs/LINUX/osi_vnodeops.c
@@ -1147,7 +1147,10 @@ afs_linux_create(struct inode *dip, struct dentry *dp, int mode)
/* afs_linux_lookup */
static struct dentry *
-#ifdef IOP_LOOKUP_TAKES_NAMEIDATA
+#if defined(IOP_LOOKUP_TAKES_UNSIGNED)
+afs_linux_lookup(struct inode *dip, struct dentry *dp,
+ unsigned flags)
+#elif defined(IOP_LOOKUP_TAKES_NAMEIDATA)
afs_linux_lookup(struct inode *dip, struct dentry *dp,
struct nameidata *nd)
#else
diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4
index 4a6ec02..fc0149f 100644
--- a/src/cf/linux-test4.m4
+++ b/src/cf/linux-test4.m4
@@ -741,3 +741,17 @@ AC_DEFUN([LINUX_DOP_D_REVALIDATE_TAKES_UNSIGNED], [
[define if your dops.d_revalidate takes an unsigned int argument],
[-Werror])
])
+
+
+AC_DEFUN([LINUX_IOP_LOOKUP_TAKES_UNSIGNED], [
+ AC_CHECK_LINUX_BUILD([whether inode operation lookup takes an unsigned int],
+ [ac_cv_linux_func_lookup_takes_unsigned],
+ [#include <linux/fs.h>
+ #include <linux/namei.h>],
+ [struct inode_operations iops;
+ struct dentry *look(struct inode *i, struct dentry *d, unsigned int j) { return NULL; };
+ iops.lookup = look;],
+ [IOP_LOOKUP_TAKES_UNSIGNED],
+ [define if your iops.lookup takes an unsigned int argument],
+ [-Werror])
+])
--
1.7.11.4
Index: openafs-kmod.spec
===================================================================
RCS file: /cvs/free/rpms/openafs-kmod/devel/openafs-kmod.spec,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- openafs-kmod.spec 2 Aug 2012 07:41:24 -0000 1.21
+++ openafs-kmod.spec 20 Sep 2012 02:02:20 -0000 1.22
@@ -21,7 +21,7 @@
Name: %{kmod_name}-kmod
Version: 1.6.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Kernel module(s)
Group: System Environment/Kernel
@@ -31,10 +31,46 @@
Source0: http://dl.openafs.org/dl/%{version}/%{kmod_name}-%{version}-src.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-# Upstream patches to build on newer kernels
+# Upstream patches to build on kernel 3.5
Patch0: openafs-1.6.1-clear_inode.patch
Patch1: openafs-1.6.1-encode_fh.patch
+# Upstream patches to build on kernel 3.6. In-progress in Gerrit.
+# Steps to create these patches:
+# 1) git clone from openafs.org
+# 2) git checkout openafs-stable-1_6_1
+# 3) git checkout -b fedora
+# 4) Get the two Patches above (patch0 and patch1)
+# git cherry-pick -x cc63cbbc138f60d6b5964fa859dcd778717b24c2
+# git cherry-pick -x 407e7c90a97143d436ad3a6af6bbfa431c849191
+# 5) Take note of the commit hash here.
+# 6) Cherry-pick the appropriate patches from Gerrit onto this "fedora" branch
+# When cherry-picking "d_alias and i_dentry are now hlists"
+# (http://gerrit.openafs.org/8080), avoid the post-1.6.1 canonical_dentry()
+# function from http://gerrit.openafs.org/7951 .
+# 7) Create the patch files
+# git format-patch <hash in step 5>
+# If you forgot the hash from step 5, look with "git log --oneline"
+# 8) Rename patche files according to Fedora package guidelines:
+# for i in $(ls *.patch); do mv $i openafs-1.6.1-$i; done
+
+# http://gerrit.openafs.org/8077
+Patch4: openafs-1.6.1-0001-Linux-bypass-consolidate-copy_page-macros-into-a-sin.patch
+# http://gerrit.openafs.org/8078
+Patch5: openafs-1.6.1-0002-Linux-3.6-kmap_atomic-API-change.patch
+# http://gerrit.openafs.org/8079
+Patch6: openafs-1.6.1-0003-Linux-3.6-dentry_open-API-change.patch
+# http://gerrit.openafs.org/8080
+Patch7: openafs-1.6.1-0004-Linux-3.6-d_alias-and-i_dentry-are-now-hlists.patch
+# http://gerrit.openafs.org/8081
+Patch8: openafs-1.6.1-0005-Linux-fix-variable-used-to-test-for-the-iop-create-A.patch
+# http://gerrit.openafs.org/8082
+Patch9: openafs-1.6.1-0006-Linux-3.6-create-inode-operation-API-change.patch
+# http://gerrit.openafs.org/8083
+Patch10: openafs-1.6.1-0007-Linux-3.6-revalidate-dentry-op-API-change.patch
+# http://gerrit.openafs.org/8084
+Patch11: openafs-1.6.1-0008-Linux-3.6-lookup-inode-operation-API-change.patch
+
%global AkmodsBuildRequires %{_bindir}/kmodtool, pam-devel, ncurses-devel, flex, byacc, bison, automake
BuildRequires: %{AkmodsBuildRequires}
@@ -61,8 +97,18 @@
# apply patches and do other stuff here
pushd %{kmod_name}-%{version}
+# Kernel 3.5 patches
%patch0 -p1
%patch1 -p1
+# Kernel 3.6 patches
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
./regen.sh
popd
@@ -101,8 +147,12 @@
%changelog
+* Wed Sep 19 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-3
+- Add upstream patches for kernel 3.6
+
* Wed Aug 01 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-2
- Add upstream patches for kernel 3.5
+
* Wed Apr 04 2012 Ken Dreyer <ktdreyer(a)ktdreyer.com> - 1.6.1-1
- Update to OpenAFS 1.6.1 final
12 years, 2 months
rpms/wl-kmod/F-17 wl-kmod.spec,1.85,1.86
by Nicolas Chauvet
Author: kwizart
Update of /cvs/nonfree/rpms/wl-kmod/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv25535
Modified Files:
wl-kmod.spec
Log Message:
* Mon Sep 17 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 5.100.82.112-3.13
- Rebuilt for updated kernel
Index: wl-kmod.spec
===================================================================
RCS file: /cvs/nonfree/rpms/wl-kmod/F-17/wl-kmod.spec,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- wl-kmod.spec 31 Aug 2012 06:42:26 -0000 1.85
+++ wl-kmod.spec 17 Sep 2012 21:49:10 -0000 1.86
@@ -7,7 +7,7 @@
Name: wl-kmod
Version: 5.100.82.112
-Release: 3%{?dist}.12
+Release: 3%{?dist}.13
Summary: Kernel module for Broadcom wireless devices
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -85,6 +85,9 @@
rm -rf $RPM_BUILD_ROOT
%changelog
+* Mon Sep 17 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 5.100.82.112-3.13
+- Rebuilt for updated kernel
+
* Fri Aug 31 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 5.100.82.112-3.12
- Rebuilt for updated kernel
12 years, 2 months
rpms/nvidia-kmod/F-17 nvidia-kmod.spec,1.129,1.130
by Nicolas Chauvet
Author: kwizart
Update of /cvs/nonfree/rpms/nvidia-kmod/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv25405
Modified Files:
nvidia-kmod.spec
Log Message:
* Mon Sep 17 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1:304.37-1.4
- Rebuilt for updated kernel
Index: nvidia-kmod.spec
===================================================================
RCS file: /cvs/nonfree/rpms/nvidia-kmod/F-17/nvidia-kmod.spec,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -r1.129 -r1.130
--- nvidia-kmod.spec 31 Aug 2012 06:42:11 -0000 1.129
+++ nvidia-kmod.spec 17 Sep 2012 21:49:00 -0000 1.130
@@ -9,7 +9,7 @@
Epoch: 1
Version: 304.37
# Taken over by kmodtool
-Release: 1%{?dist}.3
+Release: 1%{?dist}.4
Summary: NVIDIA display driver kernel module
Group: System Environment/Kernel
License: Redistributable, no modification permitted
@@ -77,6 +77,9 @@
%changelog
+* Mon Sep 17 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1:304.37-1.4
+- Rebuilt for updated kernel
+
* Fri Aug 31 2012 Nicolas Chauvet <kwizart(a)gmail.com> - 1:304.37-1.3
- Rebuilt for updated kernel
12 years, 2 months