You are not logged in.

#1 2011-05-19 17:41:44

DKOI
Member
Registered: 2011-05-17
Posts: 13

Makepkg: empty output package

I try to build kernel (source was changed) with
[root@Arch kernel]# makepkg -efi --asroot
Compiling and linking is ok, but package, that was built, has small size (412 byte) and there are no files in pkg.
Where was i wrong?

Offline

#2 2011-05-19 18:43:05

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Makepkg: empty output package

As a sidenote: Do not use --asroot, do not build as root at all.

Anyway, sounds like your source perhaps wasn't populated correctly, or there were an error that you missed in the build output.

Last edited by Mr.Elendig (2011-05-19 18:44:29)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-05-19 18:48:24

mcmillan
Member
Registered: 2006-04-06
Posts: 737

Re: Makepkg: empty output package

Agree with Mr.Elendig, can you post the PKGBUILD you used? Would be helpful in figuring out what may have gone wrong

Offline

#4 2011-05-19 21:42:05

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Makepkg: empty output package

my guess it was a bad PKGBUILD and running makepkg as root allowed makepkg to put files all over our system...

Offline

#5 2011-05-20 05:21:16

DKOI
Member
Registered: 2011-05-17
Posts: 13

Re: Makepkg: empty output package

Thank you for non-root compiling advice.
My steps:

cp -r /var/abs/core/kernel26 kernel
cd kernel
makepkg -o

Then I replaced some source files wtih custom files and changed 2 PKGBUILDs' lines:
pkgname=('kernel26' 'kernel26-headers' 'kernel26-manpages' 'kernel26-docs') # Build stock -ARCH kernel
# pkgname=kernel26-custom     
These lines were replaced with
#pkgname=('kernel26' 'kernel26-headers' 'kernel26-manpages' 'kernel26-docs') # Build stock -ARCH kernel
pkgname=kernel26-custom
as "Kernel Compilation" article say.

makepkg -efi

Last edited by DKOI (2011-05-20 09:39:28)

Offline

#6 2011-05-23 01:58:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg: empty output package

What is 'makepkg -o' supposed to do?

Offline

#7 2011-05-23 02:02:08

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: Makepkg: empty output package

karol wrote:

What is 'makepkg -o' supposed to do?

--nobuild, from the man page....


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#8 2011-05-23 02:05:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Makepkg: empty output package

ngoonee wrote:
karol wrote:

What is 'makepkg -o' supposed to do?

--nobuild, from the man page....

Ah, that's right. I couldn't find it on the wiki page ...

DKOI wrote:

Then I replaced some source files wtih custom files

Can you elaborate?

Offline

#9 2011-05-24 09:55:15

DKOI
Member
Registered: 2011-05-17
Posts: 13

Re: Makepkg: empty output package

i wrote
    int pixel_size;
    int pixel_count;
    int i;
.................
    pixel_size = video->bpp / 8;
    pixel_count = nbytes / pixel_size;
    for (i = 0; i < pixel_count; i++)
        memcpy(data + (pixel_count - (i + 1) * pixel_size),
            mem + (i* pixel_size), pixel_size);
instead of
          memcpy(data, mem, nbytes);
in uvc_video.c
It's just experiment for a while. But I think it's no matter because there are no making errors...

Offline

#10 2011-07-02 15:51:51

yurii
Member
Registered: 2011-07-02
Posts: 1

Re: Makepkg: empty output package

you also need to write custom or rename build function in PKGBUILD (see https://wiki.archlinux.org/index.php/Ke … 9_function )

Last edited by yurii (2011-07-02 15:53:09)

Offline

Board footer

Powered by FluxBB