[jitsi-dev] JITSI_COMMON_DIR - rpm


#1

Separates a package named jitsi-common...
  https://github.com/jitsi/jitsi/commit/4064c28#diff-2

  Fedora release 20

  - working:
  $ rpm -q jitsi
  jitsi-2.5-5258.x86_64

  - not working:
  $ rpm -q jitsi
  jitsi-2.5-5259.x86_64
  ...
  jitsi-2.5-5262.x86_64

  $ jitsi
  Picked up _JAVA_OPTIONS: -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
  Exception in thread "main" java.lang.NoClassDefFoundError: net/java/sip/communicator/util/ScStdOut
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
    at java.lang.Class.getMethod0(Class.java:2813)
    at java.lang.Class.getMethod(Class.java:1663)
    at sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
    at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
  Caused by: java.lang.ClassNotFoundException: net.java.sip.communicator.util.ScStdOut
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 6 more
      $ diff jitsi-2.5-5259.x86_64/usr/bin/jitsi jitsi-2.5-5262.x86_64/usr/bin/jitsi
  $ diff jitsi-2.5-5258.x86_64/usr/bin/jitsi jitsi-2.5-5262.x86_64/usr/bin/jitsi
  30a31
  > JITSI_COMMON_DIR=/usr/share/jitsi-common
  32c33
  < CLASSPATH=$LIBPATH/felix.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar:$LIBPATH

···

---
  > CLASSPATH=$LIBPATH/felix.jar:$SCDIR/sc-bundles/sc-launcher.jar:$JITSI_COMMON_DIR/util.jar:$LIBPATH

  # file /usr/share/jitsi-common
  /usr/share/jitsi-common: cannot open `/usr/share/jitsi-common' (No such file or directory)

poma


#2

Hi,

Thanks for the report I will take a look this days, when time permits.
This change was introduced for debian source package, strange it
reflected the rpm one.

Thanks
damencho

···

On Mon, Jul 28, 2014 at 2:50 PM, poma <pomidorabelisima@gmail.com> wrote:

Separates a package named jitsi-common...
https://github.com/jitsi/jitsi/commit/4064c28#diff-2

Fedora release 20

- working:
$ rpm -q jitsi
jitsi-2.5-5258.x86_64

- not working:
$ rpm -q jitsi
jitsi-2.5-5259.x86_64
...
jitsi-2.5-5262.x86_64

$ jitsi
Picked up _JAVA_OPTIONS:
-Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
Exception in thread "main" java.lang.NoClassDefFoundError:
net/java/sip/communicator/util/ScStdOut
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2570)
        at java.lang.Class.getMethod0(Class.java:2813)
        at java.lang.Class.getMethod(Class.java:1663)
        at
sun.launcher.LauncherHelper.getMainMethod(LauncherHelper.java:494)
        at
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:486)
Caused by: java.lang.ClassNotFoundException:
net.java.sip.communicator.util.ScStdOut
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        ... 6 more
    $ diff jitsi-2.5-5259.x86_64/usr/bin/jitsi
jitsi-2.5-5262.x86_64/usr/bin/jitsi
$ diff jitsi-2.5-5258.x86_64/usr/bin/jitsi
jitsi-2.5-5262.x86_64/usr/bin/jitsi
30a31
> JITSI_COMMON_DIR=/usr/share/jitsi-common
32c33
<
CLASSPATH=$LIBPATH/felix.jar:$SCDIR/sc-bundles/sc-launcher.jar:$SCDIR/sc-bundles/util.jar:$LIBPATH
---
>
CLASSPATH=$LIBPATH/felix.jar:$SCDIR/sc-bundles/sc-launcher.jar:$JITSI_COMMON_DIR/util.jar:$LIBPATH

# file /usr/share/jitsi-common
/usr/share/jitsi-common: cannot open `/usr/share/jitsi-common' (No such
file or directory)

poma

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#3

