[opensuse] suse_update_desktop_file: invalid option -- 'w'
If I try to rebuild the current version of MythTV from Packman (mythtv-0.28+git.20161105.1434df8-1.1.src.rpm) I get the following error message: mybox:~ # rpmbuild -bb /usr/src/packages/SPECS/mythtv.spec suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kunUcV + umask 022 + cd /usr/src/packages/BUILD I have absolutely no idea, where does the option 'w' come from. 'rpmbuild' itself seems to throw the error message. /usr/lib/rpm/suse_update_desktop_file.sh has only an error message with uppercase letters (echo "UNKNOWN OPTION: $1"). I use OS Tumbleweed 20161119. Any ideas? Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Bjoern Voigt wrote:
If I try to rebuild the current version of MythTV from Packman (mythtv-0.28+git.20161105.1434df8-1.1.src.rpm) I get the following error message:
mybox:~ # rpmbuild -bb /usr/src/packages/SPECS/mythtv.spec suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kunUcV + umask 022 + cd /usr/src/packages/BUILD
I have absolutely no idea, where does the option 'w' come from. 'rpmbuild' itself seems to throw the error message. /usr/lib/rpm/suse_update_desktop_file.sh has only an error message with uppercase letters (echo "UNKNOWN OPTION: $1"). I use OS Tumbleweed 20161119. The problem is caused by these lines in SPEC file:
%{suse_update_desktop_file -c %{frontend}-1024x576 \ "MythTV 1024x576" "PVR/DVR (medium window size)" "%{frontend} -w -geometry 1024x576" %{frontend} Qt AudioVideo Video TV} %{suse_update_desktop_file -c %{frontend}-800x450 \ "MythTV 800x450" "PVR/DVR (small window size)" "%{frontend} -w -geometry 800x450" %{frontend} Qt AudioVideo Video TV} So "-w" seems to be quoted incorrectly and suse_update_desktop_file tries to process the option "-w". But "-w" is for "mythfrontend" (%{frontend}). How this should be quoted correctly? Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
02.12.2016 17:52, Bjoern Voigt пишет:
Bjoern Voigt wrote:
If I try to rebuild the current version of MythTV from Packman (mythtv-0.28+git.20161105.1434df8-1.1.src.rpm) I get the following error message:
mybox:~ # rpmbuild -bb /usr/src/packages/SPECS/mythtv.spec suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) suse_update_desktop_file: invalid option -- 'w' error: Unknown option w in suse_update_desktop_file(cinrud:D:N:C:G:) Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.kunUcV + umask 022 + cd /usr/src/packages/BUILD
I have absolutely no idea, where does the option 'w' come from. 'rpmbuild' itself seems to throw the error message. /usr/lib/rpm/suse_update_desktop_file.sh has only an error message with uppercase letters (echo "UNKNOWN OPTION: $1"). I use OS Tumbleweed 20161119. The problem is caused by these lines in SPEC file:
%{suse_update_desktop_file -c %{frontend}-1024x576 \ "MythTV 1024x576" "PVR/DVR (medium window size)" "%{frontend} -w -geometry 1024x576" %{frontend} Qt AudioVideo Video TV}
%{suse_update_desktop_file -c %{frontend}-800x450 \ "MythTV 800x450" "PVR/DVR (small window size)" "%{frontend} -w -geometry 800x450" %{frontend} Qt AudioVideo Video TV}
So "-w" seems to be quoted incorrectly and suse_update_desktop_file tries to process the option "-w". But "-w" is for "mythfrontend" (%{frontend}).
How this should be quoted correctly?
It can't; use second level macro %command %{frontend} -w geometry 800x450 %{suse_update_desktop_file ... "%command" ...} -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Andrei Borzenkov
-
Bjoern Voigt