Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315567 - app-office/scribus-1.3.6-r1: adding linguas support makes package size twice smaller
Summary: app-office/scribus-1.3.6-r1: adding linguas support makes package size twice ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-16 09:30 UTC by Nikoli
Modified: 2012-01-04 09:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild (scribus-1.3.6-r1.ebuild,2.32 KB, text/plain)
2010-04-16 09:30 UTC, Nikoli
Details
diff (scribus_linguas.diff,1.15 KB, text/plain)
2010-05-04 11:46 UTC, Nikoli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2010-04-16 09:30:03 UTC
sizes in Kb:
23554   /usr/share/scribus/translations
2246    /usr/include/scribus

After adding linguas support and making headers installation optional (nothing in portage uses them) size of scribus decreased from 62162.58 KiB to 32865.33 KiB.

Reproducible: Always
Comment 1 Nikoli 2010-04-16 09:30:33 UTC
Created attachment 228011 [details]
ebuild
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-04-16 14:26:29 UTC
LANGSLONG="en_US lt_LT th_TH"
LANGS="af ar bg bn br ca cs cy da de_CH de_ol de dz el en_AU en_GB eo es_LA es et eu fi fr gl hu id it ja ko nb nl pl pt_BR pt ru sa sk sl sq sr sv tr uk zh zh_TW"

Why other xx_XX's are in LANGLONG and others in LANGS, like pt_BR?

And the headers install would go behind USE="minimal" imho
Comment 3 Nikoli 2010-04-16 14:52:13 UTC
Use minimal is good idea, but we need description in metadata.xml for this package. Imho this USE flag should be enabled by default.

>Why other xx_XX's are in LANGLONG and others in LANGS, like pt_BR?

Because we want USE="linguas_pt_BR", not USE="linguas_pt", read /usr/portage/profiles/desc/linguas.desc
LANGSLONG is var for xx_YY, where YY is not important and we want 'linguas_xx'
LANGS is var for ff_TT and ff, where _both_ ff and TT (if present) are important and became linguas_ff_TT or linguas_ff.

My ebuild and some ebuilds from portage work so, may be you know better solution?
p.s.
cd /usr/portage && grep LANGSLONG= */*/*ebuild -A2 -B2
...
media-sound/qmpdclient/qmpdclient-1.1.2-r2.ebuild-
media-sound/qmpdclient/qmpdclient-1.1.2-r2.ebuild:LANGSLONG="cs_CZ de_DE fr_FR it_IT nl_NL nn_NO no_NO ru_RU sv_SE tr_TR uk_UA"
media-sound/qmpdclient/qmpdclient-1.1.2-r2.ebuild-LANGS="zh_CN zh_TW pt_BR "
--
media-video/minitube/minitube-0.9.ebuild-LANGS="es_AR pt_BR uk"
media-video/minitube/minitube-0.9.ebuild:LANGSLONG="cs_CZ de_DE es_ES he_IL hr_HR hu_HU fr_FR it_IT ja_JP nb_NO pl_PL ru_RU
media-video/minitube/minitube-0.9.ebuild-tr_TR"
--
media-video/smplayer/smplayer-0.6.9.ebuild-pt sk sr sv tr zh_CN zh_TW"
media-video/smplayer/smplayer-0.6.9.ebuild:LANGSLONG="ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN"
media-video/smplayer/smplayer-0.6.9.ebuild-
--
net-im/qtwitter/qtwitter-0.10.0.ebuild-LANGS="nb_NO pt_BR"
net-im/qtwitter/qtwitter-0.10.0.ebuild:LANGSLONG="ca_ES cs_CZ de_DE es_ES fr_FR it_IT ja_JP pl_PL"
net-im/qtwitter/qtwitter-0.10.0.ebuild-
..
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2010-05-03 21:49:17 UTC
I've added the headers/minimal flag, it's enabled by default. But the linguas hassle is not very appealing, it adds extra burden to the ebuild maintaince.

/me considers this half-fix good enough, thanks for reporting/ebuild!
Comment 5 Nikoli 2010-05-04 11:46:18 UTC
Created attachment 230245 [details]
diff

Thanks for adding minimal use flag to ebuild in portage, but I think LINGUAS is more important - for me it saved 23 Mb, when 'minimal' only 2,3 Mb. I simplified patch, please look.

> USE minimal controls now headers wrt #315567. Scribus is no reverse depend of anything and headers are useful only for e.g. plug-in developers. This should save about 30 MB installed data.

May be you counted wrong or you need to change/tweak your FS?
Comment 6 Nikoli 2010-05-04 11:48:17 UTC
I think reopening is necessary.
Comment 7 Samuli Suominen (RETIRED) gentoo-dev 2010-05-04 12:00:26 UTC
I stopped maintaining scribus
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2011-09-27 21:25:16 UTC
(In reply to comment #5)
> Created attachment 230245 [details]
> diff
> 

Why did you add qt4-r2 ?
Comment 9 Nikoli 2011-09-27 21:33:48 UTC
>Why did you add qt4-r2 ?

You can remove this eclass and add:

for x in ${LANGS}; do
        IUSE="${IUSE} linguas_${x}"
done
for x in ${LANGSLONG}; do
        IUSE="${IUSE} linguas_${x%_*}"
done
Comment 10 Justin Lecher (RETIRED) gentoo-dev 2012-01-04 09:11:02 UTC
+*scribus-1.4.0 (04 Jan 2012)
+
+  04 Jan 2012; Justin Lecher <jlec@gentoo.org> -scribus-1.3.6.ebuild,
+  -scribus-1.3.8.ebuild, -scribus-1.3.9-r1.ebuild, -scribus-1.4.0_rc5.ebuild,
+  -scribus-1.4.0_rc6.ebuild, +scribus-1.4.0.ebuild, metadata.xml:
+  Version Bump, added linguas support, #315567; cleaned old
+