Here it is.
Repair jitsi.spec in regard to jitsi.sh.tmpl commit 4064c28,
and build-jitsi-rpm.sh for the build on Fedora.

···

On 28.07.2014 16:06, Damian Minkov wrote:

Hi,

Thanks for the report I will take a look this days, when time permits.
This change was introduced for debian source package, strange it
reflected the rpm one.

Thanks
damencho

---
resources/install/rpm/SPECS/build-jitsi-rpm.sh | 27 ++++++++++++++------------
resources/install/rpm/SPECS/jitsi.spec | 13 +++++++++----
2 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/resources/install/rpm/SPECS/build-jitsi-rpm.sh b/resources/install/rpm/SPECS/build-jitsi-rpm.sh
index 932df3d..388ed96 100755
--- a/resources/install/rpm/SPECS/build-jitsi-rpm.sh
+++ b/resources/install/rpm/SPECS/build-jitsi-rpm.sh
@@ -1,6 +1,9 @@
#!/bin/bash -x

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
+SPECS_DIR="$(dirname $SCRIPT_DIR)/SPECS"
+SOURCES_DIR="$(dirname $SCRIPT_DIR)/SOURCES"
+RPMS_DIR="$(dirname $SCRIPT_DIR)/RPMS"
#exec > "${0%.*}.log" 2>&1

#exec -x
@@ -26,7 +29,7 @@ clean_oldies() {
     ls -t $pattern | tail -$tailCount | xargs rm -f
}

-cd $SCRIPT_DIR/SOURCES
+cd $SOURCES_DIR

[[ ! -d jitsi ]] && git clone https://github.com/jitsi/jitsi
cd jitsi
@@ -35,7 +38,7 @@ git pull --rebase
git stash pop

echo "Creating zip file"
-cd $SCRIPT_DIR/SOURCES
+cd $SOURCES_DIR
rm -f jitsi-src*.zip
zipFileName=jitsi-src-${version}-${buildNumber/./-}.zip
zip -rq $zipFileName jitsi -x 'jitsi/.git/* jitsi/.gitignore'
@@ -45,24 +48,24 @@ sed -i \
-e "s@Release:\( *\).*@Release:\1$buildNumber@" \
-e "s@Source0:\( *\).*@Source0:\1http://download.jitsi.org/jitsi/nightly/src/$zipFileName@" \
-e "s@ant -Dlabel=.* rebuild@ant -Dlabel=$buildNumber rebuild@" \
-$SCRIPT_DIR/SPECS/jitsi.spec
+$SPECS_DIR/jitsi.spec

-rm -f $SCRIPT_DIR/RPMS/i686/jitsi*.rpm
+rm -f $RPMS_DIR/i686/jitsi*.rpm
echo "=============[ Building i686 RPM package ]============="
# Note! rpmbuild --target is known not to work correctly, so we use setarch
-setarch i686 rpmbuild -bb $SCRIPT_DIR/SPECS/jitsi.spec
+setarch i686 rpmbuild -bb $SPECS_DIR/jitsi.spec
packagename32=jitsi-${version}-${buildNumber}.i686.rpm

-rm -f $SCRIPT_DIR/RPMS/x86_64/jitsi*.rpm
+rm -f $RPMS_DIR/x86_64/jitsi*.rpm
echo "=============[ Building x86_64 RPM package ]============="
# Note! rpmbuild --target is known not to work correctly, so we use setarch
-setarch x86_64 rpmbuild -bb $SCRIPT_DIR/SPECS/jitsi.spec
+setarch x86_64 rpmbuild -bb $SPECS_DIR/jitsi.spec
packagename64=jitsi-${version}-${buildNumber}.x86_64.rpm

-mkdir -p $SCRIPT_DIR/RPMS/common
+mkdir -p $RPMS_DIR/common

