Bug 5322

Summary: poedit freezes when you save the same file twice after done changes to it
Product: Mageia Reporter: Kristoffer Grundström <lovaren>
Component: RPM PackagesAssignee: Remco Rijnders <remco>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: Low CC: lovaren, pterjan, remco
Version: 1Keywords: NEEDINFO
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: poedit CVE:
Status comment:

Description Kristoffer Grundström 2012-04-10 04:58:31 CEST
Description of problem: I've had freeze-problems saving the same po-file more than twice when doing changes to it.

I then desided to download git-code to build my own version.
Everything went fine until I used the Mageia Cauldron spec-file even thou I changed the version from 1.4.6.1 to 1.5beta1.tar.gz since that was what make-j2 created without error/s. I then see this output during rpmbuild -ba poedit.spec:

[kristoffer@localhost SPECS]$ rpmbuild -ba poedit.spec
Run(%prep): /bin/sh -e /var/tmp/rpm-tmp.Duw6Up
+ umask 022
+ cd /home/kristoffer/rpmbuild/BUILD
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/kristoffer/rpmbuild/BUILD
+ rm -rf poedit-1.5beta1
+ /usr/bin/gzip -dc /home/kristoffer/rpmbuild/SOURCES/poedit-1.5beta1.tar.gz
+ /bin/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd poedit-1.5beta1
+ exit 0
Run(%build): /bin/sh -e /var/tmp/rpm-tmp.GnRqrq
+ umask 022
+ cd /home/kristoffer/rpmbuild/BUILD
+ cd poedit-1.5beta1
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4'
+ export FFLAGS
+ LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags'
+ export LDFLAGS
+ CONFIGURE_TOP=.
+ /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool
Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html)
+ /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
+ /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking
+ /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs .
+ /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64
+ '[' -f ./configure.in -o -f ./configure.ac ']'
+ CONFIGURE_XPATH='--x-includes=/usr/include --x-libraries=/usr/lib64'
+ ./configure --build=x86_64-mageia-linux-gnu --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/lib64 --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --x-includes=/usr/include --x-libraries=/usr/lib64 --with-wx-config=/usr/bin/wx-config-unicode
checking build system type... x86_64-mageia-linux-gnu
checking host system type... x86_64-mageia-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for install location... /usr
checking for gawk... (cached) gawk
checking whether ln -s works... yes
checking for ranlib... ranlib
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU Objective C compiler... no
checking whether gcc accepts -g... no
checking dependency style of gcc... gcc3
checking for wx-config... /usr/bin/wx-config-unicode
checking for wxWidgets version >= 2.8.7 (--unicode)... yes (version 2.8.11)
checking for wxWidgets static library... no
checking if wxWidgets includes XRC... yes
checking for wxrc... /usr/bin/wxrc
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking boost/function.hpp usability... yes
checking boost/function.hpp presence... yes
checking for boost/function.hpp... yes
checking for mkdtemp... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GTKSPELL... yes
checking if wxWidgets toolkit uses GTK+ 2... yes
checking for Berkeley DB >= 4.7 (C++)... not found
configure: WARNING: cannot find Berkeley DB >= 4.7, Poedit will build w/o translation memory feature
checking for a sed that does not truncate output... /bin/sed
checking whether the C++ compiler accepts the -Wall flag... yes
checking whether the C++ compiler accepts the -Wextra flag... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating icons/Makefile
config.status: creating locales/Makefile
config.status: creating docs/Makefile
config.status: creating macosx/Info.plist
config.status: executing depfiles commands

Configured poedit-1.5beta1 for x86_64-mageia-linux-gnu

    Debugging information:      no
    Translation memory:         no
    Spellchecking:              yes

