LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-30-2024, 01:08 AM   #1
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 192

Rep: Reputation: 130Reputation: 130
Latest MPlayer-20240127-x86_64-1


Hi, all

I found that the latest MPlayer-20240127-x86_64-1 package doesn't include "usr/share/applications/mplayer.desktop ,usr/bin/mencoder and locale data in usr/share/locale/".

I think that MPlayer's git source doesn't support the latest gettext-0.22.x.
Then, I switched gettext version from 0.22.4 to former version 0.21.1 and recompiled MPlayer by using official SlackBuilld and source.
The package was compiled fine and I confirmed it contains "mencoder, mplayer.desktop and locale data".

That is my tentative work aroud, but I have no idea how to fix MPlayer's source for gettext-0.22.x support.

Sorry for my poor English.

I placed older version of gettext packages at following link (My MEGA drive).
1. gettext-0.21.1-x86_64-1.txz https://mega.nz/file/5zRimDbD#vbI06F...5AuUStSeygxxTs
2. gettext-tools-0.21.1-x86_64-1.txz https://mega.nz/file/xiYDlDJJ#H5LRY4...KXgQ2CrdfKo6h4
 
Old 01-30-2024, 05:59 AM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,442

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
According to the latest changes :
https://git.slackware.nl/current/dif...8e4af24c345e35

It's likely that none of them were ever part of the package
 
Old 01-30-2024, 06:22 AM   #3
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 413

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Quote:
Originally Posted by marav View Post
According to the latest changes :
https://git.slackware.nl/current/dif...8e4af24c345e35

It's likely that none of them were ever part of the package
For the 2021 one which is on Slackware 15, mencoder was in the package at least.
 
Old 01-30-2024, 06:29 AM   #4
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 192

Original Poster
Rep: Reputation: 130Reputation: 130
Hi, marav

Thank you for your comment.
I understood the current status of 64-current's MPlayer package.
 
Old 01-30-2024, 07:11 AM   #5
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,442

Rep: Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191Reputation: 4191
Quote:
Originally Posted by BrunoLafleur View Post
For the 2021 one which is on Slackware 15, mencoder was in the package at least.
It seems that make install-mencoder is required during the built
But I don't any Slackbuilds containing this command

Where did you see it ?
 
Old 01-30-2024, 07:54 AM   #6
BrunoLafleur
Member
 
Registered: Apr 2020
Location: France
Distribution: Slackware
Posts: 413

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
But in the official package of the Slackware 15 for MPlayer which is *2021*, there is mencoder, /usr/share/applications/mplayer.desktop and /usr/share/locale with some languages (3 of them). Maybe in the current it has been inhibited for some reason but it used to be there.

Also there is no such thing as make install-mencoder in the README of MPlayer.

And I have also recompiled some other version of MPlayer without such option and with mencoder as a result.

Last edited by BrunoLafleur; 01-30-2024 at 08:02 AM.
 
Old 01-30-2024, 08:50 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,131

Rep: Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202Reputation: 4202
this seems to happen because of the method mplayer uses to process its translations (after the gettext 0.22.x upgrade) and it seems that the mplayer people haven't catched up with it yet.

with the new gettext msgfmt requires that translation files contain an header (the translation for the empty string) that specify *at least* a charset for the translations listed in the file itself but the perl script that the mplayer people use to process translations doesn't add that bit to the generated *.po files.

a solution could be to patch that perl script so that it adds the minimum required for msgfmt to not error out, like
Code:
--- MPlayer-20240127.orig/help/help_create_po.pl        2024-01-28 02:50:56.000000000 +0100
+++ MPlayer-20240127/help/help_create_po.pl     2024-01-30 15:37:50.557242258 +0100
@@ -56,6 +56,9 @@
 open(po, "> $ARGV[1]") or die "Cannot open $ARGV[1]";
 
 print po "# DO NOT EDIT - this file is generated from $ARGV[0]\n";