-cp $SCRIPT_DIR/RPMS/i686/$packagename32 $SCRIPT_DIR/RPMS/common/
-cp $SCRIPT_DIR/RPMS/x86_64/$packagename64 $SCRIPT_DIR/RPMS/common/
-clean_oldies "$SCRIPT_DIR/RPMS/common/jitsi*.rpm" 20
+cp $RPMS_DIR/i686/$packagename32 $RPMS_DIR/common/
+cp $RPMS_DIR/x86_64/$packagename64 $RPMS_DIR/common/
+clean_oldies "$RPMS_DIR/common/jitsi*.rpm" 20

-createrepo --database --deltas $SCRIPT_DIR/RPMS/common/
+createrepo --database --deltas $RPMS_DIR/common/
diff --git a/resources/install/rpm/SPECS/jitsi.spec b/resources/install/rpm/SPECS/jitsi.spec
index a106e84..752105f 100644
--- a/resources/install/rpm/SPECS/jitsi.spec
+++ b/resources/install/rpm/SPECS/jitsi.spec
@@ -1,13 +1,13 @@
Name: jitsi
-Version: 2.3
-Release: 4831
+Version: 2.5
+Release: 5264
Summary: Jitsi - Open Source Video Calls and Chat
Packager: Pavel Tankov <ptankov@bluejimp.com>

Group: Applications/Internet
License: GNU Lesser General Public License
URL: https://www.jitsi.org
-Source0: http://download.jitsi.org/jitsi/nightly/src/jitsi-src-2.3-4831.zip
+Source0: http://download.jitsi.org/jitsi/nightly/src/%{name}-src-%{version}-%{release}.zip
BuildRoot: %{_topdir}/buildroot

AutoReqProv: no
@@ -28,7 +28,7 @@ Yahoo! and many other useful features.
%setup -q -n jitsi

%build
-ant -Dlabel=4831 rebuild
+ant -Dlabel=%{release} rebuild

%install
[ "$(readlink -f "$RPM_BUILD_ROOT")" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -56,6 +56,7 @@ gzip $RPM_BUILD_ROOT/usr/share/man/man1/jitsi.1
# copy the launcher script
cp resources/install/debian/jitsi.sh.tmpl $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/_PACKAGE_NAME_/jitsi/" $RPM_BUILD_ROOT/usr/bin/jitsi
+sed -i -e "s/-common/\/sc-bundles/" $RPM_BUILD_ROOT/usr/bin/jitsi

# no more libaoss
#sed -i -e "s@export LD_PRELOAD=/usr/lib/libaoss.so@export LD_PRELOAD=/usr/lib/libaoss.so.0@" $RPM_BUILD_ROOT/usr/bin/sip-communicator
@@ -125,6 +126,10 @@ sed -i -e "s/\/launchutils.jar//" $RPM_BUILD_ROOT/usr/bin/jitsi
%doc %{_mandir}/man*/*

%changelog
+* Tue Jul 29 2014 poma <poma@gmail.com>
+- Repair jitsi.spec in regard to jitsi.sh.tmpl commit 4064c28,
+ and build-jitsi-rpm.sh for the build on Fedora.
+
* Fri Sep 13 2013 Pavel Tankov <ptankov@bluejimp.com>
- Now depends on java >= 0:1.6.
- Changed the info to conform with the description on the website.
--
1.9.3

poma


#4

Hi,

Could you please test build 5268. Is it ok?

Regards
damencho

···

On Tue, Jul 29, 2014 at 7:12 PM, poma <pomidorabelisima@gmail.com> wrote:

On 28.07.2014 16:06, Damian Minkov wrote:

Hi,

Thanks for the report I will take a look this days, when time permits.
This change was introduced for debian source package, strange it
reflected the rpm one.

Thanks
damencho

Here it is.
Repair jitsi.spec in regard to jitsi.sh.tmpl commit 4064c28,
and build-jitsi-rpm.sh for the build on Fedora.

---
resources/install/rpm/SPECS/build-jitsi-rpm.sh | 27 ++++++++++++++------------
resources/install/rpm/SPECS/jitsi.spec | 13 +++++++++----
2 files changed, 24 insertions(+), 16 deletions(-)

diff --git a/resources/install/rpm/SPECS/build-jitsi-rpm.sh b/resources/install/rpm/SPECS/build-jitsi-rpm.sh
index 932df3d..388ed96 100755
--- a/resources/install/rpm/SPECS/build-jitsi-rpm.sh
+++ b/resources/install/rpm/SPECS/build-jitsi-rpm.sh
@@ -1,6 +1,9 @@
#!/bin/bash -x

SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
+SPECS_DIR="$(dirname $SCRIPT_DIR)/SPECS"
+SOURCES_DIR="$(dirname $SCRIPT_DIR)/SOURCES"
+RPMS_DIR="$(dirname $SCRIPT_DIR)/RPMS"
#exec > "${0%.*}.log" 2>&1

#exec -x
@@ -26,7 +29,7 @@ clean_oldies() {
     ls -t $pattern | tail -$tailCount | xargs rm -f
}

-cd $SCRIPT_DIR/SOURCES
+cd $SOURCES_DIR

[[ ! -d jitsi ]] && git clone https://github.com/jitsi/jitsi
cd jitsi
@@ -35,7 +38,7 @@ git pull --rebase
git stash pop

echo "Creating zip file"
-cd $SCRIPT_DIR/SOURCES
+cd $SOURCES_DIR
rm -f jitsi-src*.zip
zipFileName=jitsi-src-${version}-${buildNumber/./-}.zip
zip -rq $zipFileName jitsi -x 'jitsi/.git/* jitsi/.gitignore'
@@ -45,24 +48,24 @@ sed -i \
-e "s@Release:\( *\).*@Release:\1$buildNumber@" \
-e "s@Source0:\( *\).*@Source0:\1http://download.jitsi.org/jitsi/nightly/src/$zipFileName@" \
-e "s@ant -Dlabel=.* rebuild@ant -Dlabel=$buildNumber rebuild@" \
-$SCRIPT_DIR/SPECS/jitsi.spec
+$SPECS_DIR/jitsi.spec

-rm -f $SCRIPT_DIR/RPMS/i686/jitsi*.rpm
+rm -f $RPMS_DIR/i686/jitsi*.rpm
echo "=============[ Building i686 RPM package ]============="
# Note! rpmbuild --target is known not to work correctly, so we use setarch
-setarch i686 rpmbuild -bb $SCRIPT_DIR/SPECS/jitsi.spec
+setarch i686 rpmbuild -bb $SPECS_DIR/jitsi.spec
packagename32=jitsi-${version}-${buildNumber}.i686.rpm

-rm -f $SCRIPT_DIR/RPMS/x86_64/jitsi*.rpm
+rm -f $RPMS_DIR/x86_64/jitsi*.rpm
echo "=============[ Building x86_64 RPM package ]============="
# Note! rpmbuild --target is known not to work correctly, so we use setarch
-setarch x86_64 rpmbuild -bb $SCRIPT_DIR/SPECS/jitsi.spec
+setarch x86_64 rpmbuild -bb $SPECS_DIR/jitsi.spec
packagename64=jitsi-${version}-${buildNumber}.x86_64.rpm

-mkdir -p $SCRIPT_DIR/RPMS/common
+mkdir -p $RPMS_DIR/common

-cp $SCRIPT_DIR/RPMS/i686/$packagename32 $SCRIPT_DIR/RPMS/common/
-cp $SCRIPT_DIR/RPMS/x86_64/$packagename64 $SCRIPT_DIR/RPMS/common/
-clean_oldies "$SCRIPT_DIR/RPMS/common/jitsi*.rpm" 20
+cp $RPMS_DIR/i686/$packagename32 $RPMS_DIR/common/
+cp $RPMS_DIR/x86_64/$packagename64 $RPMS_DIR/common/
+clean_oldies "$RPMS_DIR/common/jitsi*.rpm" 20

-createrepo --database --deltas $SCRIPT_DIR/RPMS/common/
+createrepo --database --deltas $RPMS_DIR/common/
diff --git a/resources/install/rpm/SPECS/jitsi.spec b/resources/install/rpm/SPECS/jitsi.spec
index a106e84..752105f 100644
--- a/resources/install/rpm/SPECS/jitsi.spec
+++ b/resources/install/rpm/SPECS/jitsi.spec
@@ -1,13 +1,13 @@
Name: jitsi
-Version: 2.3
-Release: 4831
+Version: 2.5
+Release: 5264
Summary: Jitsi - Open Source Video Calls and Chat
Packager: Pavel Tankov <ptankov@bluejimp.com>

Group: Applications/Internet
License: GNU Lesser General Public License
URL: https://www.jitsi.org
-Source0: http://download.jitsi.org/jitsi/nightly/src/jitsi-src-2.3-4831.zip
+Source0: http://download.jitsi.org/jitsi/nightly/src/%{name}-src-%{version}-%{release}.zip
BuildRoot: %{_topdir}/buildroot

AutoReqProv: no
@@ -28,7 +28,7 @@ Yahoo! and many other useful features.
%setup -q -n jitsi

%build
-ant -Dlabel=4831 rebuild
+ant -Dlabel=%{release} rebuild

%install
[ "$(readlink -f "$RPM_BUILD_ROOT")" != "/" ] && rm -rf $RPM_BUILD_ROOT
@@ -56,6 +56,7 @@ gzip $RPM_BUILD_ROOT/usr/share/man/man1/jitsi.1
# copy the launcher script
cp resources/install/debian/jitsi.sh.tmpl $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/_PACKAGE_NAME_/jitsi/" $RPM_BUILD_ROOT/usr/bin/jitsi
+sed -i -e "s/-common/\/sc-bundles/" $RPM_BUILD_ROOT/usr/bin/jitsi

# no more libaoss
#sed -i -e "s@export LD_PRELOAD=/usr/lib/libaoss.so@export LD_PRELOAD=/usr/lib/libaoss.so.0@" $RPM_BUILD_ROOT/usr/bin/sip-communicator
@@ -125,6 +126,10 @@ sed -i -e "s/\/launchutils.jar//" $RPM_BUILD_ROOT/usr/bin/jitsi
%doc %{_mandir}/man*/*

%changelog
+* Tue Jul 29 2014 poma <poma@gmail.com>
+- Repair jitsi.spec in regard to jitsi.sh.tmpl commit 4064c28,
+ and build-jitsi-rpm.sh for the build on Fedora.
+
* Fri Sep 13 2013 Pavel Tankov <ptankov@bluejimp.com>
- Now depends on java >= 0:1.6.
- Changed the info to conform with the description on the website.
--
1.9.3

poma

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#5

Here it is.

[jitsi]
$ rpm -qf /usr/bin/jitsi
jitsi-2.5-5268.x86_64

$ /usr/bin/jitsi
Picked up _JAVA_OPTIONS: -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:6984:(snd_pcm_slave_conf) missing field rate
ALSA lib pcm.c:6984:(snd_pcm_slave_conf) missing field rate
jack_client_new: deprecated
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
jack_client_new: deprecated
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Error parsing gtk-icon-sizes string: ''
Error parsing gtk-icon-sizes string: ''

$ ps x | grep [/]jitsi
9722 pts/0 Sl+ 0:10 java -classpath /usr/share/jitsi/lib/felix.jar:/usr/share/jitsi/sc-bundles/sc-launcher.jar:/usr/share/jitsi/sc-bundles/util.jar:/usr/share/jitsi/lib -Djna.library.path=/usr/share/jitsi/lib/native -Dfelix.config.properties=file:/usr/share/jitsi/lib/felix.client.run.properties -Djava.util.logging.config.file=/usr/share/jitsi/lib/logging.properties -splash:splash.gif net.java.sip.communicator.launcher.SIPCommunicator

[build-jitsi-rpm.sh]
https://github.com/jitsi/jitsi/blob/master/resources/install/rpm/Readme.txt
Packages needed subversion rpm-build java-devel ant.
Create folder ~/rpmbuild.
Copy or link the SPECS folder there.
To create rpm packages just need to call build-jitsi-rpm.sh script, like:
~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414

[I]
$ ~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414
+++ readlink -f /home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh
++ dirname /home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh
+ SCRIPT_DIR=/home/poma/rpmbuild/SPECS
+ cd /home/poma/rpmbuild/SPECS
+ [[ 1.1 == \-\-\h\e\l\p ]]
+ [[ 1.1 == \-\h ]]
+ [[ 1.1 == \-\? ]]
+ [[ 3 -lt 1 ]]
+ buildNumber=1.1
+ cd SOURCES
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 27: cd: SOURCES: No such file or directory

[II]
$ sh ~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 27: cd: SOURCES: No such file or directory
Cloning into 'jitsi'...
remote: Counting objects: 169270, done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 169270 (delta 11), reused 2 (delta 0)
Receiving objects: 100% (169270/169270), 328.85 MiB | 61.00 KiB/s, done.
Resolving deltas: 100% (106400/106400), done.
Checking connectivity... done.
No local changes to save
Current branch master is up to date.
No stash found.
Creating zip file
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 41: cd: /home/poma/rpmbuild/SPECS/SOURCES: No such file or directory

zip error: Nothing to do! (jitsi-src-2.5-1-1.zip)
sed: can't read /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
=============[ Building i686 RPM package ]=============
error: failed to stat /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
=============[ Building x86_64 RPM package ]=============
error: failed to stat /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
cp: cannot stat �/home/poma/rpmbuild/SPECS/RPMS/i686/jitsi-2.5-1.1.i686.rpm�: No such file or directory
cp: cannot stat �/home/poma/rpmbuild/SPECS/RPMS/x86_64/jitsi-2.5-1.1.x86_64.rpm�: No such file or directory
ls: cannot access /home/poma/rpmbuild/SPECS/RPMS/common/jitsi*.rpm: No such file or directory
ls: cannot access /home/poma/rpmbuild/SPECS/RPMS/common/jitsi*.rpm: No such file or directory
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Saving delta metadata
Generating sqlite DBs
Sqlite DBs complete

poma

···

On 04.08.2014 11:41, Damian Minkov wrote:

Hi,

Could you please test build 5268. Is it ok?

Regards
damencho


#6

Hi,

so its not giving the class not found exception, but it doesn't start?

Regards
damencho

···

On Tue, Aug 5, 2014 at 4:44 PM, poma <pomidorabelisima@gmail.com> wrote:

On 04.08.2014 11:41, Damian Minkov wrote:

Hi,

Could you please test build 5268. Is it ok?

Regards
damencho

Here it is.

[jitsi]
$ rpm -qf /usr/bin/jitsi
jitsi-2.5-5268.x86_64

$ /usr/bin/jitsi
Picked up _JAVA_OPTIONS: -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:6984:(snd_pcm_slave_conf) missing field rate
ALSA lib pcm.c:6984:(snd_pcm_slave_conf) missing field rate
jack_client_new: deprecated
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
jack_client_new: deprecated
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_oss.c:397:(_snd_pcm_oss_open) Cannot open device /dev/dsp
ALSA lib pcm_dmix.c:961:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Error parsing gtk-icon-sizes string: ''
Error parsing gtk-icon-sizes string: ''

$ ps x | grep [/]jitsi
9722 pts/0 Sl+ 0:10 java -classpath /usr/share/jitsi/lib/felix.jar:/usr/share/jitsi/sc-bundles/sc-launcher.jar:/usr/share/jitsi/sc-bundles/util.jar:/usr/share/jitsi/lib -Djna.library.path=/usr/share/jitsi/lib/native -Dfelix.config.properties=file:/usr/share/jitsi/lib/felix.client.run.properties -Djava.util.logging.config.file=/usr/share/jitsi/lib/logging.properties -splash:splash.gif net.java.sip.communicator.launcher.SIPCommunicator

[build-jitsi-rpm.sh]
https://github.com/jitsi/jitsi/blob/master/resources/install/rpm/Readme.txt
Packages needed subversion rpm-build java-devel ant.
Create folder ~/rpmbuild.
Copy or link the SPECS folder there.
To create rpm packages just need to call build-jitsi-rpm.sh script, like:
~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414

[I]
$ ~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414
+++ readlink -f /home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh
++ dirname /home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh
+ SCRIPT_DIR=/home/poma/rpmbuild/SPECS
+ cd /home/poma/rpmbuild/SPECS
+ [[ 1.1 == \-\-\h\e\l\p ]]
+ [[ 1.1 == \-\h ]]
+ [[ 1.1 == \-\? ]]
+ [[ 3 -lt 1 ]]
+ buildNumber=1.1
+ cd SOURCES
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 27: cd: SOURCES: No such file or directory

[II]
$ sh ~/rpmbuild/SPECS/build-jitsi-rpm.sh 1.1 4454.10414 10414
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 27: cd: SOURCES: No such file or directory
Cloning into 'jitsi'...
remote: Counting objects: 169270, done.
remote: Compressing objects: 100% (40/40), done.
remote: Total 169270 (delta 11), reused 2 (delta 0)
Receiving objects: 100% (169270/169270), 328.85 MiB | 61.00 KiB/s, done.
Resolving deltas: 100% (106400/106400), done.
Checking connectivity... done.
No local changes to save
Current branch master is up to date.
No stash found.
Creating zip file
/home/poma/rpmbuild/SPECS/build-jitsi-rpm.sh: line 41: cd: /home/poma/rpmbuild/SPECS/SOURCES: No such file or directory

zip error: Nothing to do! (jitsi-src-2.5-1-1.zip)
sed: can't read /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
=============[ Building i686 RPM package ]=============
error: failed to stat /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
=============[ Building x86_64 RPM package ]=============
error: failed to stat /home/poma/rpmbuild/SPECS/SPECS/jitsi.spec: No such file or directory
cp: cannot stat ‘/home/poma/rpmbuild/SPECS/RPMS/i686/jitsi-2.5-1.1.i686.rpm’: No such file or directory
cp: cannot stat ‘/home/poma/rpmbuild/SPECS/RPMS/x86_64/jitsi-2.5-1.1.x86_64.rpm’: No such file or directory
ls: cannot access /home/poma/rpmbuild/SPECS/RPMS/common/jitsi*.rpm: No such file or directory
ls: cannot access /home/poma/rpmbuild/SPECS/RPMS/common/jitsi*.rpm: No such file or directory
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Saving delta metadata
Generating sqlite DBs
Sqlite DBs complete

poma

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev


#7

Of course, '/usr/bin/jitsi' does work, is it not obvious by reading the output. :wink:
'+sed -i -e "s/-common/\/sc-bundles/" $RPM_BUILD_ROOT/usr/bin/jitsi' was enough to make it work.

Besides I sent you a patch that was not applied, regarding to 'build-jitsi-rpm.sh' brokenness on Fedora.
So script in its current condition obviously still does not work on Fedora.
I can not take responsibility for inaccurate description of the changes, therefore please remove or change the 'jitsi.spec' line 133,
https://github.com/jitsi/jitsi/blob/master/resources/install/rpm/SPECS/jitsi.spec#L133
from
  "and build-jitsi-rpm.sh for the build on Fedora."
to e.g.
  "and build-jitsi-rpm.sh."

Thanks.

poma

···

On 05.08.2014 17:58, Damian Minkov wrote:

Hi,

so its not giving the class not found exception, but it doesn't start?

Regards
damencho