Subject: Re: pkg/33735: misc/rpm PLIST PKGLOCALEDIR
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
List: pkgsrc-bugs
Date: 06/16/2006 08:30:03
The following reply was made to PR pkg/33735; it has been noted by GNATS.

From: Gilles Dauphin <Gilles.Dauphin@enst.fr>
To: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org,
	gnats-bugs@NetBSD.org
Cc: joerg@britannica.bec.de
Subject: Re: pkg/33735: misc/rpm PLIST PKGLOCALEDIR
Date: Fri, 16 Jun 2006 10:29:02 +0200 (CEST)

 > 
 > The following reply was made to PR pkg/33735; it has been noted by GNATS.
 > 
 > From: joerg@britannica.bec.de
 > To: gnats-bugs@NetBSD.org
 > Cc: 
 > Subject: Re: pkg/33735: misc/rpm PLIST PKGLOCALEDIR
 > Date: Thu, 15 Jun 2006 17:39:32 +0200
 > 
 >  On Thu, Jun 15, 2006 at 09:45:00AM +0000, Gilles Dauphin wrote:
 >  > Patch for Makefile and PLIST
 >  
 >  The PLIST patch is not needed. Can you check whether
 >  USE_PKGLOCALDIR=yes
 >  BROKEN_GETTEXT_DETECTION=yes
 >  does the job for you?
 >  
 >  Joerg
 >  
 
 Nop it does not works. Sorry.
 here is the result:
 --------------------------------
 => Checking for work-directory references in rpm-2.5.4nb5
 => Checking file-check results for rpm-2.5.4nb5
 *** The PLIST does not match installed files!
 *** The following files are in the PLIST but not in /usr/pkg:
         /usr/pkg/share/locale/cs/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/de/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/fi/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/fr/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/pt_BR/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/ru/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/sk/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/sr/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/sv/LC_MESSAGES/rpm.mo
         /usr/pkg/share/locale/tr/LC_MESSAGES/rpm.mo
 *** The following files are in /usr/pkg but not in the PLIST:
         /usr/pkg/lib/locale/cs/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/de/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/fi/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/fr/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/pt_BR/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/ru/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/sk/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/sr/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/sv/LC_MESSAGES/rpm.mo
         /usr/pkg/lib/locale/tr/LC_MESSAGES/rpm.mo
 *** Error code 1
 
 Stop.
 bmake: stopped in /usr/pkgsrc/misc/rpm
 *** Error code 1
 
 Stop.
 -----------------------------------------------------
 
 Makefile.save is the one which works for me with the PLIST patch.
 [root@u2 1162] diff -bu Makefile Makefile.save 
 --- Makefile    Fri Jun 16 10:12:53 2006
 +++ Makefile.save       Thu Jun 15 10:09:00 2006
 @@ -15,8 +15,8 @@
  
  USE_TOOLS+=            gmake msgfmt
  GNU_CONFIGURE=         yes
 -USE_PKGLOCALDIR=       yes
 -BROKEN_GETTEXT_DETECTION=      yes
 +USE_PKGLOCALEDIR=      yes
 +LDFLAGS.SunOS+=                -R/usr/pkg/lib -lintl
  
  # this is needed instead of USE_PKGLOCALEDIR
  CONFIGURE_ARGS+=       --datadir=${PREFIX}/${PKGLOCALEDIR}
 -----------------------------------------------------------
 [root@u2 1163] diff PLIST PLIST.save
 17,26c17,26
 < share/locale/cs/LC_MESSAGES/rpm.mo
 < share/locale/de/LC_MESSAGES/rpm.mo
 < share/locale/fi/LC_MESSAGES/rpm.mo
 < share/locale/fr/LC_MESSAGES/rpm.mo
 < share/locale/pt_BR/LC_MESSAGES/rpm.mo
 < share/locale/ru/LC_MESSAGES/rpm.mo
 < share/locale/sk/LC_MESSAGES/rpm.mo
 < share/locale/sr/LC_MESSAGES/rpm.mo
 < share/locale/sv/LC_MESSAGES/rpm.mo
 < share/locale/tr/LC_MESSAGES/rpm.mo
 ---
 > ${PKGLOCALEDIR}/locale/cs/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/de/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/fi/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/fr/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/pt_BR/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/ru/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/sk/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/sr/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/rpm.mo
 > ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/rpm.mo
 
 Gilles