+print po "msgid \"\"\n";
+print po "msgstr \"\"\n";
+print po "\"Content-Type: text/plain; charset=UTF-8\"\n";
 
 foreach my $id (keys %podefs)
 {
this seems to let the mplayer build go on fine with all the bits in the final package: the patch could be applied after the samba one in the SlackBuild with a bit like
Code:
patch -p1 < $SRCDIR/po_charset.patch
if you want to test it too.

you can verify that this is the reason the build process does not complete successfully by setting the variable LANGUAGES in the MPlayer.SlackBuild to "en" so that msgfmt isn't called to process translations: try the build of the untouched SlackBuild presently in sources and with the LANGUAGES variable changed to "en" and compare the content of the resulting packages.

Last edited by ponce; 01-30-2024 at 08:52 AM.
 
5 members found this post helpful.
Old 01-30-2024, 09:20 AM   #8
J_W
Member
 
Registered: Apr 2004
Location: Yamagata, JAPAN
Distribution: Slackware64-current
Posts: 192

Original Poster
Rep: Reputation: 130Reputation: 130
Hi, ponce

Thank you for your advice and patch.
I tried to create MPlayer package with your patch using slackware's official SlackBuild and source.

SlackBuild (diff)
Code:
--- MPlayer.SlackBuild	2024-01-31 00:07:51.092410806 +0900
+++ MPlayer.SlackBuild.new	2024-01-31 00:04:32.198800912 +0900
@@ -238,6 +238,9 @@
 chmod -R u+w,go+r-w,a+X-s *
 cd ${PKGNAM}-${VERSION}
 
+# Fix gettext 0.22.x msgfmt ERROR
+patch -p1 < $SRCDIR/po_charset.patch
+
 # Determine what X we're running (the modular X returns the prefix
 # in the next command, while older versions stay silent):
 XPREF=$(pkg-config --variable=prefix x11) || true
Then MPlayer-20240127 package was successfully created as follows.
(gettext version is 0.22.4)
Code:
Creating Slackware package:  /tmp/MPlayer-20240127-x86_64-1.txz

./
etc/
etc/mplayer/
etc/mplayer/mplayer.conf.new
install/
install/doinst.sh
install/slack-desc
usr/
usr/bin/
usr/bin/mencoder
usr/bin/mplayer
usr/doc/
usr/doc/MPlayer-20240127/
usr/doc/MPlayer-20240127/AUTHORS
usr/doc/MPlayer-20240127/Changelog
usr/doc/MPlayer-20240127/Copyright
usr/doc/MPlayer-20240127/LICENSE
usr/doc/MPlayer-20240127/MPlayer.SlackBuild
usr/doc/MPlayer-20240127/MPlayer.configuration
usr/doc/MPlayer-20240127/README
usr/doc/MPlayer-20240127/VERSION
usr/doc/MPlayer-20240127/codecs.conf-sample
usr/doc/MPlayer-20240127/dvb-menu.conf-sample
usr/doc/MPlayer-20240127/example.conf-sample
usr/doc/MPlayer-20240127/html/
usr/doc/MPlayer-20240127/html/de/
usr/doc/MPlayer-20240127/html/de/MPlayer.html
usr/doc/MPlayer-20240127/html/de/default.css
usr/doc/MPlayer-20240127/html/en/
usr/doc/MPlayer-20240127/html/en/MPlayer.html
usr/doc/MPlayer-20240127/html/en/default.css
usr/doc/MPlayer-20240127/html/es/
usr/doc/MPlayer-20240127/html/es/MPlayer.html
usr/doc/MPlayer-20240127/html/es/default.css
usr/doc/MPlayer-20240127/html/fr/
usr/doc/MPlayer-20240127/html/fr/MPlayer.html
usr/doc/MPlayer-20240127/html/fr/default.css
usr/doc/MPlayer-20240127/input.conf-sample
usr/doc/MPlayer-20240127/menu.conf-sample
usr/doc/MPlayer-20240127/tech/
usr/doc/MPlayer-20240127/tech/Doxyfile
usr/doc/MPlayer-20240127/tech/MAINTAINERS
usr/doc/MPlayer-20240127/tech/TODO
usr/doc/MPlayer-20240127/tech/binary-packaging.txt
usr/doc/MPlayer-20240127/tech/code-documentation.txt
usr/doc/MPlayer-20240127/tech/codec-devel.txt
usr/doc/MPlayer-20240127/tech/codecs-in.html
usr/doc/MPlayer-20240127/tech/codecs.conf.txt
usr/doc/MPlayer-20240127/tech/colorspaces.txt
usr/doc/MPlayer-20240127/tech/crosscompile.txt
usr/doc/MPlayer-20240127/tech/dr-methods.txt
usr/doc/MPlayer-20240127/tech/encoding-guide.txt
usr/doc/MPlayer-20240127/tech/encoding-tips.txt
usr/doc/MPlayer-20240127/tech/formats.txt
usr/doc/MPlayer-20240127/tech/general.txt
usr/doc/MPlayer-20240127/tech/hwac3.txt
usr/doc/MPlayer-20240127/tech/libao2.txt
usr/doc/MPlayer-20240127/tech/libmpcodecs.txt
usr/doc/MPlayer-20240127/tech/libvo.txt
usr/doc/MPlayer-20240127/tech/manpage.txt
usr/doc/MPlayer-20240127/tech/mirrors/
usr/doc/MPlayer-20240127/tech/mirrors/mirror_howto.txt
usr/doc/MPlayer-20240127/tech/mirrors/update_mplayer_rsync
usr/doc/MPlayer-20240127/tech/mpdsf.txt
usr/doc/MPlayer-20240127/tech/mpsub.sub
usr/doc/MPlayer-20240127/tech/osd.txt
usr/doc/MPlayer-20240127/tech/patches.txt
usr/doc/MPlayer-20240127/tech/playtree
usr/doc/MPlayer-20240127/tech/realcodecs/
usr/doc/MPlayer-20240127/tech/realcodecs/TODO
usr/doc/MPlayer-20240127/tech/realcodecs/audio-codecs.txt
usr/doc/MPlayer-20240127/tech/realcodecs/streaming.txt
usr/doc/MPlayer-20240127/tech/realcodecs/video-codecs.txt
usr/doc/MPlayer-20240127/tech/release-howto.txt
usr/doc/MPlayer-20240127/tech/release-svn.txt
usr/doc/MPlayer-20240127/tech/release.sh
usr/doc/MPlayer-20240127/tech/slave.txt
usr/doc/MPlayer-20240127/tech/snow.txt
usr/doc/MPlayer-20240127/tech/subcp.txt
usr/doc/MPlayer-20240127/tech/svn-howto.txt
usr/doc/MPlayer-20240127/tech/swscaler_filters.txt
usr/doc/MPlayer-20240127/tech/swscaler_methods.txt
usr/doc/MPlayer-20240127/tech/translations.txt
usr/doc/MPlayer-20240127/tech/vidix.txt
usr/doc/MPlayer-20240127/tech/win32-codec-howto.txt
usr/doc/MPlayer-20240127/tech/wishlist
usr/lib/
usr/man/
usr/man/de/
usr/man/de/man1/
usr/man/de/man1/mplayer.1.gz
usr/man/es/
usr/man/es/man1/
usr/man/es/man1/mplayer.1.gz
usr/man/fr/
usr/man/fr/man1/
usr/man/fr/man1/mplayer.1.gz
usr/man/man1/
usr/man/man1/mplayer.1.gz
usr/share/
usr/share/applications/
usr/share/applications/mplayer.desktop
usr/share/icons/
usr/share/icons/hicolor/
usr/share/icons/hicolor/16x16/
usr/share/icons/hicolor/16x16/apps/
usr/share/icons/hicolor/16x16/apps/mplayer.png
usr/share/icons/hicolor/22x22/
usr/share/icons/hicolor/22x22/apps/
usr/share/icons/hicolor/22x22/apps/mplayer.png
usr/share/icons/hicolor/24x24/
usr/share/icons/hicolor/24x24/apps/
usr/share/icons/hicolor/24x24/apps/mplayer.png
usr/share/icons/hicolor/256x256/
usr/share/icons/hicolor/256x256/apps/
usr/share/icons/hicolor/256x256/apps/mplayer.png
usr/share/icons/hicolor/32x32/
usr/share/icons/hicolor/32x32/apps/
usr/share/icons/hicolor/32x32/apps/mplayer.png
usr/share/icons/hicolor/48x48/
usr/share/icons/hicolor/48x48/apps/
usr/share/icons/hicolor/48x48/apps/mplayer.png
usr/share/locale/
usr/share/locale/de/
usr/share/locale/de/LC_MESSAGES/
usr/share/locale/de/LC_MESSAGES/mplayer.mo
usr/share/locale/es/
usr/share/locale/es/LC_MESSAGES/
usr/share/locale/es/LC_MESSAGES/mplayer.mo
usr/share/locale/fr/
usr/share/locale/fr/LC_MESSAGES/
usr/share/locale/fr/LC_MESSAGES/mplayer.mo
usr/share/mplayer/
usr/share/mplayer/skins/
usr/share/mplayer/skins/Blue/
usr/share/mplayer/skins/Blue/README
usr/share/mplayer/skins/Blue/VERSION
usr/share/mplayer/skins/Blue/about.png
usr/share/mplayer/skins/Blue/bareqb.png
usr/share/mplayer/skins/Blue/barexit.png
usr/share/mplayer/skins/Blue/barffwd.png
usr/share/mplayer/skins/Blue/barfwd.png
usr/share/mplayer/skins/Blue/barmute.png
usr/share/mplayer/skins/Blue/barplay.png
usr/share/mplayer/skins/Blue/barrev.png
usr/share/mplayer/skins/Blue/barrevv.png
usr/share/mplayer/skins/Blue/barstop.png
usr/share/mplayer/skins/Blue/barzoom.png
usr/share/mplayer/skins/Blue/eqb.png
usr/share/mplayer/skins/Blue/exit.png
usr/share/mplayer/skins/Blue/font-pl.png
usr/share/mplayer/skins/Blue/font.fnt
usr/share/mplayer/skins/Blue/forward.png
usr/share/mplayer/skins/Blue/icons/
usr/share/mplayer/skins/Blue/icons/icon32x32.png
usr/share/mplayer/skins/Blue/icons/icon48x48.png
usr/share/mplayer/skins/Blue/load.png
usr/share/mplayer/skins/Blue/main-silver.png
usr/share/mplayer/skins/Blue/main.png
usr/share/mplayer/skins/Blue/menu.png
usr/share/mplayer/skins/Blue/menus.png
usr/share/mplayer/skins/Blue/minimize.png
usr/share/mplayer/skins/Blue/mute.png
usr/share/mplayer/skins/Blue/next.png
usr/share/mplayer/skins/Blue/play.png
usr/share/mplayer/skins/Blue/playbar.png
usr/share/mplayer/skins/Blue/playlist.png
usr/share/mplayer/skins/Blue/pos.png
usr/share/mplayer/skins/Blue/prefs.png
usr/share/mplayer/skins/Blue/prev.png
usr/share/mplayer/skins/Blue/progres-long2c.png
usr/share/mplayer/skins/Blue/progres-long2d.png
usr/share/mplayer/skins/Blue/rev.png
usr/share/mplayer/skins/Blue/skin
usr/share/mplayer/skins/Blue/skinb.png
usr/share/mplayer/skins/Blue/stop.png
usr/share/mplayer/skins/Blue/subblue.png
usr/share/mplayer/skins/Blue/subload.png
usr/share/mplayer/skins/Blue/symbols.fnt
usr/share/mplayer/skins/Blue/symbols2.png
usr/share/mplayer/skins/Blue/symbolsg.fnt
usr/share/mplayer/skins/Blue/zoom-3.png

Slackware package /tmp/MPlayer-20240127-x86_64-1.txz created.
Thank you for your support.
 
  


Reply

Tags
ffmpeg, gettext, mplayer



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
efibootmgr-0.5.4-x86_64 vs efibootmgr-0.6.0-x86_64 Olaus Slackware 4 10-26-2016 12:42 AM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 04:36 PM
opensuse 11 - compiz x86_64, libcompizconfig 586... wait, what? where is x86_64 ver? almcneill SUSE / openSUSE 9 09-28-2008 10:36 AM
LXer: Xen 3.2 on CentOS 5.2 x86_64 / RHEL 5.2 x86_64 LXer Syndicated Linux News 0 07-12-2008 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration