You are not logged in.

#1 2018-09-02 22:41:44

odror
Member
Registered: 2015-03-17
Posts: 100

Unable to rebuild package after modifying "configure"

Hi

I am trying to rebuild the gdm package with some local changes.

I downloaded PKGBUID

asp checkout gdm

Then I downloaded the source

makepkg -o

I modified
src/gdm/configure.ac and src/gdm/configure  to change default gdm flags.

When I run "makepkg -e" to reguild the package. It does not run configure again and my changes are not made.
If I do not use the -e flag then it downloads the source again overwriting my changes.

Is there any way for makepkg to run locally, but  running configure again.

Offline

#2 2018-09-02 22:48:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Unable to rebuild package after modifying "configure"

Make the changes in the prepare() array of the PKGBUILD.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-09-02 23:03:53

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Unable to rebuild package after modifying "configure"

https://git.archlinux.org/svntogit/pack … 85e64c#n37

build() {
  cd $pkgbase
  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --localstatedir=/var \
    --sbindir=/usr/bin \
    --libexecdir=/usr/lib \
    --disable-schemas-compile \
    --disable-static \
    --enable-gdm-xsession \
    --enable-ipv6 \
    --with-default-pam-config=arch \
    --with-default-path=/usr/local/bin:/usr/local/sbin:/usr/bin \
    --without-plymouth \
    --without-tcp-wrappers
  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
  make
}

What is the actual output from `makepkg -e` ?

Offline

#4 2018-09-02 23:12:10

odror
Member
Registered: 2015-03-17
Posts: 100

Re: Unable to rebuild package after modifying "configure"

I am confused now. I though that when using the -e flag prepare()  will not run.

The prepare() of gdm is:


prepare() {
  cd $pkgbase
  patch -Np1 -i ../0002-Xsession-Don-t-start-ssh-agent-by-default.patch
  NOCONFIGURE=1 ./autogen.sh
}


Did you mean setting  NOCONFIGURE=0. or  adding a flag to configure (for example --with_intial_vt=9)

Last edited by odror (2018-09-02 23:12:31)

Offline

#5 2018-09-02 23:21:45

loqs
Member
Registered: 2014-03-06
Posts: 17,192

Re: Unable to rebuild package after modifying "configure"

odror wrote:

When I run "makepkg -e" to reguild the package. It does not run configure again and my changes are not made.

odror wrote:

Is there any way for makepkg to run locally, but  running configure again.

odror wrote:

The prepare() of gdm is:

prepare() {
  cd $pkgbase
  patch -Np1 -i ../0002-Xsession-Don-t-start-ssh-agent-by-default.patch
  NOCONFIGURE=1 ./autogen.sh
}

Did you mean setting  NOCONFIGURE=0. or  adding a flag to configure (for example --with_intial_vt=9)

Do you want autogen to be run again or as you initially stated configure which is executed in build() ?

Offline

#6 2018-09-03 02:29:44

odror
Member
Registered: 2015-03-17
Posts: 100

Re: Unable to rebuild package after modifying "configure"

It worked. I made  the configure changes in PKGBUILD and reinstalled with makepkg.

Last edited by odror (2018-09-03 14:35:13)

Offline

Board footer

Powered by FluxBB