You are not logged in.

#1 2014-05-02 19:30:12

elken
Member
From: Emacs
Registered: 2013-10-17
Posts: 67

[SOLVED] Attempting to patch existing file?

Hey all, I'm trying to port FruityWifi and the base httpd.conf requires patching, and I'm struggling to get it to work.

Currently it complains about permissions, and I'm not even sure I'm doing it the optimal way.

Here is the PKGBUILD so far, here is the patch.

Below is the output of makepkg -sf
https://i.imgur.com/e28HGwy.png


-- mod edit: paste code, not images and read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Last edited by elken (2014-05-02 20:19:00)


Useless shit wot I do | "A very witty and relatable quote." -- A wise man

Offline

#2 2014-05-02 20:08:58

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,652
Website

Re: [SOLVED] Attempting to patch existing file?

What do you think is in $pkgdir during the build phase?

I'll give you a hint:

$ man PKGBUILD
...
       pkgdir
           This contains the directory where makepkg bundles the installed package (this
           directory will become the root directory of your built package). This variable should
           only be used in the package() function.
...

It looks to me as though you're trying to patch the /etc/httpd/conf/httpd.conf owned by apache. This is not possible while you're building your package (unless makepkg is run as root, which it shouldn't be), and is a terrible idea in the first place. If changes need to be made to a file provided by a different package, you should inform the user of this requirement in the .install file (see 'man PKGBUILD').


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2014-05-02 20:18:35

elken
Member
From: Emacs
Registered: 2013-10-17
Posts: 67

Re: [SOLVED] Attempting to patch existing file?

I wasn't thinking, I was just throwing stuff into the pot, per se. Ok, I'll stick it in the .install, I was just seeing if I could do it without. Thanks.


Useless shit wot I do | "A very witty and relatable quote." -- A wise man

Offline

Board footer

Powered by FluxBB