ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Формирование makefile с помощью qmake
@ 2005-07-14 17:42 Dmitry (Mothlike) Marochko
  2005-07-15  2:40 ` Andrey Rahmatullin
  2005-07-15  8:46 ` [sisyphus] " Sergey V Turchin
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry (Mothlike) Marochko @ 2005-07-14 17:42 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

Собрал в пакет программу kniga для чтения е-книг. В пакете изначально отсутствует makefile, зато есть .pro файл. Но пакет в хэшере не пересобирается по следующим причинам:

Кусок makefile, создаваемого с помощью qmake внутри хэшера:

install_target: all
    @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)../../../../bin/" || $(MKDIR)
"$(INSTALL_ROOT)../../../../bin/"                                                                        
                ^^^^^^^^^^
    -$(INSTALL_FILE) "bin/$(QMAKE_TARGET)"
"$(INSTALL_ROOT)../../../../bin/$(QMAKE_TARGET)"

Тот же кусок, но при сборке локально:

install_target: all
    @$(CHK_DIR_EXISTS) "$(INSTALL_ROOT)/usr/bin/" || $(MKDIR)
"$(INSTALL_ROOT)/usr/bin/"                                                              
               ^^^^^^^^^^
    -$(INSTALL_FILE) "bin/$(QMAKE_TARGET)"
"$(INSTALL_ROOT)/usr/bin/$(QMAKE_TARGET)"

Таким странным образом создается весь makefile. В чем может быть разница в работе qmake внутри хэшера и локально? Бага ли это или я просто неправильно собираю пакет? Спек прилагается.


-- 
With best wishes,
Dmitry Marochko aka Mothlike


[-- Attachment #2: kniga.spec --]
[-- Type: text/plain, Size: 1325 bytes --]

Name: kniga
Version: 0.1.11
Release: alt1

Summary: Kniga is Qt-based advanced text viewer for Linux

License: GPL
Group: Office
Url: http://kniga.linux.kiev.ua

Packager: Dmitry Marochko <mothlike@altlinux.ru>

Source: %name-%version.tar.bz2
Source1: %name.menu

# Automatically added by buildreq on Thu Jun 16 2005
BuildRequires: XFree86-devel XFree86-libs fontconfig freetype2 gcc-c++ libqt3-devel libstdc++-devel

%description
Kniga is Qt-based advanced text viewer for Linux


%prep
%setup -n %name
subst "s,/opt/kniga/doc,/usr/share/doc/kniga,g" kniga.pro src/config.h
subst "s,/opt/kniga/bin,/usr/bin,g" kniga.pro
subst "s,/opt/kniga,/usr/share/kniga,g" kniga.pro src/config.h
subst "s,/kniga/icons,/icons,g" kniga.pro
subst "s,i18n,translations,g" kniga.pro src/config.h
subst "s,icon.png,kniga_icon.png,g" kniga.pro src/kniga.cpp
%__mv  pic/icon.png pic/kniga_icon.png
%__mv  i18n translations

%build
/usr/lib/qt3/bin/lrelease kniga.pro
/usr/lib/qt3/bin/qmake kniga.pro
%make

%install
%make_install INSTALL_ROOT=%buildroot install
%__install -pD -m644 %SOURCE1 %buildroot%_menudir/%name

%post
%update_menus

%postun
%clean_menus

%files
%_bindir/*
%_iconsdir/*
%doc %_docdir/%name
%_datadir/%name
%_menudir/*

%changelog
* Wed Jun 15 2005 Dmitry Marochko <mothlike@altlinux.ru> 0.1.11-alt1
- First Sisyphus build

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [sisyphus] Формирование makefile с помощью qmake
  2005-07-14 17:42 [sisyphus] Формирование makefile с помощью qmake Dmitry (Mothlike) Marochko
@ 2005-07-15  2:40 ` Andrey Rahmatullin
  2005-07-15  8:46 ` [sisyphus] " Sergey V Turchin
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Rahmatullin @ 2005-07-15  2:40 UTC (permalink / raw)
  To: sisyphus

[-- Attachment #1: Type: text/plain, Size: 496 bytes --]

On Thu, Jul 14, 2005 at 09:42:52PM +0400, Dmitry (Mothlike) Marochko wrote:
> %build
> /usr/lib/qt3/bin/lrelease kniga.pro
> /usr/lib/qt3/bin/qmake kniga.pro

Обычно делается так:

export PATH=$PATH:/usr/lib/qt3/bin
qmake



-- 
WBR, wRAR (ALT Linux Team)
Powered by the ALT Linux fortune(8):

К сожалению, как и в случае с многими файловыми системами,
разработчики тестируют одно, а пользователи используют другое.
В результате, разработчики идут лесом.
		-- ab in sisyphus@

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [sisyphus] Re: Формирование makefile с помощью qmake
  2005-07-14 17:42 [sisyphus] Формирование makefile с помощью qmake Dmitry (Mothlike) Marochko
  2005-07-15  2:40 ` Andrey Rahmatullin
@ 2005-07-15  8:46 ` Sergey V Turchin
  1 sibling, 0 replies; 3+ messages in thread
From: Sergey V Turchin @ 2005-07-15  8:46 UTC (permalink / raw)
  To: sisyphus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dmitry (Mothlike) Marochko wrote:

[...]

> работе qmake внутри хэшера и локально?
Можно использовать переменные типа $(bindir) вместо констант. Они не
изменятся.
А %make_install сам параметр укажет.

[...]

- -- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC13gH+zBIrxwqPwgRAhFYAJ4qwwxRh3xoGBcmqgCC81TuZXjs0gCffpXJ
8vaHPF5KQdQDwEpAOchf6XM=
=8vRs
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-07-15  8:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 17:42 [sisyphus] Формирование makefile с помощью qmake Dmitry (Mothlike) Marochko
2005-07-15  2:40 ` Andrey Rahmatullin
2005-07-15  8:46 ` [sisyphus] " Sergey V Turchin

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git