+ make -j2
Making all in src
make[1]: Entering directory `/home/kristoffer/rpmbuild/BUILD/poedit-1.5beta1/src'
  CXX    transmem.o
  CXXLD  poedit
edapp.o: In function `PoeditApp::OnInit()':
/home/kristoffer/Skrivbord/poedit/src/edapp.cpp:188: undefined reference to `TranslationMemory::MoveLegacyDbIfNeeded()'
edframe.o: In function `PoeditFrame::GetTransMem()':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:919: undefined reference to `TranslationMemory::IsSupported(wxString const&)'
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:921: undefined reference to `TranslationMemory::Create(wxString const&)'
edframe.o: In function `PoeditFrame::GetPopupMenu(unsigned long)':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:2290: undefined reference to `TranslationMemory::Lookup(wxString const&, wxArrayString&)'
edframe.o: In function `PoeditFrame::AutoTranslateCatalog()':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:2228: undefined reference to `TranslationMemory::Lookup(wxString const&, wxArrayString&)'
edframe.o: In function `PoeditFrame::WriteCatalog(wxString const&)':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:2110: undefined reference to `TranslationMemory::Store(wxString const&, wxString const&)'
edframe.o: In function `PoeditFrame::OnNew(wxCommandEvent&)':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:1217: undefined reference to `TranslationMemory::Release()'
edframe.o: In function `~PoeditFrame':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:698: undefined reference to `TranslationMemory::Release()'
edframe.o: In function `PoeditFrame::ReadCatalog(wxString const&)':
/home/kristoffer/Skrivbord/poedit/src/edframe.cpp:1808: undefined reference to `TranslationMemory::Release()'
transmemupd.o: In function `TranslationMemoryUpdater::UpdateFromCatalog(wxString const&)':
/home/kristoffer/Skrivbord/poedit/src/transmemupd.cpp:236: undefined reference to `TranslationMemory::Store(wxString const&, wxString const&)'
transmemupd_wizard.o: In function `RunTMUpdateWizard(wxWindow*, wxArrayString const&)':
/home/kristoffer/Skrivbord/poedit/src/transmemupd_wizard.cpp:191: undefined reference to `TranslationMemory::Create(wxString const&)'
/home/kristoffer/Skrivbord/poedit/src/transmemupd_wizard.cpp:205: undefined reference to `TranslationMemory::Release()'
/home/kristoffer/Skrivbord/poedit/src/transmemupd_wizard.cpp:201: undefined reference to `TranslationMemory::Release()'
collect2: ld returned 1 exit status
make[1]: *** [poedit] Error 1
make[1]: Leaving directory `/home/kristoffer/rpmbuild/BUILD/poedit-1.5beta1/src'
make: *** [all-recursive] Error 1
error: Bad endstatus from /var/tmp/rpm-tmp.GnRqrq (%build)


RPM-builderror:
    Bad endstatus from /var/tmp/rpm-tmp.GnRqrq (%build)


Version-Release number of selected component (if applicable): 1.5beta1

How reproducible: Everytime.

Steps to Reproduce:
1. Open Terminal.
2. Type git clone git://github.com/vslavik/poedit.git
3. When done, cd poedit
4. Run ./bootstrap
5. Run ./configure
6. Run make (or make -j2 if you have more than one CPU)
7. Run make dist-all
8. Move the created tar.gz-file to ~/rpmbuild/SOURCES
9. Download the poedit.spec from http://svnweb.mageia.org/packages/cauldron/poedit/current/SPECS/poedit.spec?revision=128108&view=co
10. Edit the spec-file & change the version from 1.4.6.1 to 1.5beta1, save the change & exit the used editor.
11. Install perl-BerkeleyDB.
11. Type rpmbuild -ba poedit.spec
12. Voila! Same error appears.
Kristoffer Grundström 2012-04-10 04:58:44 CEST

Priority: Normal => Low
CC: (none) => kristoffer.grundstrom1983
Severity: normal => minor

Comment 1 Remco Rijnders 2012-04-10 08:36:49 CEST
Kristoffer,

Is this problem (freezing) present in the version of poedit as shipped with Mageia? If yes, then it's a genuine bug.

Bugzilla is not intended to help packagers and end users with solving any problems they run into building custom versions of packages.

CC: (none) => remco

Comment 2 Manuel Hiebel 2012-04-10 14:40:46 CEST
and please don't add compilation message in clear texte, the next comment are hard to find.

Keywords: (none) => NEEDINFO
Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0

Comment 3 Kristoffer Grundström 2012-04-13 14:37:12 CEST
(In reply to comment #1)
> Kristoffer,
> 
> Is this problem (freezing) present in the version of poedit as shipped with
> Mageia? If yes, then it's a genuine bug.
> 
> Bugzilla is not intended to help packagers and end users with solving any
> problems they run into building custom versions of packages.

Yes it is.
Comment 4 Nicolas Vigier 2012-04-13 14:46:19 CEST
(In reply to comment #3)
> (In reply to comment #1)

> > Bugzilla is not intended to help packagers and end users with solving any
> > problems they run into building custom versions of packages.
> 
> Yes it is.

No it's not.

Status: UNCONFIRMED => RESOLVED
CC: (none) => boklm
Resolution: (none) => INVALID

Comment 5 Kristoffer Grundström 2012-04-13 14:53:17 CEST
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #1)
> 
> > > Bugzilla is not intended to help packagers and end users with solving any
> > > problems they run into building custom versions of packages.
> > 
> > Yes it is.
> 
> No it's not.

I was answering to Remco's question.
Comment 6 Pascal Terjan 2012-04-13 14:56:01 CEST
Bugzilla is not intended to help people fixing bugs in software not provided with the distribution, it is intended to report bugs about software provided in the distribution.

CC: (none) => pterjan

Comment 7 Kristoffer Grundström 2012-04-13 14:57:02 CEST
If you type urpmq poedit you see that it IS included in the distro. ;)
Comment 8 Nicolas Vigier 2012-04-13 14:59:36 CEST
If you have problems with poedit, open a bug with details about the problem in poedit, not about building a custom package of poedit.
Comment 9 Remco Rijnders 2012-04-13 15:42:05 CEST
What Kristoffer meant to write in comment 3 was:

> Kristoffer,
> 
> Is this problem (freezing) present in the version of poedit as shipped with
> Mageia? If yes, then it's a genuine bug.

Yes it is.


=======

I'll have a look this weekend to see if I can reproduce this bug.

Assignee: bugsquad => remco

Comment 10 Kristoffer Grundström 2012-04-13 15:59:14 CEST
(In reply to comment #8)
> If you have problems with poedit, open a bug with details about the problem in
> poedit, not about building a custom package of poedit.

Right, but it doesn't always work to rebuild the src.rpm to get rid of the issue.
Nicolas Vigier 2014-05-08 18:06:21 CEST

CC: boklm => (none)