=================== BUG #1867: LATEST MODIFICATIONS ==================
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=1867&group_id=2348
Changes by: Mathieu Roy <[EMAIL PROTECTED]>
Date: 2003-Jan-06 19:31 (Europe/Paris)
What | Removed | Added
---------------------------------------------------------------------------
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
No way to choose a database type when both rpm and dpkg are installed. So, add
a comment about it in install about usage of --type option while running
./configure script.
=================== BUG #1867: FULL BUG SNAPSHOT ===================
Submitted by: blackshack Project: Package DataBase View
Submitted on: 2002-Dec-03 13:20
Category: core Severity: 1 - Ordinary
Bug Group: None Resolution: Works for me
Assigned to: yeupou Status: Closed
Summary: pdbv for dpkg generated when dpkg and rpm are available
Original Submission: je suis sur distrib suse8.1 il utilise dkpg apparement
-je ne sais si c normal mais ne devrait il pas utiliser rpm plutot-.
il n'arrive pas à lister les *.list -peut etre liée au précédent
Follow-up Comments
*******************
-------------------------------------------------------
Date: 2003-Jan-06 19:31 By: yeupou
No way to choose a database type when both rpm and dpkg are installed. So, add
a comment about it in install about usage of --type option while running
./configure script.
-------------------------------------------------------
Date: 2002-Dec-04 15:14 By: blackshack
ca va ca marche avec le configure du CVS et l'option --type=rpm. tout roule
-------------------------------------------------------
Date: 2002-Dec-04 14:57 By: yeupou
Bon, j'essayerais de me renseigner et d'améliorer la chose. En attendant, avec
l'option --type=rpm ça devrait aller.
-------------------------------------------------------
Date: 2002-Dec-04 14:52 By: blackshack
J'ai fait une install standard à ce niveau là, donc apparement oui par défaut
il l'installe. -remarque il y a aussi de fichiers gentoorc que j'ai vu passé en
me baldant dans /etc donc pourquoi pas dpkg. C'est peut-etre pour certains
programmes propre à SuSE
-------------------------------------------------------
Date: 2002-Dec-04 14:44 By: yeupou
Ok, le problème vient du fait que tu as dpkg et rpm installé. Est-ce normal ?
checking for rpm... yes
checking for dpkg... yes
checking whether /var/lib/dpkg exists... yes
Le problème vient que pour préparer le pdbv executable, lorsqu'il trouve rpm,
dpkg et le dossier /var/lib/dpkg il part du principe que c'est une distrib
basée sur dpkg et non RPM. Mais il est possible d'avoir dpkg installé pour
utiliser alien.
Donc pour règler faudrait que je sache si c'est standard d'avoir un
/var/lib/dpkg sur SuSE lorsqu'on utilise en fait RPM (à quoi ça sert, a priori
ce n'est pas requis pour alien).
Sinon, en attendant, il faudrait que tu prennes le configure du CVS
http://savannah.nongnu.org/cgi-bin/viewcvs/*checkout*/pdbv/pdbv/configure?rev=HEAD&content-type=text/plain
et que tu fasse configure avec l'option --type=rpm
-------------------------------------------------------
Date: 2002-Dec-04 12:41 By: blackshack
j'espere que c ce fichier:
checking for package_db_view version... 1.2.4
checking for which... yes (GNU which)
checking for bash... yes
checking for install... yes
checking for make... yes
checking for gettext... yes
checking for awk... yes
checking for sed... yes
checking for tail... yes
checking for sort... yes
checking for getopt... yes
checking for touch... yes
checking for mkdir... yes
checking for find... yes
checking for sleep... yes
checking for uname... yes
checking for expr... yes
checking for ls... yes
checking whether ls --full-time --time-style=+%Y works... yes
checking for gzip... yes
checking for rpm... yes
checking for dpkg... yes
checking whether /var/lib/dpkg exists... yes
checking for libinfo.4... no
creating pdbv... done
creating pdbv.cron... done
creating pdbvrc... done
updating po/Makefile... done
updating man/Makefile... done
creating Makefile... done
now, type make
-------------------------------------------------------
Date: 2002-Dec-04 12:26 By: yeupou
En fait, ce qui me faudrait, c'est plutot le résultat de la commande configure.
J'ai une idée du problème potentiel, et le problème doit sans doute se produire
à ce moment là.
-------------------------------------------------------
Date: 2002-Dec-04 12:02 By: blackshack
oui c a partir des source voici le makefile:
prefix=/usr/local
INSTALLNLSDIR=$(prefix)/share/locale
INSTALL= install
INSTALL_PROGRAM= ${INSTALL}
INSTALL_DATA= ${INSTALL} -m 644
MSGMERGE = msgmerge
NLSPACKAGE = pdbv
CATALOGS = $(shell ls *.po)
FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
POTFILES = ../pdbv
all: $(NLSPACKAGE).pot $(FMTCATALOGS)
$(NLSPACKAGE).pot: $(POTFILES)
new-pot-file-i-really-mean-it: $(POTFILES)
./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po
if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
rm -f $(NLSPACKAGE).po; \
else \
mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
fi
refresh-po: Makefile
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed 's/.po//'`; \
if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \
mv -f $$lang.pot $$lang.po ; \
echo "$(MSGMERGE) of $$lang succeeded" ; \
else \
echo "$(MSGMERGE) of $$lang failed" ; \
rm -f $$lang.pot ; \
fi \
done
update-po: $(NLSPACKAGE).pot Makefile refresh-po
report:
@for cat in $(CATALOGS); do \
echo -n "$$cat: "; \
msgfmt -v --statistics -o /dev/null $$cat; \
done
clean:
rm -f *mo *.pyc
rm Makefile
distclean: clean
rm -f .depend Makefile
depend:
install: all
mkdir -p $(INSTALLNLSDIR)
for n in $(CATALOGS); do \
l=`basename $$n .po`; \
mo=$$l.mo; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l/LC_MESSAGES; \
$(INSTALL) -m 644 $$mo \
$(INSTALLNLSDIR)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \
done
%.mo: %.po
msgfmt -o $@ $<
et voici le makefile.in au cas où:
INSTALL= install
INSTALL_PROGRAM= ${INSTALL}
INSTALL_DATA= ${INSTALL} -m 644
MSGMERGE = msgmerge
NLSPACKAGE = pdbv
CATALOGS = $(shell ls *.po)
FMTCATALOGS = $(patsubst %.po,%.mo,$(CATALOGS))
POTFILES = ../pdbv
all: $(NLSPACKAGE).pot $(FMTCATALOGS)
$(NLSPACKAGE).pot: $(POTFILES)
new-pot-file-i-really-mean-it: $(POTFILES)
./xgettext_sh.py $(POTFILES) > $(NLSPACKAGE).po
if cmp -s $(NLSPACKAGE).po $(NLSPACKAGE).pot; then \
rm -f $(NLSPACKAGE).po; \
else \
mv $(NLSPACKAGE).po $(NLSPACKAGE).pot; \
fi
refresh-po: Makefile
catalogs='$(CATALOGS)'; \
for cat in $$catalogs; do \
lang=`echo $$cat | sed 's/.po//'`; \
if $(MSGMERGE) $$lang.po $(NLSPACKAGE).pot > $$lang.pot ; then \
mv -f $$lang.pot $$lang.po ; \
echo "$(MSGMERGE) of $$lang succeeded" ; \
else \
echo "$(MSGMERGE) of $$lang failed" ; \
rm -f $$lang.pot ; \
fi \
done
update-po: $(NLSPACKAGE).pot Makefile refresh-po
report:
@for cat in $(CATALOGS); do \
echo -n "$$cat: "; \
msgfmt -v --statistics -o /dev/null $$cat; \
done
clean:
rm -f *mo *.pyc
rm Makefile
distclean: clean
rm -f .depend Makefile
depend:
install: all
mkdir -p $(INSTALLNLSDIR)
for n in $(CATALOGS); do \
l=`basename $$n .po`; \
mo=$$l.mo; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l; \
$(INSTALL) -m 755 -d $(INSTALLNLSDIR)/$$l/LC_MESSAGES; \
$(INSTALL) -m 644 $$mo \
$(INSTALLNLSDIR)/$$l/LC_MESSAGES/$(NLSPACKAGE).mo; \
done
%.mo: %.po
msgfmt -o $@ $<
-------------------------------------------------------
Date: 2002-Dec-03 13:40 By: yeupou
Logiquement SuSE utilise RPM, donc logiquement ça devrait utiliser RPM.
Installé à partir des sources ? Peux-tu copier/coller le résultat de
./configure ?
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.nongnu.org/bugs/?func=detailbug&bug_id=1867&group_id=2348